From d68b3d960b6d95bfc16027cecca2f3fa48bcc36f Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 6 Apr 2012 01:47:16 +0200 Subject: [PATCH] unix: add uv_fs_read64, uv_fs_write64 and uv_fs_ftruncate64 --- src/unix/fs.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/unix/fs.c b/src/unix/fs.c index 436e54c6..ddcb8b5d 100644 --- a/src/unix/fs.c +++ b/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); +}