/libuv/test/ |
H A D | test-fs-readdir.c | 65 dir = req->ptr; in empty_readdir_cb() 81 ASSERT_NOT_NULL(req->ptr); in empty_opendir_cb() 82 dir = req->ptr; in empty_opendir_cb() 123 dir = opendir_req.ptr; in TEST_IMPL() 175 ASSERT_NULL(req->ptr); in non_existing_opendir_cb() 227 ASSERT_NULL(req->ptr); in file_opendir_cb() 288 dir = req->ptr; in non_empty_readdir_cb() 332 dir = req->ptr; in non_empty_opendir_cb() 407 dir = opendir_req.ptr; in TEST_IMPL() 470 dir = req->ptr; in readdir_symlink_readdir_cb() [all …]
|
H A D | runner-unix.c | 395 char* ptr; in process_read_last_line() local 406 for (ptr = buffer; *ptr && *ptr != '\r' && *ptr != '\n'; ptr++) in process_read_last_line() 408 *ptr = '\0'; in process_read_last_line()
|
H A D | test-fs.c | 344 stats = req->ptr; in statfs_cb() 366 ASSERT_NULL(req->ptr); in statfs_cb() 610 ASSERT(req->ptr); in scandir_cb() 620 ASSERT(!req->ptr); in scandir_cb() 663 ASSERT(req->ptr); in stat_cb() 666 ASSERT(!req->ptr); in stat_cb() 672 ASSERT(req->ptr); in stat_batch_cb() 675 ASSERT(!req->ptr); in stat_batch_cb() 1479 s = req.ptr; in TEST_IMPL() 1504 s = req.ptr; in TEST_IMPL() [all …]
|
H A D | task.h | 78 #define container_of(ptr, type, member) \ argument 79 ((type *) ((char *) (ptr) - offsetof(type, member)))
|
/libuv/src/unix/ |
H A D | dl.c | 53 int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) { in uv_dlsym() argument 55 *ptr = dlsym(lib->handle, name); in uv_dlsym() 56 return *ptr ? 0 : uv__dlerror(lib); in uv_dlsym()
|
H A D | fs.c | 600 req->ptr = dents; in uv__fs_scandir() 616 req->ptr = dir; in uv__fs_opendir() 621 req->ptr = NULL; in uv__fs_opendir() 632 dir = req->ptr; in uv__fs_readdir() 674 dir = req->ptr; in uv__fs_closedir() 682 req->ptr = NULL; in uv__fs_closedir() 794 req->ptr = buf; in uv__fs_readlink() 832 req->ptr = buf; in uv__fs_realpath() 2097 req->ptr = dir; in uv_fs_readdir() 2110 req->ptr = dir; in uv_fs_closedir() [all …]
|
H A D | core.c | 1401 char* ptr; in uv_os_environ() local 1410 ptr = strchr(buf, '='); in uv_os_environ() 1411 if (ptr == NULL) { in uv_os_environ() 1416 *ptr = '\0'; in uv_os_environ() 1420 envitem->value = ptr + 1; in uv_os_environ()
|
H A D | linux.c | 1099 req->ptr = statxbuf; in uv__iou_fs_statx() 1151 statxbuf = req->ptr; in uv__iou_fs_statx_post() 1152 req->ptr = NULL; in uv__iou_fs_statx_post() 1157 req->ptr = buf; in uv__iou_fs_statx_post()
|
/libuv/src/ |
H A D | uv-common.c | 81 void uv__free(void* ptr) { in uv__free() argument 99 uv__free(ptr); in uv__realloc() 109 uv__free(ptr); in uv__reallocf() 694 dents = req->ptr; in uv__fs_scandir_cleanup() 707 req->ptr = NULL; in uv__fs_scandir_cleanup() 721 if (!req->ptr) in uv_fs_scandir_next() 727 dents = req->ptr; in uv_fs_scandir_next() 736 req->ptr = NULL; in uv_fs_scandir_next() 789 if (req->ptr == NULL) in uv__fs_readdir_cleanup() 792 dir = req->ptr; in uv__fs_readdir_cleanup() [all …]
|
H A D | uv-common.h | 57 #define container_of(ptr, type, member) \ argument 58 ((type *) ((char *) (ptr) - offsetof(type, member))) 382 void uv__free(void* ptr); 383 void* uv__realloc(void* ptr, size_t size); 384 void* uv__reallocf(void* ptr, size_t size);
|
H A D | uv-data-getter-setters.c | 102 return req->ptr; in uv_fs_get_ptr()
|
/libuv/src/win/ |
H A D | process.c | 647 WCHAR* ptr; in make_program_env() local 681 ptr = dst_copy; in make_program_env() 689 uv_wtf8_to_utf16(*env, ptr, len); in make_program_env() 690 *ptr_copy++ = ptr; in make_program_env() 691 ptr += len; in make_program_env() 733 for (ptr = dst, ptr_copy = env_copy, i = 0; in make_program_env() 735 ptr += len) { in make_program_env() 751 ptr += required_vars[i].len; in make_program_env() 763 wmemcpy(ptr, *ptr_copy, len); in make_program_env() 771 assert(env_len == (size_t) (ptr - dst)); in make_program_env() [all …]
|
H A D | dl.c | 65 int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr) { in uv_dlsym() argument 67 *ptr = (void*)(uintptr_t) GetProcAddress(lib->handle, name); in uv_dlsym() 68 return uv__dlerror(lib, "", *ptr ? 0 : GetLastError()); in uv_dlsym()
|
H A D | fs.c | 393 req->ptr = NULL; in uv__fs_req_init() 1520 req->ptr = dirents; in fs__scandir() 1605 req->ptr = dir; in fs__opendir() 1612 req->ptr = NULL; in fs__opendir() 1625 dir = req->ptr; in fs__readdir() 1682 dir = req->ptr; in fs__closedir() 1684 uv__free(req->ptr); in fs__closedir() 2917 req->ptr = stat_fs; in fs__statfs() 3014 req->ptr = NULL; in uv_fs_req_cleanup() 3232 req->ptr = dir; in uv_fs_readdir() [all …]
|
H A D | util.c | 1203 char* ptr; in uv_os_environ() local 1210 ptr = strchr(buf + 1, '='); in uv_os_environ() 1211 if (ptr == NULL) { in uv_os_environ() 1216 *ptr = '\0'; in uv_os_environ() 1220 envitem->value = ptr + 1; in uv_os_environ()
|
H A D | pipe.c | 109 static void uv__unique_pipe_name(unsigned long long ptr, char* name, size_t size) { in uv__unique_pipe_name() argument 110 snprintf(name, size, "\\\\?\\pipe\\uv\\%llu-%lu", ptr, GetCurrentProcessId()); in uv__unique_pipe_name()
|
/libuv/docs/src/ |
H A D | dll.rst | 37 .. c:function:: int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr)
|
H A D | fs.rst | 211 .. c:member:: void* uv_fs_t.ptr 289 and returned via `req->ptr`. This memory is not freed by 290 `uv_fs_req_cleanup()`, although `req->ptr` is set to `NULL`. The allocated 354 and returned via `req->ptr`. This memory is freed by `uv_fs_req_cleanup()`. 463 The resulting string is stored in `req->ptr`. 468 The resulting string is stored in `req->ptr`. 523 Returns `req->ptr`.
|
H A D | migration_010_100.rst | 237 `uv_fs_readdir` returned a list of strings in the `req->ptr` field upon completion in
|
H A D | misc.rst | 34 .. c:type:: void* (*uv_realloc_func)(void* ptr, size_t size) 44 .. c:type:: void (*uv_free_func)(void* ptr)
|
/libuv/include/ |
H A D | uv.h | 280 typedef void* (*uv_realloc_func)(void* ptr, size_t size); 282 typedef void (*uv_free_func)(void* ptr); 1436 void* ptr; member 1822 UV_EXTERN int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr);
|
/libuv/ |
H A D | ChangeLog | 5104 * unix, windows: pass const handle ptr to uv_tcp_get*name (Chernyshev 5107 * common: pass const sockaddr ptr to uv_ip*_name (Chernyshev Viacheslav)
|