}
}
+#ifdef __POSIX__
static Handle<Value> LStat(const Arguments& args) {
HandleScope scope;
return scope.Close(BuildStatsObject(&s));
}
}
+#endif // __POSIX__
static Handle<Value> FStat(const Arguments& args) {
HandleScope scope;
}
}
+#ifdef __POSIX__
static Handle<Value> Symlink(const Arguments& args) {
HandleScope scope;
return Undefined();
}
}
+#endif // __POSIX__
+#ifdef __POSIX__
static Handle<Value> Link(const Arguments& args) {
HandleScope scope;
return Undefined();
}
}
+#endif // __POSIX__
+#ifdef __POSIX__
static Handle<Value> ReadLink(const Arguments& args) {
HandleScope scope;
return scope.Close(String::New(getbuf, bz));
}
}
+#endif // __POSIX__
static Handle<Value> Rename(const Arguments& args) {
HandleScope scope;
/* fs.chown(fd, uid, gid);
* Wrapper for chown(1) / EIO_CHOWN
*/
+#ifdef __POSIX__
static Handle<Value> Chown(const Arguments& args) {
HandleScope scope;
return Undefined();
}
}
+#endif // __POSIX__
void File::Initialize(Handle<Object> target) {
HandleScope scope;
NODE_SET_METHOD(target, "sendfile", SendFile);
NODE_SET_METHOD(target, "readdir", ReadDir);
NODE_SET_METHOD(target, "stat", Stat);
+#ifdef __POSIX__
NODE_SET_METHOD(target, "lstat", LStat);
+#endif // __POSIX__
NODE_SET_METHOD(target, "fstat", FStat);
+#ifdef __POSIX__
NODE_SET_METHOD(target, "link", Link);
NODE_SET_METHOD(target, "symlink", Symlink);
NODE_SET_METHOD(target, "readlink", ReadLink);
+#endif // __POSIX__
NODE_SET_METHOD(target, "unlink", Unlink);
NODE_SET_METHOD(target, "write", Write);
NODE_SET_METHOD(target, "chmod", Chmod);
+#ifdef __POSIX__
NODE_SET_METHOD(target, "chown", Chown);
+#endif // __POSIX__
errno_symbol = NODE_PSYMBOL("errno");
encoding_symbol = NODE_PSYMBOL("node:encoding");