Lines Matching defs:mode

77 # define S_ISDIR(mode)  (((mode) & S_IFMT) == S_IFDIR)
954 int mode = args[1].As<Int32>()->Value();
960 if (req_wrap_async != nullptr) { // access(path, mode, req)
964 uv_fs_access, *path, mode);
965 } else { // access(path, mode, undefined, ctx)
969 SyncCall(env, args[3], &req_wrap_sync, "access", uv_fs_access, *path, mode);
1527 int mode,
1534 std::make_unique<FSContinuationData>(req, mode, cb));
1540 int err = uv_fs_mkdir(loop, req, next_path.c_str(), mode, nullptr);
1595 int mode,
1601 std::make_unique<FSContinuationData>(req, mode, cb));
1607 int err = uv_fs_mkdir(loop, req, next_path.c_str(), mode,
1627 req_wrap->continuation_data()->mode(), nullptr);
1649 req_wrap->continuation_data()->mode(), nullptr);
1668 req_wrap->continuation_data()->mode(), nullptr);
1688 FSReqWrapSync* req_wrap, const char* path, int mode) {
1690 int err = MKDirpSync(env->event_loop(), &req_wrap->req, path, mode,
1716 const int mode = args[1].As<Int32>()->Value();
1722 if (req_wrap_async != nullptr) { // mkdir(path, mode, req)
1727 mkdirp ? MKDirpAsync : uv_fs_mkdir, *path, mode);
1728 } else { // mkdir(path, mode, undefined, ctx)
1733 int err = CallMKDirpSync(env, args, &req_wrap_sync, *path, mode);
1751 uv_fs_mkdir, *path, mode);
1908 const int mode = args[2].As<Int32>()->Value();
1911 if (req_wrap_async != nullptr) { // open(path, flags, mode, req)
1916 uv_fs_open, *path, flags, mode);
1917 } else { // open(path, flags, mode, undefined, ctx)
1922 uv_fs_open, *path, flags, mode);
1944 const int mode = args[2].As<Int32>()->Value();
1947 if (req_wrap_async != nullptr) { // openFileHandle(path, flags, mode, req)
1951 uv_fs_open, *path, flags, mode);
1952 } else { // openFileHandle(path, flags, mode, undefined, ctx)
1957 uv_fs_open, *path, flags, mode);
2316 /* fs.chmod(path, mode);
2329 int mode = args[1].As<Int32>()->Value();
2332 if (req_wrap_async != nullptr) { // chmod(path, mode, req)
2336 uv_fs_chmod, *path, mode);
2337 } else { // chmod(path, mode, undefined, ctx)
2342 uv_fs_chmod, *path, mode);
2348 /* fs.fchmod(fd, mode);
2361 const int mode = args[1].As<Int32>()->Value();
2364 if (req_wrap_async != nullptr) { // fchmod(fd, mode, req)
2367 uv_fs_fchmod, fd, mode);
2368 } else { // fchmod(fd, mode, undefined, ctx)
2373 uv_fs_fchmod, fd, mode);