Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 14 of 14) sorted by relevance

/libuv/test/
H A Dtest-pipe-set-fchmod.c54 ASSERT(stat_buf.st_mode & S_IRUSR); in TEST_IMPL()
55 ASSERT(stat_buf.st_mode & S_IRGRP); in TEST_IMPL()
56 ASSERT(stat_buf.st_mode & S_IROTH); in TEST_IMPL()
63 ASSERT(stat_buf.st_mode & S_IWUSR); in TEST_IMPL()
64 ASSERT(stat_buf.st_mode & S_IWGRP); in TEST_IMPL()
65 ASSERT(stat_buf.st_mode & S_IWOTH); in TEST_IMPL()
72 ASSERT(stat_buf.st_mode & S_IRUSR); in TEST_IMPL()
73 ASSERT(stat_buf.st_mode & S_IRGRP); in TEST_IMPL()
74 ASSERT(stat_buf.st_mode & S_IROTH); in TEST_IMPL()
75 ASSERT(stat_buf.st_mode & S_IWUSR); in TEST_IMPL()
[all …]
H A Dtest-fs-copyfile.c60 mode = stat_req.statbuf.st_mode; in handle_result()
67 ASSERT_EQ(stat_req.statbuf.st_mode, mode); in handle_result()
H A Dtest-getters-setters.c103 ASSERT(uv_fs_get_statbuf(fs)->st_mode & S_IFDIR); in TEST_IMPL()
H A Dtest-fs.c186 ASSERT((s->st_mode & 0777) & mode); in check_permission()
188 ASSERT((s->st_mode & 0777) == mode); in check_permission()
534 ASSERT(((uv_stat_t*)stat_req.ptr)->st_mode & S_IFDIR); in check_mkdtemp_result()
560 ASSERT(stat_req.statbuf.st_mode & S_IFREG); in check_mkstemp_result()
1512 ASSERT_EQ(s->st_mode, (uint64_t) t.st_mode); in TEST_IMPL()
1630 ASSERT_EQ(st->st_mode, (ft == UV_TTY ? S_IFCHR : S_IFIFO)); in TEST_IMPL()
2405 ASSERT(((uv_stat_t*)req.ptr)->st_mode & S_IFDIR); in test_symlink_dir_impl()
2413 ASSERT(((uv_stat_t*)req.ptr)->st_mode & S_IFLNK); in test_symlink_dir_impl()
/libuv/src/unix/
H A Dtty.c120 if (!S_ISCHR(sb.st_mode)) in uv__tty_is_slave()
418 if (S_ISREG(s.st_mode)) in uv_guess_handle()
421 if (S_ISCHR(s.st_mode)) in uv_guess_handle()
424 if (S_ISFIFO(s.st_mode)) in uv_guess_handle()
427 if (!S_ISSOCK(s.st_mode)) in uv_guess_handle()
H A Dkqueue.c117 if (S_ISREG(sb.st_mode) || S_ISDIR(sb.st_mode)) in uv__io_check_fd()
125 if (S_ISFIFO(sb.st_mode)) { in uv__io_check_fd()
533 (!uv__fstat(handle->event_watcher.fd, &statbuf) && !(statbuf.st_mode & S_IFDIR))) { in uv__fs_event()
602 if (!(statbuf.st_mode & S_IFDIR)) in uv_fs_event_start()
H A Drandom-devurandom.c48 if (!S_ISCHR(s.st_mode)) { in uv__random_readpath()
H A Dpipe.c488 if ((pipe_stat.st_mode & desired_mode) == desired_mode) { in uv_pipe_chmod()
493 pipe_stat.st_mode |= desired_mode; in uv_pipe_chmod()
495 r = chmod(name_buffer, pipe_stat.st_mode); in uv_pipe_chmod()
H A Dfs.c552 if (rc == 0 && S_ISDIR(buf.st_mode)) { in uv__fs_read()
754 if (!S_ISLNK(st.st_mode)) { in uv__fs_readlink()
1282 src_statsbuf.st_mode, in uv__fs_copyfile()
1354 if (fchmod(dstfd, src_statsbuf.st_mode) == -1) { in uv__fs_copyfile()
1451 dst->st_mode = src->st_mode; in uv__to_stat()
H A Dlinux.c1124 buf->st_mode = statxbuf->stx_mode; in uv__statx_to_stat()
/libuv/src/
H A Dfs-poll.c266 && a->st_mode == b->st_mode in statbuf_eq()
/libuv/src/win/
H A Dfs.c1820 statbuf->st_mode = _S_IFCHR; in fs__stat_assign_statbuf_null()
1821 statbuf->st_mode |= (_S_IREAD | _S_IWRITE) | ((_S_IREAD | _S_IWRITE) >> 3) | in fs__stat_assign_statbuf_null()
1851 statbuf->st_mode = 0; in fs__stat_assign_statbuf()
1864 statbuf->st_mode |= S_IFLNK; in fs__stat_assign_statbuf()
1868 if (statbuf->st_mode == 0) { in fs__stat_assign_statbuf()
1870 statbuf->st_mode |= _S_IFDIR; in fs__stat_assign_statbuf()
1873 statbuf->st_mode |= _S_IFREG; in fs__stat_assign_statbuf()
1879 statbuf->st_mode |= _S_IREAD | (_S_IREAD >> 3) | (_S_IREAD >> 6); in fs__stat_assign_statbuf()
1881 statbuf->st_mode |= (_S_IREAD | _S_IWRITE) | ((_S_IREAD | _S_IWRITE) >> 3) | in fs__stat_assign_statbuf()
2027 statbuf->st_mode = file_type == UV_TTY ? _S_IFCHR : _S_IFIFO; in fs__fstat_handle()
/libuv/include/
H A Duv.h387 uint64_t st_mode; member
/libuv/docs/src/
H A Dfs.rst54 uint64_t st_mode;

Completed in 51 milliseconds