Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 32) sorted by relevance

12

/libuv/src/unix/
H A Dtty.c142 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 Dpipe.c196 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 Dfs.c1533 int mode; in uv__fs_statx() local
1709 X(CHMOD, chmod(req->path, req->mode)); in uv__fs_work()
1724 X(MKDIR, mkdir(req->path, req->mode)); in uv__fs_work()
1802 int mode, in uv_fs_chmod() argument
1806 req->mode = mode; in uv_fs_chmod()
1838 int mode, in uv_fs_fchmod() argument
1842 req->mode = mode; in uv_fs_fchmod()
1974 int mode, in uv_fs_mkdir() argument
1978 req->mode = mode; in uv_fs_mkdir()
2014 int mode, in uv_fs_open() argument
[all …]
H A Dcore.c425 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 Dtty.rst23 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 Dstream.rst30 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 Dsignal.rst15 on Unix, it is not generated when terminal raw mode is enabled.
30 mode and is being read.
H A Dfs.rst231 .. 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 Dpoll.rst77 .. 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 Dprocess.rst162 * 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 Dloop.rst117 .. c:function:: int uv_run(uv_loop_t* loop, uv_run_mode mode)
120 specified mode:
H A Dudp.rst28 /* 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 Dhandle.c33 DWORD mode; in uv_guess_handle() local
43 if (GetConsoleMode(handle, &mode)) { in uv_guess_handle()
H A Dcore.c619 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 Dfs.c496 if (!((req->fs.info.mode & ~current_umask) & _S_IWRITE)) { in fs__open()
2286 if (!(req->fs.info.mode & W_OK) || in fs__access()
2298 int result = _wchmod(req->file.pathw, req->fs.info.mode); in fs__chmod()
2353 if (req->fs.info.mode & _S_IWRITE) { in fs__fchmod()
3019 int mode, uv_fs_cb cb) { in uv_fs_open() argument
3030 req->fs.info.mode = mode; in uv_fs_open()
3134 req->fs.info.mode = mode; in uv_fs_mkdir()
3477 req->fs.info.mode = flags; in uv_fs_access()
3493 req->fs.info.mode = mode; in uv_fs_chmod()
3498 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 Dpipe.c314 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()
2648 int uv_pipe_chmod(uv_pipe_t* handle, int mode) { in uv_pipe_chmod() argument
2659 if (mode != UV_READABLE && in uv_pipe_chmod()
2660 mode != UV_WRITABLE && in uv_pipe_chmod()
2661 mode != (UV_WRITABLE | UV_READABLE)) in uv_pipe_chmod()
2686 if (mode & UV_READABLE) in uv_pipe_chmod()
[all …]
H A Dtty.c345 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 Dtest-fs-copyfile.c48 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 Dtest-fs.c171 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()
1772 static int mode = 0200; in TEST_IMPL() local
1773 req.data = &mode; in TEST_IMPL()
1784 static int mode = 0400; in TEST_IMPL() local
1785 req.data = &mode; in TEST_IMPL()
1794 static int mode = 0600; in TEST_IMPL() local
1795 req.data = &mode; in TEST_IMPL()
/libuv/docs/src/guide/
H A Dfilesystem.rst33 … 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 Dunix.h365 mode_t mode; \
381 int mode;
H A Dwin.h631 int mode; \
/libuv/include/
H A Duv.h310 UV_EXTERN int uv_run(uv_loop_t*, uv_run_mode mode);
821 UV_EXTERN int uv_tty_set_mode(uv_tty_t*, uv_tty_mode_t mode);
830 inline int uv_tty_set_mode(uv_tty_t* handle, int mode) { in uv_tty_set_mode() argument
831 return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode)); in uv_tty_set_mode()
1457 int mode,
1504 int mode,
1573 int mode,
1578 int mode,
1637 int mode,
/libuv/
H A Dconfigure.ac22 AM_MAINTAINER_MODE([enable]) # pass --disable-maintainer-mode if autotools may be unavailable
H A DREADME.md285 Use the [follow-fork-mode](https://sourceware.org/gdb/onlinedocs/gdb/Forks.html) setting:
290 (gdb) set follow-fork-mode child

Completed in 110 milliseconds

12