Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 65) sorted by relevance

123

/libuv/test/
H A Dtest-platform-output.c94 FILE* file; in TEST_IMPL() local
100 file = fopen("/sys/fs/cgroup/cpu.max", "r"); in TEST_IMPL()
101 if (file) { in TEST_IMPL()
102 if (fscanf(file, "%lu %lu", &quota, &period) == 2 && quota > 0) { in TEST_IMPL()
106 fclose(file); in TEST_IMPL()
111 file = fopen("/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us", "r"); in TEST_IMPL()
112 if (file) { in TEST_IMPL()
114 fclose(file); in TEST_IMPL()
115 file = fopen("/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_period_us", "r"); in TEST_IMPL()
116 if (file && fscanf(file, "%lu", &period) == 1) { in TEST_IMPL()
[all …]
H A Drunner-win.c74 HANDLE file = INVALID_HANDLE_VALUE; in process_start() local
93 file = CreateFileW((WCHAR*)filename, in process_start()
100 if (file == INVALID_HANDLE_VALUE) in process_start()
103 if (!SetHandleInformation(file, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT)) in process_start()
148 si.hStdOutput = file; in process_start()
149 si.hStdError = file; in process_start()
158 SetHandleInformation(file, HANDLE_FLAG_INHERIT, 0); in process_start()
161 p->stdio_out = file; in process_start()
168 if (file != INVALID_HANDLE_VALUE) in process_start()
169 CloseHandle(file); in process_start()
H A Dtest-fs-open-flags.c128 static void openFail(char *file, int error) { in openFail() argument
133 r = uv_fs_open(NULL, &open_req, file, flags, S_IWUSR | S_IRUSR, NULL); in openFail()
147 static void refreshOpen(char *file) { in refreshOpen() argument
158 static void writeExpect(char *file, char *expected, int size) { in writeExpect() argument
161 refreshOpen(file); in writeExpect()
201 static void writeFail(char *file, int error) { in writeFail() argument
204 refreshOpen(file); in writeFail()
226 static void readExpect(char *file, char *expected, int size) { in readExpect() argument
229 refreshOpen(file); in readExpect()
246 static void readFail(char *file, int error) { in readFail() argument
[all …]
H A Dtest-spawn.c318 uv_file file; in TEST_IMPL() local
333 file = r; in TEST_IMPL()
372 uv_file file; in TEST_IMPL() local
387 file = r; in TEST_IMPL()
429 uv_file file; in TEST_IMPL() local
449 ASSERT_NE(file, -1); in TEST_IMPL()
1427 char file[64]; in TEST_IMPL() local
1440 snprintf(file, sizeof(file), "%.*s_no_ext", in TEST_IMPL()
1449 options.file = options.args[0] = file; in TEST_IMPL()
1816 char file[64]; in TEST_IMPL() local
[all …]
H A Dtest-fs-copyfile.c77 uv_file file; in touch_file() local
88 file = r; in touch_file()
94 r = uv_fs_write(NULL, &req, file, &buf, 1, i, NULL); in touch_file()
99 r = uv_fs_close(NULL, &req, file, NULL); in touch_file()
H A Dtest-fork.c422 uv_file file; in create_file() local
427 file = r; in create_file()
429 r = uv_fs_close(NULL, &req, file, NULL); in create_file()
437 uv_file file; in touch_file() local
443 file = r; in touch_file()
447 r = uv_fs_write(NULL, &req, file, &buf, 1, -1, NULL); in touch_file()
451 r = uv_fs_close(NULL, &req, file, NULL); in touch_file()
H A Dtest-fs.c1444 uv_file file; in TEST_IMPL() local
1647 uv_file file; in TEST_IMPL() local
1723 uv_file file; in TEST_IMPL() local
1821 uv_file file; in TEST_IMPL() local
1878 uv_file file; in TEST_IMPL() local
1934 uv_file file; in TEST_IMPL() local
2027 uv_file file; in TEST_IMPL() local
2188 uv_file file; in TEST_IMPL() local
2787 uv_file file; in TEST_IMPL() local
3052 int r, file; in TEST_IMPL() local
[all …]
/libuv/docs/src/
H A Dfs.rst243 the current file offset is used and updated.
403 could access the file.
567 The file is opened in append mode. Before each write, the file offset is
568 positioned at the end of the file.
623 Use a memory file mapping to access the file. When using this flag, the
631 Do not update the file access time when the file is read.
662 optimize file caching.
670 Open the file for read-only access.
674 Open the file for read-write access.
716 If the file exists and is a regular file, and the file is opened
[all …]
H A Dfs_event.rst8 if the file was renamed or there was a generic change in it. This handle uses
13 The AIX Event Infrastructure file system (ahafs) has some limitations:
17 - Events for file modification (writing to a file) are not received if only the
22 The z/OS file system events monitoring infrastructure does not notify of file
45 be a relative path to a file contained in the directory, or `NULL` if the
46 file name cannot be determined.
79 * or kqueue to detect events. This may not work on remote file systems such
H A Dprocess.rst26 const char* file;
91 * uv_process_options_t's file field, has a directory component,
92 * search for the exact file name before trying variants with
121 * the operation to perform for the corresponding file descriptor
126 * No file descriptor will be provided (or redirected to
141 * file descriptor given by `data.fd`.
147 * file descriptor being used by the stream handle given by
184 .. c:member:: const char* uv_process_options_t.file
212 structs that describe the file descriptors that will be made available to
245 Disables inheritance for file descriptors / handles that this process
[all …]
H A Dfs_poll.rst8 :c:type:`uv_fs_event_t`, fs poll handles use `stat` to detect when a file has
9 changed so they can work on file systems where fs event handles can't.
26 not called again until something changes (e.g. when the file is created
51 Check the file at `path` for changes every `interval` milliseconds.
55 all changes on many file systems.
H A Derrors.rst108 bad file descriptor
140 file already exists
148 file too large
200 file table overflow
212 no such file or directory
284 read-only file system
304 text file is busy
316 end of file
332 inappropriate file type or format
H A Dpoll.rst7 Poll handles are used to watch file descriptors for readability,
17 It is possible that poll handles occasionally signal that a file descriptor is
25 The user should not close a file descriptor while it is being polled by an
31 On windows only sockets can be polled with poll handles. On Unix any file
75 Initialize the handle using a file descriptor.
77 .. versionchanged:: 1.2.2 the file descriptor is set to non-blocking mode.
88 Starts polling the file descriptor. `events` is a bitmask made up of
105 file handle and no further events will be reported. The user should
143 Stop polling the file descriptor, the callback will no longer be called.
H A Dtty.rst69 Initialize a new TTY stream with the given file descriptor. Usually the
70 file descriptor will be:
77 using :man:`ttyname_r(3)`, open it, and use it if the passed file descriptor
94 .. versionchanged:: 1.5.0: trying to initialize a TTY stream with a file
95 descriptor that refers to a file returns `UV_EINVAL`
/libuv/src/unix/
H A Dfs.c519 fd = req->file; in uv__fs_read()
1827 req->file = file; in uv_fs_close()
1841 req->file = file; in uv_fs_fchmod()
1854 req->file = file; in uv_fs_fchown()
1877 req->file = file; in uv_fs_fdatasync()
1887 req->file = file; in uv_fs_fstat()
1897 req->file = file; in uv_fs_fsync()
1911 req->file = file; in uv_fs_ftruncate()
1927 req->file = file; in uv_fs_futime()
2039 req->file = file; in uv_fs_read()
[all …]
H A Dtty.c53 static int isreallyatty(int file) { in isreallyatty() argument
56 rc = !ioctl(file, TXISATTY + 0x81, NULL); in isreallyatty()
387 uv_handle_type uv_guess_handle(uv_file file) { in uv_guess_handle() argument
393 if (file < 0) in uv_guess_handle()
396 if (isatty(file)) in uv_guess_handle()
399 if (uv__fstat(file, &s)) { in uv_guess_handle()
410 if (getsockname(file, (struct sockaddr*) &ss, &len)) { in uv_guess_handle()
431 if (getsockname(file, (struct sockaddr*) &ss, &len)) { in uv_guess_handle()
448 if (getsockopt(file, SOL_SOCKET, SO_TYPE, &type, &len)) in uv_guess_handle()
/libuv/src/win/
H A Dfs.c405 HANDLE file; in fs__open() local
568 file = CreateFileW(req->file.pathw, in fs__open()
1302 HANDLE file; in fs__mkstemp_func() local
1305 file = CreateFileW(req->file.pathw, in fs__mkstemp_func()
3037 req->file.fd = fd; in uv_fs_close()
3056 req->file.fd = fd; in uv_fs_read()
3089 req->file.fd = fd; in uv_fs_write()
3381 req->file.fd = fd; in uv_fs_fstat()
3403 req->file.fd = fd; in uv_fs_fsync()
3410 req->file.fd = fd; in uv_fs_fdatasync()
[all …]
H A Dhandle.c31 uv_handle_type uv_guess_handle(uv_file file) { in uv_guess_handle() argument
35 if (file < 0) { in uv_guess_handle()
39 handle = uv__get_osfhandle(file); in uv_guess_handle()
H A Dprocess.c332 static WCHAR* search_path(const WCHAR *file, in search_path() argument
344 size_t file_len = wcslen(file); in search_path()
351 || (file_len == 1 && file[0] == L'.')) { in search_path()
357 for (file_name_start = (WCHAR*)file + file_len; in search_path()
358 file_name_start > file in search_path()
364 file_has_dir = file_name_start != file; in search_path()
373 file, file_name_start - file, in search_path()
384 file, file_len, in search_path()
434 file, file_len, in search_path()
912 if (options->file == NULL || in uv_spawn()
[all …]
H A Dfs-event.c84 WCHAR** file) { in uv__split_path() argument
91 *file = NULL; in uv__split_path()
117 *file = _wcsdup(filename); in uv__split_path()
128 *file = (WCHAR*)uv__malloc((len - i) * sizeof(WCHAR)); in uv__split_path()
129 if (!*file) { in uv__split_path()
132 wcsncpy(*file, filename + i + 1, len - i - 1); in uv__split_path()
133 (*file)[len - i - 1] = L'\0'; in uv__split_path()
/libuv/docs/src/guide/
H A Dfilesystem.rst29 A file descriptor is obtained using
43 int uv_fs_close(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb)
53 a callback for when the file is opened:
55 .. rubric:: uvcat/main.c - opening a file
62 The ``result`` field of a ``uv_fs_t`` is the file descriptor in case of the
220 associates the pipe with the file descriptor, in this case ``0`` (standard
283 file change notification libraries [#fsnotify]_. This is one of the more
298 The file change notification is started using ``uv_fs_event_init()``:
307 The third argument is the actual file or directory to monitor. The last
328 is the file on which the watch was set.
[all …]
H A Dprocesses.rst45 ``file`` and ``args`` fields. ``file`` is the program to execute. Since
171 A normal, newly spawned process has its own set of file descriptors, with 0,
173 may want to share file descriptors with the child. For example, perhaps your
175 file, but ignore ``stdout``. For this you'd like to have ``stderr`` of the
177 *inheriting* file descriptors. In this sample, we invoke the test program,
187 file descriptors being set. ``uv_process_options_t.stdio`` is an array of
327 Sending file descriptors over pipes
352 which new file descriptors get sent. It is important to set the ``ipc``
369 ``accept`` traditionally does is get a file descriptor (the client) from
370 another file descriptor (The listening socket). Which is exactly what we do
[all …]
/libuv/docs/code/uvwget/
H A Dmain.c43 FILE *file; in add_download() local
45 file = fopen(filename, "w"); in add_download()
46 if (file == NULL) { in add_download()
52 curl_easy_setopt(handle, CURLOPT_WRITEDATA, file); in add_download()
/libuv/docs/
H A Dmake.bat3 REM Command file for Sphinx documentation
24 echo. singlehtml to make a single large HTML file
109 .hhp project file in %BUILDDIR%/htmlhelp.
118 .qhcp project file in %BUILDDIR%/qthelp, like this:
120 echo.To view the help file:
137 echo.Build finished. The epub file is in %BUILDDIR%/epub.
205 echo.The overview file is in %BUILDDIR%/changes.
/libuv/tools/
H A Dvswhere_usability_wrapper.cmd3 :: See accompanying file LICENSE at https://github.com/node4good/windows-autoconf
4 :: or libuv LICENSE file at https://github.com/libuv/libuv

Completed in 73 milliseconds

123