/libuv/src/unix/ |
H A D | tty.c | 142 int mode; in uv_tty_init() local 164 mode = saved_flags & O_ACCMODE; in uv_tty_init() 183 r = uv__open_cloexec(path, mode | O_NOCTTY); in uv_tty_init() 189 if (mode != O_RDONLY) in uv_tty_init() 233 if (mode != O_WRONLY) in uv_tty_init() 235 if (mode != O_RDONLY) in uv_tty_init() 239 tty->mode = UV_TTY_MODE_NORMAL; in uv_tty_init() 287 if (tty->mode == (int) mode) in uv_tty_set_mode() 291 if (tty->mode == UV_TTY_MODE_NORMAL && mode != UV_TTY_MODE_NORMAL) { in uv_tty_set_mode() 313 switch (mode) { in uv_tty_set_mode() [all …]
|
H A D | pipe.c | 196 int mode; in uv_pipe_open() local 204 mode = fcntl(fd, F_GETFL); in uv_pipe_open() 205 while (mode == -1 && errno == EINTR); in uv_pipe_open() 207 if (mode == -1) in uv_pipe_open() 220 mode &= O_ACCMODE; in uv_pipe_open() 221 if (mode != O_WRONLY) in uv_pipe_open() 223 if (mode != O_RDONLY) in uv_pipe_open() 454 if (mode != UV_READABLE && in uv_pipe_chmod() 455 mode != UV_WRITABLE && in uv_pipe_chmod() 482 if (mode & UV_READABLE) in uv_pipe_chmod() [all …]
|
H A D | fs.c | 1538 int mode; in uv__fs_statx() local 1714 X(CHMOD, chmod(req->path, req->mode)); in uv__fs_work() 1729 X(MKDIR, mkdir(req->path, req->mode)); in uv__fs_work() 1807 int mode, in uv_fs_chmod() argument 1811 req->mode = mode; in uv_fs_chmod() 1843 int mode, in uv_fs_fchmod() argument 1847 req->mode = mode; in uv_fs_fchmod() 1979 int mode, in uv_fs_mkdir() argument 1983 req->mode = mode; in uv_fs_mkdir() 2019 int mode, in uv_fs_open() argument [all …]
|
H A D | core.c | 425 int uv_run(uv_loop_t* loop, uv_run_mode mode) { in uv_run() argument 438 if (mode == UV_RUN_DEFAULT && r != 0 && loop->stop_flag == 0) { in uv_run() 453 if ((mode == UV_RUN_ONCE && can_sleep) || mode == UV_RUN_DEFAULT) in uv_run() 479 if (mode == UV_RUN_ONCE || mode == UV_RUN_NOWAIT) in uv_run()
|
/libuv/docs/src/ |
H A D | tty.rst | 23 TTY mode type: 28 /* Initial/normal terminal mode */ 30 /* Raw input mode (On Windows, ENABLE_WINDOW_INPUT is also enabled) */ 32 /* Binary-safe I/O mode for IPC (Unix-only) */ 38 Console virtual terminal mode type: 78 refers to a TTY. This lets libuv put the tty in non-blocking mode without 98 .. c:function:: int uv_tty_set_mode(uv_tty_t* handle, uv_tty_mode_t mode) 100 .. versionchanged:: 1.2.0: the mode is specified as a 103 Set the TTY using the specified terminal mode.
|
H A D | stream.rst | 30 this type. When a stream is in non-blocking mode, write requests sent 231 Enable or disable blocking mode for a stream. 233 When blocking mode is enabled all writes complete synchronously. The 245 Also libuv currently makes no ordering guarantee when the blocking mode 247 recommended to set the blocking mode immediately after opening or creating
|
H A D | signal.rst | 15 on Unix, it is not generated when terminal raw mode is enabled. 30 mode and is being read.
|
H A D | fs.rst | 231 .. c:function:: int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode… 237 in binary mode. Because of this the O_BINARY and O_TEXT flags are not 264 .. c:function:: int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb… 269 `mode` is currently not implemented on Windows. 418 .. c:function:: int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_c… 422 .. c:function:: int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb… 423 .. c:function:: int uv_fs_fchmod(uv_loop_t* loop, uv_fs_t* req, uv_file file, int mode, uv_fs_cb cb) 567 The file is opened in append mode. Before each write, the file offset is 654 Open the file in nonblocking mode if possible.
|
H A D | poll.rst | 77 .. versionchanged:: 1.2.2 the file descriptor is set to non-blocking mode. 84 .. versionchanged:: 1.2.2 the socket is set to non-blocking mode.
|
H A D | process.rst | 162 * handle in non-blocking mode in the child. This may cause loss of data, 163 * if the child is not designed to handle to encounter this mode,
|
H A D | loop.rst | 117 .. c:function:: int uv_run(uv_loop_t* loop, uv_run_mode mode) 120 specified mode:
|
H A D | udp.rst | 28 /* Disables dual stack mode. */ 182 contract (works in unconnected mode, supports sendmsg()/recvmsg(), etc). 186 .. versionchanged:: 1.2.1 the file descriptor is set to non-blocking mode.
|
/libuv/src/win/ |
H A D | handle.c | 33 DWORD mode; in uv_guess_handle() local 43 if (GetConsoleMode(handle, &mode)) { in uv_guess_handle()
|
H A D | core.c | 619 int uv_run(uv_loop_t *loop, uv_run_mode mode) { in uv_run() argument 632 if (mode == UV_RUN_DEFAULT && r != 0 && loop->stop_flag == 0) { in uv_run() 645 if ((mode == UV_RUN_ONCE && can_sleep) || mode == UV_RUN_DEFAULT) in uv_run() 674 if (mode == UV_RUN_ONCE || mode == UV_RUN_NOWAIT) in uv_run()
|
H A D | fs.c | 496 if (!((req->fs.info.mode & ~current_umask) & _S_IWRITE)) { in fs__open() 2287 if (!(req->fs.info.mode & W_OK) || in fs__access() 2299 int result = _wchmod(req->file.pathw, req->fs.info.mode); in fs__chmod() 2354 if (req->fs.info.mode & _S_IWRITE) { in fs__fchmod() 3021 int mode, uv_fs_cb cb) { in uv_fs_open() argument 3032 req->fs.info.mode = mode; in uv_fs_open() 3136 req->fs.info.mode = mode; in uv_fs_mkdir() 3479 req->fs.info.mode = flags; in uv_fs_access() 3495 req->fs.info.mode = mode; in uv_fs_chmod() 3500 int uv_fs_fchmod(uv_loop_t* loop, uv_fs_t* req, uv_file fd, int mode, in uv_fs_fchmod() argument [all …]
|
H A D | pipe.c | 314 DWORD mode; in uv__create_pipe_pair() local 316 r = GetNamedPipeHandleState(client_pipe, &mode, NULL, NULL, NULL, NULL, 0); in uv__create_pipe_pair() 318 assert(mode == (PIPE_READMODE_BYTE | PIPE_WAIT)); in uv__create_pipe_pair() 471 DWORD mode = PIPE_READMODE_BYTE | PIPE_WAIT; in uv__set_pipe_handle() local 482 if (!SetNamedPipeHandleState(pipeHandle, &mode, NULL, NULL)) { in uv__set_pipe_handle() 2644 int uv_pipe_chmod(uv_pipe_t* handle, int mode) { in uv_pipe_chmod() argument 2655 if (mode != UV_READABLE && in uv_pipe_chmod() 2656 mode != UV_WRITABLE && in uv_pipe_chmod() 2657 mode != (UV_WRITABLE | UV_READABLE)) in uv_pipe_chmod() 2682 if (mode & UV_READABLE) in uv_pipe_chmod() [all …]
|
H A D | tty.c | 345 int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { in uv_tty_set_mode() argument 356 if (!!mode == !!(tty->flags & UV_HANDLE_TTY_RAW)) { in uv_tty_set_mode() 360 switch (mode) { in uv_tty_set_mode() 398 tty->flags |= mode ? UV_HANDLE_TTY_RAW : 0; in uv_tty_set_mode()
|
/libuv/test/ |
H A D | test-fs-copyfile.c | 48 uint64_t mode; in handle_result() local 60 mode = stat_req.statbuf.st_mode; in handle_result() 67 ASSERT_EQ(stat_req.statbuf.st_mode, mode); in handle_result()
|
H A D | test-fs.c | 171 static void check_permission(const char* filename, unsigned int mode) { in check_permission() argument 186 ASSERT((s->st_mode & 0777) & mode); in check_permission() 188 ASSERT((s->st_mode & 0777) == mode); in check_permission() 1777 static int mode = 0200; in TEST_IMPL() local 1778 req.data = &mode; in TEST_IMPL() 1789 static int mode = 0400; in TEST_IMPL() local 1790 req.data = &mode; in TEST_IMPL() 1799 static int mode = 0600; in TEST_IMPL() local 1800 req.data = &mode; in TEST_IMPL()
|
/libuv/docs/src/guide/ |
H A D | filesystem.rst | 33 … int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode, uv_fs_cb cb) 35 ``flags`` and ``mode`` are standard 128 … int uv_fs_open(uv_loop_t* loop, uv_fs_t* req, const char* path, int flags, int mode, uv_fs_cb cb); 133 int uv_fs_mkdir(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb cb); 149 int uv_fs_access(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb cb); 150 int uv_fs_chmod(uv_loop_t* loop, uv_fs_t* req, const char* path, int mode, uv_fs_cb cb); 159 int uv_fs_fchmod(uv_loop_t* loop, uv_fs_t* req, uv_file file, int mode, uv_fs_cb cb);
|
/libuv/include/uv/ |
H A D | unix.h | 365 mode_t mode; \ 381 int mode;
|
H A D | win.h | 631 int mode; \
|
/libuv/include/ |
H A D | uv.h | 311 UV_EXTERN int uv_run(uv_loop_t*, uv_run_mode mode); 822 UV_EXTERN int uv_tty_set_mode(uv_tty_t*, uv_tty_mode_t mode); 831 inline int uv_tty_set_mode(uv_tty_t* handle, int mode) { in uv_tty_set_mode() argument 832 return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode)); in uv_tty_set_mode() 1458 int mode, 1505 int mode, 1574 int mode, 1579 int mode, 1638 int mode,
|
/libuv/ |
H A D | configure.ac | 22 AM_MAINTAINER_MODE([enable]) # pass --disable-maintainer-mode if autotools may be unavailable
|
H A D | README.md | 285 Use the [follow-fork-mode](https://sourceware.org/gdb/onlinedocs/gdb/Forks.html) setting: 290 (gdb) set follow-fork-mode child
|