Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 22 of 22) sorted by relevance

/libuv/test/
H A Dtest-fs-readdir.c65 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 Drunner-unix.c395 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 Dtest-fs.c344 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 Dtask.h78 #define container_of(ptr, type, member) \ argument
79 ((type *) ((char *) (ptr) - offsetof(type, member)))
/libuv/src/unix/
H A Ddl.c53 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 Dfs.c600 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 Dcore.c1401 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 Dlinux.c1099 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 Duv-common.c81 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 Duv-common.h57 #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 Duv-data-getter-setters.c102 return req->ptr; in uv_fs_get_ptr()
/libuv/src/win/
H A Dprocess.c647 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 Ddl.c65 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 Dfs.c393 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 Dutil.c1203 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 Dpipe.c109 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 Ddll.rst37 .. c:function:: int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr)
H A Dfs.rst211 .. 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 Dmigration_010_100.rst237 `uv_fs_readdir` returned a list of strings in the `req->ptr` field upon completion in
H A Dmisc.rst34 .. c:type:: void* (*uv_realloc_func)(void* ptr, size_t size)
44 .. c:type:: void (*uv_free_func)(void* ptr)
/libuv/include/
H A Duv.h280 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 DChangeLog5104 * unix, windows: pass const handle ptr to uv_tcp_get*name (Chernyshev
5107 * common: pass const sockaddr ptr to uv_ip*_name (Chernyshev Viacheslav)

Completed in 98 milliseconds