Skip to content
This repository was archived by the owner on May 4, 2018. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/uv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,8 @@ UV_EXTERN int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path,
UV_EXTERN int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file,
uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb);

/* this method is only useful for binding libraries (just return req->result) */
UV_EXTERN int uv_fs_req_result(uv_fs_t* req);

enum uv_fs_event {
UV_RENAME = 1,
Expand Down
4 changes: 4 additions & 0 deletions src/uv-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,7 @@ int uv_fs_event_getpath(uv_fs_event_t* handle, char* buf, size_t* len) {

return 0;
}

int uv_fs_req_result(uv_fs_t* req) {
return req->result;
}