Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64

  • Loading branch information...
bnoordhuis committed Apr 5, 2012
1 parent ea50126 commit d68b3d960b6d95bfc16027cecca2f3fa48bcc36f
Showing with 31 additions and 0 deletions.
  1. +31 −0 src/unix/fs.c
@@ -701,3 +701,34 @@ int uv_queue_work(uv_loop_t* loop, uv_work_t* req, uv_work_cb work_cb,

return 0;
}


int uv_fs_read64(uv_loop_t* loop,
uv_fs_t* req,
uv_file file,
void* buf,
size_t length,
int64_t offset,
uv_fs_cb cb) {
return uv_fs_read(loop, req, file, buf, length, offset, cb);
}


int uv_fs_write64(uv_loop_t* loop,
uv_fs_t* req,
uv_file file,
void* buf,
size_t length,
int64_t offset,
uv_fs_cb cb) {
return uv_fs_write(loop, req, file, buf, length, offset, cb);
}


int uv_fs_ftruncate64(uv_loop_t* loop,
uv_fs_t* req,
uv_file file,
int64_t offset,
uv_fs_cb cb) {
return uv_fs_ftruncate(loop, req, file, offset, cb);
}

0 comments on commit d68b3d9

Please sign in to comment.
You can’t perform that action at this time.