Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 85) sorted by relevance

1234

/libuv/src/win/
H A Dloop-watcher.c38 #define UV_LOOP_WATCHER_DEFINE(name, NAME) \ argument
39 int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \
46 int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \
48 uv_##name##_t* old_head; \
76 int uv_##name##_stop(uv_##name##_t* handle) { \
86 loop->name##_handles = handle->name##_next; \
91 loop->next_##name##_handle = handle->name##_next; \
95 handle->name##_prev->name##_next = handle->name##_next; \
98 handle->name##_next->name##_prev = handle->name##_prev; \
110 (loop)->next_##name##_handle = (loop)->name##_handles; \
[all …]
H A Dpipe.c119 handle->name = NULL; in uv_pipe_init()
705 return uv_pipe_bind2(handle, name, strlen(name), 0); in uv_pipe_bind()
722 if (name == NULL) { in uv_pipe_bind2()
808 handle->name = NULL; in uv_pipe_bind2()
863 err = uv_pipe_connect2(req, handle, name, strlen(name), 0, cb); in uv_pipe_connect()
901 if (name == NULL) { in uv_pipe_connect2()
950 memcpy(req->u.connect.name, handle->name, nameSize); in uv_pipe_connect2()
983 if (handle->name) { in uv_pipe_connect2()
985 handle->name = NULL; in uv_pipe_connect2()
1076 if (handle->name) { in uv__pipe_close()
[all …]
/libuv/test/
H A Dtest-queue-foreach-delete.c69 #define DEFINE_GLOBALS_AND_CBS(name, ...) \ argument
70 static uv_##name##_t (name)[3]; \
71 static unsigned name##_cb_calls[3]; \
73 static void name##2_cb(__VA_ARGS__) { \
74 ASSERT_PTR_EQ(handle, &(name)[2]); \
75 if (first_handle_number_##name == 2) { \
76 uv_close((uv_handle_t*)&(name)[2], NULL); \
77 uv_close((uv_handle_t*)&(name)[1], NULL); \
96 static const uv_##name##_cb name##_cbs[] = { \
107 r = uv_##name##_init((loop), &(name)[i]); \
[all …]
H A Drunner.h63 #define TEST_DECLARE(name) \ argument
64 int run_test_##name(void);
66 #define TEST_ENTRY(name) \ argument
67 { #name, #name, &run_test_##name, 0, 0, 5000 },
70 { #name, #name, &run_test_##name, is_helper, show_output, timeout },
72 #define BENCHMARK_DECLARE(name) \ argument
73 int run_benchmark_##name(void);
75 #define BENCHMARK_ENTRY(name) \ argument
76 { #name, #name, &run_benchmark_##name, 0, 0, 60000 },
79 int run_helper_##name(void);
[all …]
H A Dtest-env-vars.c29 const char* name = "UV_TEST_FOO"; in TEST_IMPL() local
44 r = uv_os_setenv(name, NULL); in TEST_IMPL()
55 r = uv_os_getenv(name, buf, NULL); in TEST_IMPL()
58 r = uv_os_getenv(name, buf, &size); in TEST_IMPL()
72 r = uv_os_getenv(name, buf, &size); in TEST_IMPL()
80 r = uv_os_getenv(name, buf, &size); in TEST_IMPL()
85 r = uv_os_unsetenv(name); in TEST_IMPL()
93 r = uv_os_unsetenv(name); in TEST_IMPL()
97 r = uv_os_setenv(name, ""); in TEST_IMPL()
126 if (strcmp(envitems[i].name, name) == 0) { in TEST_IMPL()
[all …]
H A Dtest-pipe-getsockname.c217 static const char name[] = "\0" TEST_PIPENAME; in TEST_IMPL() local
225 ASSERT_OK(uv_pipe_bind2(&pipe_server, name, sizeof(name) - 1, 0)); in TEST_IMPL()
227 ASSERT_UINT64_EQ(sizeof(name) - 1, buflen); in TEST_IMPL()
228 ASSERT_MEM_EQ(name, buf, buflen); in TEST_IMPL()
235 name, in TEST_IMPL()
236 sizeof(name) - 1, in TEST_IMPL()
247 ASSERT_EQ(UV_EINVAL, uv_pipe_bind2(&pipe_server, name, sizeof(name), 0)); in TEST_IMPL()
252 name, in TEST_IMPL()
253 sizeof(name), in TEST_IMPL()
H A Dtask.h265 #define TEST_IMPL(name) \ argument
266 int run_test_##name(void); \
267 int run_test_##name(void)
269 #define BENCHMARK_IMPL(name) \ argument
270 int run_benchmark_##name(void); \
271 int run_benchmark_##name(void)
273 #define HELPER_IMPL(name) \ argument
274 int run_helper_##name(void); \
275 int run_helper_##name(void)
H A Dtest-getaddrinfo.c28 static const char* name = "localhost"; variable
147 name, in TEST_IMPL()
171 name, in TEST_IMPL()
201 name, in TEST_IMPL()
H A Dtest-fs-readdir.c299 ASSERT(strcmp(dirents[0].name, "file1") == 0 || in non_empty_readdir_cb()
300 strcmp(dirents[0].name, "file2") == 0 || in non_empty_readdir_cb()
301 strcmp(dirents[0].name, "test_subdir") == 0); in non_empty_readdir_cb()
303 if (!strcmp(dirents[0].name, "test_subdir")) in non_empty_readdir_cb()
415 ASSERT(strcmp(dirents[0].name, "file1") == 0 || in TEST_IMPL()
416 strcmp(dirents[0].name, "file2") == 0 || in TEST_IMPL()
417 strcmp(dirents[0].name, "test_subdir") == 0); in TEST_IMPL()
419 if (!strcmp(dirents[0].name, "test_subdir")) in TEST_IMPL()
H A Drunner-unix.c85 int process_start(char* name, char* part, process_info_t* p, int is_helper) { in process_start() argument
111 args[n++] = name; in process_start()
164 p->name = strdup(name); in process_start()
422 return p->name; in process_get_name()
445 free(p->name); in process_cleanup()
H A Drunner-win.c73 int process_start(char *name, char *part, process_info_t *p, int is_helper) { in process_start() argument
130 name, in process_start()
139 name) < 0) { in process_start()
163 p->name = part; in process_start()
282 return p->name; in process_get_name()
/libuv/src/unix/
H A Dloop-watcher.c25 #define UV_LOOP_WATCHER_DEFINE(name, type) \ argument
26 int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \
28 handle->name##_cb = NULL; \
32 int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \
35 uv__queue_insert_head(&handle->loop->name##_handles, &handle->queue); \
36 handle->name##_cb = cb; \
41 int uv_##name##_stop(uv_##name##_t* handle) { \
48 void uv__run_##name(uv_loop_t* loop) { \
49 uv_##name##_t* h; \
52 uv__queue_move(&loop->name##_handles, &queue); \
[all …]
H A Drandom-sysctl-linux.c33 int* name; member
44 static int name[] = {1 /*CTL_KERN*/, 40 /*KERN_RANDOM*/, 6 /*RANDOM_UUID*/}; in uv__random_sysctl() local
57 args.name = name; in uv__random_sysctl()
58 args.nlen = ARRAY_SIZE(name); in uv__random_sysctl()
H A Dpipe.c57 return uv_pipe_bind2(handle, name, strlen(name), 0); in uv_pipe_bind()
62 const char* name, in uv_pipe_bind2() argument
76 if (name == NULL) in uv_pipe_bind2()
87 if (includes_nul(name, namelen)) in uv_pipe_bind2()
109 if (*name == '\0') { in uv_pipe_bind2()
115 memcpy(pipe_fname, name, namelen); in uv_pipe_bind2()
232 const char* name, in uv_pipe_connect() argument
236 err = uv_pipe_connect2(req, handle, name, strlen(name), 0, cb); in uv_pipe_connect()
268 if (name == NULL) in uv_pipe_connect2()
274 if (includes_nul(name, namelen)) in uv_pipe_connect2()
[all …]
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()
/libuv/include/uv/
H A Dtree.h141 attr void name##_RB_INSERT_COLOR(struct name *, struct type *); \
142 attr void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
143 attr struct type *name##_RB_REMOVE(struct name *, struct type *); \
482 #define RB_INSERT(name, x, y) name##_RB_INSERT(x, y) argument
483 #define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y) argument
484 #define RB_FIND(name, x, y) name##_RB_FIND(x, y) argument
485 #define RB_NFIND(name, x, y) name##_RB_NFIND(x, y) argument
486 #define RB_NEXT(name, x) name##_RB_NEXT(x) argument
487 #define RB_PREV(name, x) name##_RB_PREV(x) argument
488 #define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF) argument
[all …]
/libuv/.github/workflows/
H A Dsanitizer.yml1 name: Sanitizer checks
20 - name: Setup
23 - name: Envinfo
31 - name: ASAN Build
36 - name: ASAN Test
40 - name: MSAN Build
45 - name: MSAN Test
54 - name: TSAN Test
74 - name: Envinfo
108 - name: Setup
[all …]
H A DCI-win.yml1 name: CI-win
33 - name: Build
48 - name: platform_output_a
53 - name: platform_output
58 - name: Test
67 - name: Test only static
88 - name: Build
100 - name: Upload build artifacts
118 - name: Download build artifacts
122 - name: Test
[all …]
H A DCI-unix.yml1 name: CI-unix
21 - name: configure
26 - name: distcheck
41 - name: Envinfo
75 - name: Test
85 - name: Setup
93 - name: Build
103 - name: Test
123 - name: Build
173 - name: Build
[all …]
H A DCI-sample.yml1 name: ci-sample
25 - name: setup
27 - name: configure
31 - name: build
H A DCI-docs.yml1 name: CI-docs
20 - name: html
23 - name: linkcheck
/libuv/docs/src/sphinx-plugins/
H A Dmanpage.py18 def make_link_node(rawtext, app, name, manpage_num, options): argument
21 ref = "https://man7.org/linux/man-pages/man%s/%s.%s.html" %(manpage_num, name, manpage_num)
24 ref = s.substitute(num=manpage_num, topic=name)
26 node = nodes.reference(rawtext, "%s(%s)" % (name, manpage_num), refuri=ref, **options)
30 def man_role(name, rawtext, text, lineno, inliner, options={}, content=[]): argument
36 name = m.group(1)
37 node = make_link_node(rawtext, app, name, manpage_num, options)
/libuv/docs/src/
H A Dpipe.rst54 .. c:function:: int uv_pipe_bind(uv_pipe_t* handle, const char* name)
56 Bind the pipe to a file path (Unix) or a name (Windows).
61 Alias for ``uv_pipe_bind2(handle, name, strlen(name), 0)``.
67 .. c:function:: int uv_pipe_bind2(uv_pipe_t* handle, const char* name, size_t namelen, unsigned int…
69 Bind the pipe to a file path (Unix) or a name (Windows).
84 .. c:function:: void uv_pipe_connect(uv_connect_t* req, uv_pipe_t* handle, const char* name, uv_con…
91 Alias for ``uv_pipe_connect2(req, handle, name, strlen(name), 0, cb)``.
97 .. c:function:: void uv_pipe_connect2(uv_connect_t* req, uv_pipe_t* handle, const char* name, size_…
116 Get the name of the Unix domain socket or the named pipe.
128 Get the name of the Unix domain socket or the named pipe to which the handle
/libuv/src/
H A Duv-common.c208 #define UV_ERR_NAME_GEN_R(name, _) \ argument
209 case UV_## name: \
210 uv__strscpy(buf, #name, buflen); break;
221 #define UV_ERR_NAME_GEN(name, _) case UV_ ## name: return #name; argument
231 #define UV_STRERROR_GEN_R(name, msg) \ argument
232 case UV_ ## name: \
244 #define UV_STRERROR_GEN(name, msg) case UV_ ## name: return msg; argument
742 ent->name = dent->d_name; in uv_fs_scandir_next()
800 uv__free((char*) dirents[i].name); in uv__fs_readdir_cleanup()
801 dirents[i].name = NULL; in uv__fs_readdir_cleanup()
[all …]
/libuv/docs/code/plugin/
H A Dmain.c11 void mfp_register(const char *name) { in mfp_register() argument
12 fprintf(stderr, "Registered plugin \"%s\"\n", name); in mfp_register()

Completed in 52 milliseconds

1234