/libuv/src/win/ |
H A D | dl.c | 25 static int uv__dlerror(uv_lib_t* lib, const char* filename, DWORD errorno); 28 int uv_dlopen(const char* filename, uv_lib_t* lib) { in uv_dlopen() argument 35 r = uv_wtf8_length_as_utf16(filename); in uv_dlopen() 37 return uv__dlerror(lib, filename, ERROR_NO_UNICODE_TRANSLATION); in uv_dlopen() 39 return uv__dlerror(lib, filename, ERROR_INSUFFICIENT_BUFFER); in uv_dlopen() 40 uv_wtf8_to_utf16(filename, filename_w, r); in uv_dlopen() 44 return uv__dlerror(lib, filename, GetLastError()); in uv_dlopen() 92 static int uv__dlerror(uv_lib_t* lib, const char* filename, DWORD errorno) { in uv__dlerror() argument 122 arg = (DWORD_PTR) filename; in uv__dlerror()
|
H A D | fs-event.c | 70 size_t filenamelen = wcslen(filename); in uv__relative_path() 72 assert(!_wcsnicmp(filename, dir, dirlen)); in uv__relative_path() 88 if (filename == NULL) { in uv__split_path() 95 len = wcslen(filename); in uv__split_path() 97 while (i > 0 && filename[--i] != '\\' && filename[i] != '/'); in uv__split_path() 117 *file = _wcsdup(filename); in uv__split_path() 124 wcsncpy(*dir, filename, i + 1); in uv__split_path() 420 char* filename = NULL; in uv__process_fs_event_req() local 446 assert(!filename); in uv__process_fs_event_req() 550 uv__free(filename); in uv__process_fs_event_req() [all …]
|
/libuv/test/ |
H A D | test-fs-event.c | 140 ASSERT_OK(strcmp(filename, "file1")); in fs_event_cb_dir() 142 ASSERT(filename == NULL || strcmp(filename, "file1") == 0); in fs_event_cb_dir() 229 ASSERT_NOT_NULL(filename); in fs_event_cb_dir_multi_file() 232 if (filename != NULL) in fs_event_cb_dir_multi_file() 309 if (filename && strcmp(filename, file_prefix_in_subdir) == 0) in fs_event_cb_dir_multi_file_in_subdir() 315 if (strcmp(filename, "subdir") == 0) in fs_event_cb_dir_multi_file_in_subdir() 323 ASSERT_OK(strncmp(filename, in fs_event_cb_dir_multi_file_in_subdir() 327 ASSERT_NE(filename == NULL || in fs_event_cb_dir_multi_file_in_subdir() 328 strncmp(filename, in fs_event_cb_dir_multi_file_in_subdir() 358 ASSERT(filename == NULL || strcmp(filename, "file2") == 0); in fs_event_cb_file() [all …]
|
H A D | runner-win.c | 76 WCHAR path[MAX_PATH], filename[MAX_PATH]; in process_start() local 90 if (GetTempFileNameW((WCHAR*)&path, L"uv", 0, (WCHAR*)&filename) == 0) in process_start() 93 file = CreateFileW((WCHAR*)filename, in process_start()
|
H A D | test-fork.c | 469 const char* filename, in fs_event_cb_file_current_dir() argument 476 ASSERT_OK(strcmp(filename, "watch_file")); in fs_event_cb_file_current_dir() 478 ASSERT(filename == NULL || strcmp(filename, "watch_file") == 0); in fs_event_cb_file_current_dir()
|
H A D | test-queue-foreach-delete.c | 129 const char* filename,
|
H A D | test-fs.c | 171 static void check_permission(const char* filename, unsigned int mode) { in check_permission() argument 176 r = uv_fs_stat(NULL, &req, filename, NULL); in check_permission()
|
/libuv/src/unix/ |
H A D | aix.c | 444 if (uv__stat(filename, &statbuf) < 0) in uv__path_is_a_directory() 542 p = strrchr(filename, '/'); in uv__make_subdirs_p() 553 strncat(cmd, filename, (p - filename)); in uv__make_subdirs_p() 587 rc = uv__make_subdirs_p(filename); in uv__setup_ahafs() 591 strcat(mon_file, filename); in uv__setup_ahafs() 664 filename[i] = 0; in uv__parse_data() 797 if (filename[0] == '\0') { in uv_fs_event_start() 801 else if (filename[0] == '/') { in uv_fs_event_start() 814 if (filename[0] == '.' && filename[1] == '/') in uv_fs_event_start() 818 filename + str_offset); in uv_fs_event_start() [all …]
|
H A D | dl.c | 33 int uv_dlopen(const char* filename, uv_lib_t* lib) { in uv_dlopen() argument 36 lib->handle = dlopen(filename, RTLD_LAZY); in uv_dlopen()
|
H A D | linux.c | 2138 char filename[4097]; in uv__get_cgroup1_memory_limits() local 2146 snprintf(filename, sizeof(filename), in uv__get_cgroup1_memory_limits() 2150 snprintf(filename, sizeof(filename), in uv__get_cgroup1_memory_limits() 2178 char filename[4097]; in uv__get_cgroup2_memory_limits() local 2187 snprintf(filename, sizeof(filename), "/sys/fs/cgroup/%.*s/memory.max", n, p); in uv__get_cgroup2_memory_limits() 2188 *max = uv__read_uint64(filename); in uv__get_cgroup2_memory_limits() 2189 snprintf(filename, sizeof(filename), "/sys/fs/cgroup/%.*s/memory.high", n, p); in uv__get_cgroup2_memory_limits() 2220 char filename[4097]; in uv__get_cgroup1_current_memory() local 2228 snprintf(filename, sizeof(filename), in uv__get_cgroup1_current_memory() 2244 char filename[4097]; in uv__get_cgroup2_current_memory() local [all …]
|
H A D | no-fsevents.c | 32 const char* filename, unsigned int flags) { in uv_fs_event_start() argument
|
H A D | os390.c | 662 const char* filename, unsigned int flags) { in uv_fs_event_start() argument 669 path = uv__strdup(filename); in uv_fs_event_start()
|
H A D | internal.h | 292 int uv__slurp(const char* filename, char* buf, size_t len);
|
H A D | sunos.c | 606 const char* filename, in uv_fs_event_start() argument
|
H A D | core.c | 1072 int uv__slurp(const char* filename, char* buf, size_t len) { in uv__slurp() argument 1078 fd = uv__open_cloexec(filename, O_RDONLY); in uv__slurp()
|
/libuv/docs/code/onchange/ |
H A D | main.c | 9 void run_command(uv_fs_event_t *handle, const char *filename, int events, int status) { in run_command() argument 22 fprintf(stderr, " %s\n", filename ? filename : ""); in run_command()
|
/libuv/docs/code/uvwget/ |
H A D | main.c | 41 char filename[50]; in add_download() local 42 sprintf(filename, "%d.download", num); in add_download() 45 file = fopen(filename, "w"); in add_download() 47 fprintf(stderr, "Error opening %s\n", filename); in add_download() 55 fprintf(stderr, "Added download %s -> %s\n", url, filename); in add_download()
|
/libuv/docs/src/ |
H A D | dll.rst | 28 .. c:function:: int uv_dlopen(const char* filename, uv_lib_t* lib) 30 Opens a shared library. The filename is in utf-8. Returns 0 on success and
|
H A D | fs_event.rst | 39 .. c:type:: void (*uv_fs_event_cb)(uv_fs_event_t* handle, const char* filename, int events, int sta… 44 If the handle was started with a directory the `filename` parameter will
|
/libuv/ |
H A D | configure.ac | 32 # Xlc has a flag "-f<filename>". Need to use CC_CHECK_FLAG_SUPPORTED_APPEND so
|
H A D | CMakeLists.txt | 776 # The version in the filename is mirroring the behaviour of autotools.
|
H A D | ChangeLog | 431 * doc: filename arg to uv_fs_event_cb can be NULL (Ben Noordhuis) 3153 * win: include filename in dlopen error message (Ben Noordhuis) 3605 * win: compare entire filename in watch events (cjihrig) 5279 * fsevent: rename filename field to path (Saúl Ibarra Corretgé) 5996 * windows: don't use uppercase in include filename (Ben Noordhuis)
|
/libuv/include/ |
H A D | uv.h | 406 const char* filename, 1820 UV_EXTERN int uv_dlopen(const char* filename, uv_lib_t* lib);
|
/libuv/docs/src/guide/ |
H A D | filesystem.rst | 329 #. ``const char *filename`` - If a directory is being monitored, this is the
|
H A D | utilities.rst | 344 The shared library filename will be different depending on platforms. On
|