Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
remove NODE_USE_64BIT_UV_FS_API
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed May 24, 2012
1 parent 66e12db commit b4ed3c1
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/node_file.cc
Expand Up @@ -501,17 +501,9 @@ static Handle<Value> Truncate(const Arguments& args) {
int64_t len = GET_TRUNCATE_LENGTH(args[1]);

if (args[2]->IsFunction()) {
#ifdef NODE_USE_64BIT_UV_FS_API
ASYNC_CALL(ftruncate64, args[2], fd, len)
#else
ASYNC_CALL(ftruncate, args[2], fd, len)
#endif
} else {
#ifdef NODE_USE_64BIT_UV_FS_API
SYNC_CALL(ftruncate64, 0, fd, len)
#else
SYNC_CALL(ftruncate, 0, fd, len)
#endif
return Undefined();
}
}
Expand Down Expand Up @@ -727,17 +719,9 @@ static Handle<Value> Write(const Arguments& args) {
Local<Value> cb = args[5];

if (cb->IsFunction()) {
#ifdef NODE_USE_64BIT_UV_FS_API
ASYNC_CALL(write64, cb, fd, buf, len, pos)
#else
ASYNC_CALL(write, cb, fd, buf, len, pos)
#endif
} else {
#ifdef NODE_USE_64BIT_UV_FS_API
SYNC_CALL(write64, 0, fd, buf, len, pos)
#else
SYNC_CALL(write, 0, fd, buf, len, pos)
#endif
return scope.Close(Integer::New(SYNC_RESULT));
}
}
Expand Down Expand Up @@ -798,17 +782,9 @@ static Handle<Value> Read(const Arguments& args) {
cb = args[5];

if (cb->IsFunction()) {
#ifdef NODE_USE_64BIT_UV_FS_API
ASYNC_CALL(read64, cb, fd, buf, len, pos);
#else
ASYNC_CALL(read, cb, fd, buf, len, pos);
#endif
} else {
#ifdef NODE_USE_64BIT_UV_FS_API
SYNC_CALL(read64, 0, fd, buf, len, pos)
#else
SYNC_CALL(read, 0, fd, buf, len, pos)
#endif
Local<Integer> bytesRead = Integer::New(SYNC_RESULT);
return scope.Close(bytesRead);
}
Expand Down

0 comments on commit b4ed3c1

Please sign in to comment.