Searched refs:handle (Results 1 - 25 of 1815) sorted by relevance

1234567891011>>

/netbsd-current/external/mit/libuv/dist/src/win/
H A Dhandle-inl.h32 #define DECREASE_ACTIVE_COUNT(loop, handle) \
34 if (--(handle)->activecnt == 0 && \
35 !((handle)->flags & UV_HANDLE_CLOSING)) { \
36 uv__handle_stop((handle)); \
38 assert((handle)->activecnt >= 0); \
42 #define INCREASE_ACTIVE_COUNT(loop, handle) \
44 if ((handle)->activecnt++ == 0) { \
45 uv__handle_start((handle)); \
47 assert((handle)->activecnt > 0); \
51 #define DECREASE_PENDING_REQ_COUNT(handle) \
88 uv__want_endgame(uv_loop_t* loop, uv_handle_t* handle) argument
99 uv_handle_t* handle; local
173 HANDLE handle; local
[all...]
H A Dasync.c27 #include "handle-inl.h"
31 void uv__async_endgame(uv_loop_t* loop, uv_async_t* handle) { argument
32 if (handle->flags & UV_HANDLE_CLOSING &&
33 !handle->async_sent) {
34 assert(!(handle->flags & UV_HANDLE_CLOSED));
35 uv__handle_close(handle);
40 int uv_async_init(uv_loop_t* loop, uv_async_t* handle, uv_async_cb async_cb) { argument
43 uv__handle_init(loop, (uv_handle_t*) handle, UV_ASYNC);
44 handle->async_sent = 0;
45 handle
57 uv__async_close(uv_loop_t* loop, uv_async_t* handle) argument
66 uv_async_send(uv_async_t* handle) argument
86 uv__process_async_wakeup_req(uv_loop_t* loop, uv_async_t* handle, uv_req_t* req) argument
[all...]
H A Dstream-inl.h29 #include "handle-inl.h"
34 uv_stream_t* handle,
36 uv__handle_init(loop, (uv_handle_t*) handle, type);
37 handle->write_queue_size = 0;
38 handle->activecnt = 0;
39 handle->stream.conn.shutdown_req = NULL;
40 handle->stream.conn.write_reqs_pending = 0;
42 UV_REQ_INIT(&handle->read_req, UV_READ);
43 handle->read_req.event_handle = NULL;
44 handle
33 uv__stream_init(uv_loop_t* loop, uv_stream_t* handle, uv_handle_type type) argument
49 uv__connection_init(uv_stream_t* handle) argument
[all...]
H A Dhandle.c28 #include "handle-inl.h"
32 HANDLE handle; local
39 handle = uv__get_osfhandle(file);
41 switch (GetFileType(handle)) {
43 if (GetConsoleMode(handle, &mode)) {
61 int uv_is_active(const uv_handle_t* handle) { argument
62 return (handle->flags & UV_HANDLE_ACTIVE) &&
63 !(handle->flags & UV_HANDLE_CLOSING);
67 void uv_close(uv_handle_t* handle, uv_close_cb cb) { argument
68 uv_loop_t* loop = handle
151 uv_is_closing(const uv_handle_t* handle) argument
[all...]
H A Dloop-watcher.c26 #include "handle-inl.h"
29 void uv__loop_watcher_endgame(uv_loop_t* loop, uv_handle_t* handle) { argument
30 if (handle->flags & UV_HANDLE_CLOSING) {
31 assert(!(handle->flags & UV_HANDLE_CLOSED));
32 handle->flags |= UV_HANDLE_CLOSED;
33 uv__handle_close(handle);
39 int uv_##name##_init(uv_loop_t* loop, uv_##name##_t* handle) { \
40 uv__handle_init(loop, (uv_handle_t*) handle, UV_##NAME); \
46 int uv_##name##_start(uv_##name##_t* handle, uv_##name##_cb cb) { \
47 uv_loop_t* loop = handle
[all...]
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Djpeg_v1_0.h29 int jpeg_v1_0_early_init(void *handle);
30 int jpeg_v1_0_sw_init(void *handle);
31 void jpeg_v1_0_sw_fini(void *handle);
/netbsd-current/lib/librumphijack/
H A Dhijackdlsym.c49 bouncer(void *handle, const char *symbol) argument
52 return dlsym(handle, symbol);
56 rumphijack_dlsym(void *handle, const char *symbol) argument
59 return bouncer(handle, symbol);
/netbsd-current/external/mit/libuv/dist/src/
H A Dtimer.c58 int uv_timer_init(uv_loop_t* loop, uv_timer_t* handle) { argument
59 uv__handle_init(loop, (uv_handle_t*)handle, UV_TIMER);
60 handle->timer_cb = NULL;
61 handle->timeout = 0;
62 handle->repeat = 0;
67 int uv_timer_start(uv_timer_t* handle, argument
73 if (uv__is_closing(handle) || cb == NULL)
76 if (uv__is_active(handle))
77 uv_timer_stop(handle);
79 clamped_timeout = handle
98 uv_timer_stop(uv_timer_t* handle) argument
111 uv_timer_again(uv_timer_t* handle) argument
124 uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) argument
129 uv_timer_get_repeat(const uv_timer_t* handle) argument
134 uv_timer_get_due_in(const uv_timer_t* handle) argument
144 const uv_timer_t* handle; local
165 uv_timer_t* handle; local
183 uv__timer_close(uv_timer_t* handle) argument
[all...]
/netbsd-current/external/apache2/argon2/dist/phc-winner-argon2/src/
H A Dthread.c25 int argon2_thread_create(argon2_thread_handle_t *handle, argument
27 if (NULL == handle || func == NULL) {
31 *handle = _beginthreadex(NULL, 0, func, args, 0, NULL);
32 return *handle != 0 ? 0 : -1;
34 return pthread_create(handle, NULL, func, args);
38 int argon2_thread_join(argon2_thread_handle_t handle) { argument
40 if (WaitForSingleObject((HANDLE)handle, INFINITE) == WAIT_OBJECT_0) {
41 return CloseHandle((HANDLE)handle) != 0 ? 0 : -1;
45 return pthread_join(handle, NULL);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dcorefile-buildid-shlib.c25 #define dlsym(handle, func) GetProcAddress (handle, func)
26 #define dlclose(handle) FreeLibrary (handle)
37 void *handle; local
41 handle = dlopen (the_shlib, RTLD_LAZY);
42 if (!handle)
48 func = (int (*)(void)) dlsym (handle, "crashfunc");
56 dlclose (handle);
H A Dsolib-disc.c24 #define dlsym(handle, func) GetProcAddress (handle, func)
25 #define dlclose(handle) FreeLibrary (handle)
33 void *handle; local
36 handle = dlopen (SHLIB_NAME, RTLD_LAZY);
37 if (!handle)
43 func = (void (*)(void)) dlsym (handle, "shrfunc");
52 dlclose (handle);
H A Dbreak-probes.c23 void *handle = dlopen (SHLIB_NAME, RTLD_LAZY); local
25 assert (handle != NULL);
27 dlclose (handle);
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dcorefile-buildid-shlib.c25 #define dlsym(handle, func) GetProcAddress (handle, func)
26 #define dlclose(handle) FreeLibrary (handle)
37 void *handle; local
41 handle = dlopen (the_shlib, RTLD_LAZY);
42 if (!handle)
48 func = (int (*)(void)) dlsym (handle, "crashfunc");
56 dlclose (handle);
H A Dsolib-disc.c24 #define dlsym(handle, func) GetProcAddress (handle, func)
25 #define dlclose(handle) FreeLibrary (handle)
33 void *handle; local
36 handle = dlopen (SHLIB_NAME, RTLD_LAZY);
37 if (!handle)
43 func = (void (*)(void)) dlsym (handle, "shrfunc");
52 dlclose (handle);
H A Ddlmopen.c31 void *handle[4]; local
36 handle[0] = dlmopen (LM_ID_NEWLM, DSO1_NAME, RTLD_LAZY | RTLD_LOCAL);
37 assert (handle[0] != NULL);
39 dlinfo (handle[0], RTLD_DI_LMID, &lmid);
41 handle[1] = dlopen (DSO1_NAME, RTLD_LAZY | RTLD_LOCAL);
42 assert (handle[1] != NULL);
44 handle[2] = dlmopen (LM_ID_NEWLM, DSO1_NAME, RTLD_LAZY | RTLD_LOCAL);
45 assert (handle[2] != NULL);
47 handle[3] = dlmopen (lmid, DSO2_NAME, RTLD_LAZY | RTLD_LOCAL);
48 assert (handle[
[all...]
H A Dbreak-probes.c23 void *handle = dlopen (SHLIB_NAME, RTLD_LAZY); local
25 assert (handle != NULL);
27 dlclose (handle);
/netbsd-current/external/gpl2/lvm2/dist/doc/
H A Dexample_cmdlib.c34 void *handle; local
39 handle = lvm2_init();
41 lvm2_log_level(handle, 1);
42 r = lvm2_run(handle, "vgs --noheadings vg1");
46 lvm2_exit(handle);
/netbsd-current/external/gpl3/gdb.old/dist/ld/testsuite/ld-elf/
H A Ddl1main.c10 void *handle; local
13 handle = dlopen("./tmpdir/libdl1.so", RTLD_GLOBAL|RTLD_LAZY);
14 if (!handle)
20 fcn = (void (*)(void)) dlsym(handle, "foo");
31 dlclose (handle);
H A Ddl6amain.c10 void *handle; local
13 handle = dlopen("./tmpdir/libdl6a.so", RTLD_GLOBAL|RTLD_LAZY);
14 if (!handle)
20 fcn = (void (*)(void)) dlsym(handle, "foo");
31 dlclose (handle);
H A Ddl6bmain.c10 void *handle; local
13 handle = dlopen("./tmpdir/libdl6b.so", RTLD_GLOBAL|RTLD_LAZY);
14 if (!handle)
20 fcn = (void (*)(void)) dlsym(handle, "foo");
31 dlclose (handle);
H A Ddl6cmain.c10 void *handle; local
13 handle = dlopen("./tmpdir/libdl6c.so", RTLD_GLOBAL|RTLD_LAZY);
14 if (!handle)
20 fcn = (void (*)(void)) dlsym(handle, "foo");
31 dlclose (handle);
H A Ddl6dmain.c10 void *handle; local
13 handle = dlopen("./tmpdir/libdl6d.so", RTLD_GLOBAL|RTLD_LAZY);
14 if (!handle)
20 fcn = (void (*)(void)) dlsym(handle, "foo");
31 dlclose (handle);
/netbsd-current/external/bsd/libbind/dist/nameser/
H A Dns_parse.c77 int ns_msg_getflag(ns_msg handle, int flag) { argument
78 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
106 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { argument
110 handle->_msg = msg;
111 handle->_eom = eom;
114 NS_GET16(handle->_id, msg);
117 NS_GET16(handle->_flags, msg);
121 NS_GET16(handle->_counts[i], msg);
124 if (handle->_counts[i] == 0)
125 handle
142 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) argument
205 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) argument
[all...]
/netbsd-current/external/mit/libuv/dist/src/unix/
H A Dpoll.c31 uv_poll_t* handle; local
34 handle = container_of(w, uv_poll_t, io_watcher);
49 uv__handle_stop(handle);
50 handle->poll_cb(handle, UV_EBADF, 0);
64 handle->poll_cb(handle, 0, pevents);
68 int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd) { argument
90 uv__handle_init(loop, (uv_handle_t*) handle, UV_POLL);
91 uv__io_init(&handle
97 uv_poll_init_socket(uv_loop_t* loop, uv_poll_t* handle, uv_os_sock_t socket) argument
103 uv__poll_stop(uv_poll_t* handle) argument
112 uv_poll_stop(uv_poll_t* handle) argument
119 uv_poll_start(uv_poll_t* handle, int pevents, uv_poll_cb poll_cb) argument
158 uv__poll_close(uv_poll_t* handle) argument
[all...]
/netbsd-current/tests/libexec/ld.elf_so/
H A Dh_df_1_noopen.c38 void *handle; local
40 handle = dlopen("libpthread.so", RTLD_NOLOAD);
41 if (handle == NULL)

Completed in 337 milliseconds

1234567891011>>