Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial osx port code

  • Loading branch information...
commit b531bdcdbce0b9e1f18ecd6b852707bea4019fe7 1 parent 0d79232
@sidorares sidorares authored
Showing with 10 additions and 8 deletions.
  1. +4 −5 binding.gyp
  2. +6 −3 fuse4js.cc
View
9 binding.gyp
@@ -1,10 +1,11 @@
{
- 'conditions': [
- ['OS=="linux"', {
- "targets": [
+ "targets": [
{
"target_name": "fuse4js",
"sources": [ "fuse4js.cc" ],
+ "include_dirs": [
+ '<!@(pkg-config fuse --cflags-only-I | sed s/-I//g)'
+ ],
"link_settings": {
"libraries": [
'<!@(pkg-config --libs-only-l fuse)'
@@ -12,6 +13,4 @@
}
}
]
- }]
- ]
}
View
9 fuse4js.cc
@@ -369,9 +369,9 @@ Handle<Value> GetAttrCompletion(const Arguments& args)
f4js_cmd.u.getattr.stbuf->st_gid = (gid_t)num->Value();
}
- ConvertDate(stat, "mtime", &f4js_cmd.u.getattr.stbuf->st_mtim);
- ConvertDate(stat, "ctime", &f4js_cmd.u.getattr.stbuf->st_ctim);
- ConvertDate(stat, "atime", &f4js_cmd.u.getattr.stbuf->st_atim);
+ //ConvertDate(stat, "mtime", &f4js_cmd.u.getattr.stbuf->st_mtim);
+ //ConvertDate(stat, "ctime", &f4js_cmd.u.getattr.stbuf->st_ctim);
+ //ConvertDate(stat, "atime", &f4js_cmd.u.getattr.stbuf->st_atim);
}
sem_post(&f4js.sem);
return scope.Close(Undefined());
@@ -608,9 +608,11 @@ Handle<Value> Start(const Arguments& args)
sem_init(&f4js.sem, 0, 0);
uv_async_init(uv_default_loop(), &f4js.async, DispatchOp);
+ printf("starting FUSE");
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_create(&f4js.fuse_thread, &attr, fuse_thread, NULL);
+ printf("FUSE started");
return scope.Close(String::New("dummy"));
}
@@ -618,6 +620,7 @@ Handle<Value> Start(const Arguments& args)
void init(Handle<Object> target)
{
+ printf("init called");
target->Set(String::NewSymbol("start"), FunctionTemplate::New(Start)->GetFunction());
}
Please sign in to comment.
Something went wrong with that request. Please try again.