Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 34) sorted by relevance

12

/libuv/test/
H A Dtest-socket-buffer-size.c40 int value; in check_buffer_size() local
42 value = 0; in check_buffer_size()
43 ASSERT_OK(uv_recv_buffer_size(handle, &value)); in check_buffer_size()
44 ASSERT_GT(value, 0); in check_buffer_size()
46 value = 10000; in check_buffer_size()
47 ASSERT_OK(uv_recv_buffer_size(handle, &value)); in check_buffer_size()
49 value = 0; in check_buffer_size()
50 ASSERT_OK(uv_recv_buffer_size(handle, &value)); in check_buffer_size()
52 ASSERT(value == 10000 || value == 20000); in check_buffer_size()
H A Dtest-env-vars.c128 ASSERT_OK(strcmp(envitems[i].value, "123456789")); in TEST_IMPL()
131 ASSERT_OK(strlen(envitems[i].value)); in TEST_IMPL()
/libuv/src/unix/
H A Dthread.c531 unsigned int value; member
558 sem->value = value; in uv__custom_sem_init()
579 sem->value++; in uv__custom_sem_post()
580 if (sem->value == 1) in uv__custom_sem_post()
591 while (sem->value == 0) in uv__custom_sem_wait()
593 sem->value--; in uv__custom_sem_wait()
605 if (sem->value == 0) { in uv__custom_sem_trywait()
610 sem->value--; in uv__custom_sem_trywait()
617 if (sem_init(sem, 0, value)) in uv__sem_init()
671 return uv__sem_init(sem, value); in uv_sem_init()
[all …]
H A Dsunos.c661 *uptime = knp->value.ul / hz; in uv_uptime()
704 cpu_info->speed = (knp->data_type == KSTAT_DATA_INT32) ? knp->value.i32 in uv_cpu_info()
705 : knp->value.i64; in uv_cpu_info()
733 cpu_info->cpu_times.user = knp->value.ui64; in uv_cpu_info()
737 cpu_info->cpu_times.sys = knp->value.ui64; in uv_cpu_info()
741 cpu_info->cpu_times.idle = knp->value.ui64; in uv_cpu_info()
745 cpu_info->cpu_times.irq = knp->value.ui64; in uv_cpu_info()
H A Dos390-syscalls.h68 int sem_init(UV_PLATFORM_SEM_T* semid, int pshared, unsigned int value);
H A Dcore.c238 int uv__socket_sockopt(uv_handle_t* handle, int optname, int* value) { in uv__socket_sockopt() argument
243 if (handle == NULL || value == NULL) in uv__socket_sockopt()
253 len = sizeof(*value); in uv__socket_sockopt()
255 if (*value == 0) in uv__socket_sockopt()
256 r = getsockopt(fd, SOL_SOCKET, optname, value, &len); in uv__socket_sockopt()
258 r = setsockopt(fd, SOL_SOCKET, optname, (const void*) value, len); in uv__socket_sockopt()
1420 envitem->value = ptr + 1; in uv_os_environ()
1467 int uv_os_setenv(const char* name, const char* value) { in uv_os_setenv() argument
1468 if (name == NULL || value == NULL) in uv_os_setenv()
1471 if (setenv(name, value, 1) != 0) in uv_os_setenv()
/libuv/src/win/
H A Dthread.c362 int uv_sem_init(uv_sem_t* sem, unsigned int value) { in uv_sem_init() argument
363 *sem = CreateSemaphore(NULL, value, INT_MAX, NULL); in uv_sem_init()
456 void* value; in uv_key_get() local
458 value = TlsGetValue(key->tls_index); in uv_key_get()
459 if (value == NULL) in uv_key_get()
463 return value; in uv_key_get()
467 void uv_key_set(uv_key_t* key, void* value) { in uv_key_set() argument
468 if (TlsSetValue(key->tls_index, value) == FALSE) in uv_key_set()
H A Dudp.c881 int uv_udp_set_broadcast(uv_udp_t* handle, int value) { in uv_udp_set_broadcast() argument
882 BOOL optval = (BOOL) value; in uv_udp_set_broadcast()
944 int uv_udp_set_##name(uv_udp_t* handle, int value) { \
945 DWORD optval = (DWORD) value; \
947 if (!(validate(value))) { \
976 #define VALIDATE_TTL(value) ((value) >= 1 && (value) <= 255) argument
977 #define VALIDATE_MULTICAST_TTL(value) ((value) >= -1 && (value) <= 255) argument
978 #define VALIDATE_MULTICAST_LOOP(value) (1) argument
H A Dcore.c724 int uv__socket_sockopt(uv_handle_t* handle, int optname, int* value) { in uv__socket_sockopt() argument
729 if (handle == NULL || value == NULL) in uv__socket_sockopt()
739 len = sizeof(*value); in uv__socket_sockopt()
741 if (*value == 0) in uv__socket_sockopt()
742 r = getsockopt(socket, SOL_SOCKET, optname, (char*) value, &len); in uv__socket_sockopt()
744 r = setsockopt(socket, SOL_SOCKET, optname, (const char*) value, len); in uv__socket_sockopt()
H A Dutil.c1220 envitem->value = ptr + 1; in uv_os_environ()
1310 int uv_os_setenv(const char* name, const char* value) { in uv_os_setenv() argument
1315 if (name == NULL || value == NULL) in uv_os_setenv()
1323 r = uv__convert_utf8_to_utf16(value, &value_w); in uv_os_setenv()
/libuv/docs/src/
H A Dtimer.rst56 Stop the timer, and if it is repeating restart it using the repeat value
62 Set the repeat interval value in milliseconds. The timer will be scheduled
73 If the repeat value is set from a timer callback it does not immediately take effect.
75 then the old repeat value will have been used to schedule the next timeout.
79 Get the timer repeat value.
83 Get the timer due value or 0 if it has expired. The time is relative to
H A Dhandle.rst191 .. c:function:: int uv_send_buffer_size(uv_handle_t* handle, int* value)
196 If `*value` == 0, then it will set `*value` to the current send buffer size.
197 If `*value` > 0 then it will use `*value` to set the new send buffer size.
206 Linux will set double the size and return double the size of the original set value.
208 .. c:function:: int uv_recv_buffer_size(uv_handle_t* handle, int* value)
213 If `*value` == 0, then it will set `*value` to the current receive buffer size.
214 If `*value` > 0 then it will use `*value` to set the new receive buffer size.
223 Linux will set double the size and return double the size of the original set value.
H A Dthreading.rst21 value that was passed to :c:func:`uv_thread_create`.
86 `0` indicates that the default value should be used, i.e. behaves as if the flag was not set.
136 If the function succeeds, the return value is 0.
137 If the function fails, the return value is less than zero.
144 If the function succeeds, the return value is 0.
145 If the function fails, the return value is less than zero.
146 Retrieves the scheduling priority of the thread specified by tid. The value in the
160 .. c:function:: void uv_key_set(uv_key_t* key, void* value)
205 .. c:function:: int uv_sem_init(uv_sem_t* sem, unsigned int value)
242 :c:func:`uv_barrier_wait` returns a value > 0 to an arbitrarily chosen "serializer" thread
H A Dmisc.rst235 char* value;
298 freeing `base` after the uv_buf_t is done. Return struct passed by value.
378 use. Always returns a non-zero value.
648 This function currently only returns a value that is different from
736 into `buffer`, and sets `size` to the string length of the value. When
748 .. c:function:: int uv_os_setenv(const char* name, const char* value)
751 `value`.
775 storage required to hold the value.
807 constants, and not necessarily the exact value of `priority`.
830 zero on success, and a non-zero error value otherwise.
[all …]
H A Dmigration_010_100.rst90 In libuv 0.10 the callback had to return a filled :c:type:`uv_buf_t` by value:
115 IPv4 functions took ``struct sockaddr_in`` structures by value, and IPv6 functions took
148 not a structure by value.
H A Ddns.rst20 complete. In case it was cancelled, `status` will have a value of
30 complete. In case it was cancelled, `status` will have a value of
H A Derrors.rst56 bad ai_flags value
60 invalid value for hints
256 value too large for defined data type
H A Dtty.rst88 The correct value will now be auto-detected from the kernel.
101 :c:enum:`uv_tty_mode_t` value.
H A Dmetrics.rst56 The return value is the accumulated time spent idle in the kernel's event
H A Dthreadpool.rst12 ``UV_THREADPOOL_SIZE`` environment variable to any value (the absolute maximum
H A Dstream.rst126 be initialized. < 0 return value indicates an error.
154 This function will always succeed; hence, checking its return value is
H A Dloop.rst169 Get the poll timeout. The return value is in milliseconds, or -1 for no
249 Any previous value returned from :c:func:`uv_backend_fd` is now
/libuv/src/
H A Duv-common.c636 int uv_recv_buffer_size(uv_handle_t* handle, int* value) { in uv_recv_buffer_size() argument
637 return uv__socket_sockopt(handle, SO_RCVBUF, value); in uv_recv_buffer_size()
640 int uv_send_buffer_size(uv_handle_t* handle, int *value) { in uv_send_buffer_size() argument
641 return uv__socket_sockopt(handle, SO_SNDBUF, value); in uv_send_buffer_size()
/libuv/include/
H A Duv.h506 UV_EXTERN int uv_send_buffer_size(uv_handle_t* handle, int* value);
507 UV_EXTERN int uv_recv_buffer_size(uv_handle_t* handle, int* value);
1345 char* value; member
1351 UV_EXTERN int uv_os_setenv(const char* name, const char* value);
1840 UV_EXTERN int uv_sem_init(uv_sem_t* sem, unsigned int value);
1865 UV_EXTERN void uv_key_set(uv_key_t* key, void* value);
/libuv/docs/src/guide/
H A Dutilities.rst54 old ``repeat`` value. If the timer hasn't been started it fails (error code
276 mask with the new value. ``curl_perform`` is the crux of this program.
400 ``uv_guess_handle`` with the file descriptor and compare the return value with
441 The appropriate value will now be auto-detected from the kernel.

Completed in 61 milliseconds

12