WPILibC++ 2024.3.2
uv.h
Go to the documentation of this file.
1/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
9 *
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 * IN THE SOFTWARE.
20 */
21
22/* See https://github.com/libuv/libuv#documentation for documentation. */
23
24#ifndef UV_H
25#define UV_H
26
27#if defined(BUILDING_UV_SHARED) && defined(USING_UV_SHARED)
28#error "Define either BUILDING_UV_SHARED or USING_UV_SHARED, not both."
29#endif
30
31#ifndef UV_EXTERN
32#ifdef _WIN32
33 /* Windows - set up dll import/export decorators. */
34# if defined(BUILDING_UV_SHARED)
35 /* Building shared library. */
36# define UV_EXTERN __declspec(dllexport)
37# elif defined(USING_UV_SHARED)
38 /* Using shared library. */
39# define UV_EXTERN __declspec(dllimport)
40# else
41 /* Building static library. */
42# define UV_EXTERN /* nothing */
43# endif
44#elif __GNUC__ >= 4
45# define UV_EXTERN __attribute__((visibility("default")))
46#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) /* Sun Studio >= 8 */
47# define UV_EXTERN __global
48#else
49# define UV_EXTERN /* nothing */
50#endif
51#endif /* UV_EXTERN */
52
53#include "uv/errno.h"
54#include "uv/version.h"
55#include <stddef.h>
56#include <stdio.h>
57#include <stdint.h>
58
59/* Internal type, do not use. */
60struct uv__queue {
61 struct uv__queue* next;
62 struct uv__queue* prev;
63};
64
65#if defined(_WIN32)
66# include "uv/win.h"
67#else
68# include "uv/unix.h"
69#endif
70
71/* Expand this list if necessary. */
72#define UV_ERRNO_MAP(XX) \
73 XX(E2BIG, "argument list too long") \
74 XX(EACCES, "permission denied") \
75 XX(EADDRINUSE, "address already in use") \
76 XX(EADDRNOTAVAIL, "address not available") \
77 XX(EAFNOSUPPORT, "address family not supported") \
78 XX(EAGAIN, "resource temporarily unavailable") \
79 XX(EAI_ADDRFAMILY, "address family not supported") \
80 XX(EAI_AGAIN, "temporary failure") \
81 XX(EAI_BADFLAGS, "bad ai_flags value") \
82 XX(EAI_BADHINTS, "invalid value for hints") \
83 XX(EAI_CANCELED, "request canceled") \
84 XX(EAI_FAIL, "permanent failure") \
85 XX(EAI_FAMILY, "ai_family not supported") \
86 XX(EAI_MEMORY, "out of memory") \
87 XX(EAI_NODATA, "no address") \
88 XX(EAI_NONAME, "unknown node or service") \
89 XX(EAI_OVERFLOW, "argument buffer overflow") \
90 XX(EAI_PROTOCOL, "resolved protocol is unknown") \
91 XX(EAI_SERVICE, "service not available for socket type") \
92 XX(EAI_SOCKTYPE, "socket type not supported") \
93 XX(EALREADY, "connection already in progress") \
94 XX(EBADF, "bad file descriptor") \
95 XX(EBUSY, "resource busy or locked") \
96 XX(ECANCELED, "operation canceled") \
97 XX(ECHARSET, "invalid Unicode character") \
98 XX(ECONNABORTED, "software caused connection abort") \
99 XX(ECONNREFUSED, "connection refused") \
100 XX(ECONNRESET, "connection reset by peer") \
101 XX(EDESTADDRREQ, "destination address required") \
102 XX(EEXIST, "file already exists") \
103 XX(EFAULT, "bad address in system call argument") \
104 XX(EFBIG, "file too large") \
105 XX(EHOSTUNREACH, "host is unreachable") \
106 XX(EINTR, "interrupted system call") \
107 XX(EINVAL, "invalid argument") \
108 XX(EIO, "i/o error") \
109 XX(EISCONN, "socket is already connected") \
110 XX(EISDIR, "illegal operation on a directory") \
111 XX(ELOOP, "too many symbolic links encountered") \
112 XX(EMFILE, "too many open files") \
113 XX(EMSGSIZE, "message too long") \
114 XX(ENAMETOOLONG, "name too long") \
115 XX(ENETDOWN, "network is down") \
116 XX(ENETUNREACH, "network is unreachable") \
117 XX(ENFILE, "file table overflow") \
118 XX(ENOBUFS, "no buffer space available") \
119 XX(ENODEV, "no such device") \
120 XX(ENOENT, "no such file or directory") \
121 XX(ENOMEM, "not enough memory") \
122 XX(ENONET, "machine is not on the network") \
123 XX(ENOPROTOOPT, "protocol not available") \
124 XX(ENOSPC, "no space left on device") \
125 XX(ENOSYS, "function not implemented") \
126 XX(ENOTCONN, "socket is not connected") \
127 XX(ENOTDIR, "not a directory") \
128 XX(ENOTEMPTY, "directory not empty") \
129 XX(ENOTSOCK, "socket operation on non-socket") \
130 XX(ENOTSUP, "operation not supported on socket") \
131 XX(EOVERFLOW, "value too large for defined data type") \
132 XX(EPERM, "operation not permitted") \
133 XX(EPIPE, "broken pipe") \
134 XX(EPROTO, "protocol error") \
135 XX(EPROTONOSUPPORT, "protocol not supported") \
136 XX(EPROTOTYPE, "protocol wrong type for socket") \
137 XX(ERANGE, "result too large") \
138 XX(EROFS, "read-only file system") \
139 XX(ESHUTDOWN, "cannot send after transport endpoint shutdown") \
140 XX(ESPIPE, "invalid seek") \
141 XX(ESRCH, "no such process") \
142 XX(ETIMEDOUT, "connection timed out") \
143 XX(ETXTBSY, "text file is busy") \
144 XX(EXDEV, "cross-device link not permitted") \
145 XX(UNKNOWN, "unknown error") \
146 XX(EOF, "end of file") \
147 XX(ENXIO, "no such device or address") \
148 XX(EMLINK, "too many links") \
149 XX(EHOSTDOWN, "host is down") \
150 XX(EREMOTEIO, "remote I/O error") \
151 XX(ENOTTY, "inappropriate ioctl for device") \
152 XX(EFTYPE, "inappropriate file type or format") \
153 XX(EILSEQ, "illegal byte sequence") \
154 XX(ESOCKTNOSUPPORT, "socket type not supported") \
155 XX(ENODATA, "no data available") \
156 XX(EUNATCH, "protocol driver not attached") \
157
158#define UV_HANDLE_TYPE_MAP(XX) \
159 XX(ASYNC, async) \
160 XX(CHECK, check) \
161 XX(FS_EVENT, fs_event) \
162 XX(FS_POLL, fs_poll) \
163 XX(HANDLE, handle) \
164 XX(IDLE, idle) \
165 XX(NAMED_PIPE, pipe) \
166 XX(POLL, poll) \
167 XX(PREPARE, prepare) \
168 XX(PROCESS, process) \
169 XX(STREAM, stream) \
170 XX(TCP, tcp) \
171 XX(TIMER, timer) \
172 XX(TTY, tty) \
173 XX(UDP, udp) \
174 XX(SIGNAL, signal) \
175
176#define UV_REQ_TYPE_MAP(XX) \
177 XX(REQ, req) \
178 XX(CONNECT, connect) \
179 XX(WRITE, write) \
180 XX(SHUTDOWN, shutdown) \
181 XX(UDP_SEND, udp_send) \
182 XX(FS, fs) \
183 XX(WORK, work) \
184 XX(GETADDRINFO, getaddrinfo) \
185 XX(GETNAMEINFO, getnameinfo) \
186 XX(RANDOM, random) \
187
188typedef enum {
189#define XX(code, _) UV_ ## code = UV__ ## code,
191#undef XX
194
195typedef enum {
197#define XX(uc, lc) UV_##uc,
199#undef XX
203
204typedef enum {
206#define XX(uc, lc) UV_##uc,
208#undef XX
212
213
214/* Handle types. */
215typedef struct uv_loop_s uv_loop_t;
217typedef struct uv_dir_s uv_dir_t;
219typedef struct uv_tcp_s uv_tcp_t;
220typedef struct uv_udp_s uv_udp_t;
221typedef struct uv_pipe_s uv_pipe_t;
222typedef struct uv_tty_s uv_tty_t;
223typedef struct uv_poll_s uv_poll_t;
224typedef struct uv_timer_s uv_timer_t;
226typedef struct uv_check_s uv_check_t;
227typedef struct uv_idle_s uv_idle_t;
228typedef struct uv_async_s uv_async_t;
233
234/* Request types. */
235typedef struct uv_req_s uv_req_t;
239typedef struct uv_write_s uv_write_t;
242typedef struct uv_fs_s uv_fs_t;
243typedef struct uv_work_s uv_work_t;
245
246/* None of the above. */
252typedef struct uv_group_s uv_group_t;
255
257
258typedef enum {
262
263typedef enum {
268
269
270UV_EXTERN unsigned int uv_version(void);
271UV_EXTERN const char* uv_version_string(void);
272
273typedef void* (*uv_malloc_func)(size_t size);
274typedef void* (*uv_realloc_func)(void* ptr, size_t size);
275typedef void* (*uv_calloc_func)(size_t count, size_t size);
276typedef void (*uv_free_func)(void* ptr);
277
279
281 uv_realloc_func realloc_func,
282 uv_calloc_func calloc_func,
283 uv_free_func free_func);
284
288/*
289 * NOTE:
290 * This function is DEPRECATED, users should
291 * allocate the loop manually and use uv_loop_init instead.
292 */
294/*
295 * NOTE:
296 * This function is DEPRECATED. Users should use
297 * uv_loop_close and free the memory manually instead.
298 */
304
307
311
313UV_EXTERN uint64_t uv_now(const uv_loop_t*);
314
317
318typedef void (*uv_alloc_cb)(uv_handle_t* handle,
319 size_t suggested_size,
320 uv_buf_t* buf);
321typedef void (*uv_read_cb)(uv_stream_t* stream,
322 ssize_t nread,
323 const uv_buf_t* buf);
324typedef void (*uv_write_cb)(uv_write_t* req, int status);
325typedef void (*uv_connect_cb)(uv_connect_t* req, int status);
326typedef void (*uv_shutdown_cb)(uv_shutdown_t* req, int status);
327typedef void (*uv_connection_cb)(uv_stream_t* server, int status);
328typedef void (*uv_close_cb)(uv_handle_t* handle);
329typedef void (*uv_poll_cb)(uv_poll_t* handle, int status, int events);
330typedef void (*uv_timer_cb)(uv_timer_t* handle);
331typedef void (*uv_async_cb)(uv_async_t* handle);
332typedef void (*uv_prepare_cb)(uv_prepare_t* handle);
333typedef void (*uv_check_cb)(uv_check_t* handle);
334typedef void (*uv_idle_cb)(uv_idle_t* handle);
335typedef void (*uv_exit_cb)(uv_process_t*, int64_t exit_status, int term_signal);
336typedef void (*uv_walk_cb)(uv_handle_t* handle, void* arg);
337typedef void (*uv_fs_cb)(uv_fs_t* req);
338typedef void (*uv_work_cb)(uv_work_t* req);
339typedef void (*uv_after_work_cb)(uv_work_t* req, int status);
341 int status,
342 struct addrinfo* res);
344 int status,
345 const char* hostname,
346 const char* service);
347typedef void (*uv_random_cb)(uv_random_t* req,
348 int status,
349 void* buf,
350 size_t buflen);
351
352typedef enum {
356
357/* XXX(bnoordhuis) not 2038-proof, https://github.com/libuv/libuv/issues/3864 */
358typedef struct {
359 long tv_sec;
362
363typedef struct {
364 int64_t tv_sec;
365 int32_t tv_nsec;
367
368/* XXX(bnoordhuis) not 2038-proof, https://github.com/libuv/libuv/issues/3864 */
369typedef struct {
370 long tv_sec;
373
374typedef struct {
375 int64_t tv_sec;
376 int32_t tv_usec;
378
379typedef struct {
380 uint64_t st_dev;
381 uint64_t st_mode;
382 uint64_t st_nlink;
383 uint64_t st_uid;
384 uint64_t st_gid;
385 uint64_t st_rdev;
386 uint64_t st_ino;
387 uint64_t st_size;
388 uint64_t st_blksize;
389 uint64_t st_blocks;
390 uint64_t st_flags;
391 uint64_t st_gen;
396} uv_stat_t;
397
398
399typedef void (*uv_fs_event_cb)(uv_fs_event_t* handle,
400 const char* filename,
401 int events,
402 int status);
403
404typedef void (*uv_fs_poll_cb)(uv_fs_poll_t* handle,
405 int status,
406 const uv_stat_t* prev,
407 const uv_stat_t* curr);
408
409typedef void (*uv_signal_cb)(uv_signal_t* handle, int signum);
410
411
412typedef enum {
416
417
419
420UV_EXTERN const char* uv_strerror(int err);
421UV_EXTERN char* uv_strerror_r(int err, char* buf, size_t buflen);
422
423UV_EXTERN const char* uv_err_name(int err);
424UV_EXTERN char* uv_err_name_r(int err, char* buf, size_t buflen);
425
426
427#define UV_REQ_FIELDS \
428 /* public */ \
429 void* data; \
430 /* read-only */ \
431 uv_req_type type; \
432 /* private */ \
433 void* reserved[6]; \
434 UV_REQ_PRIVATE_FIELDS \
435
436/* Abstract base class of all requests. */
437struct uv_req_s {
439};
440
441
442/* Platform-specific request types. */
444
445
447 uv_stream_t* handle,
448 uv_shutdown_cb cb);
449
455};
456
457
458#define UV_HANDLE_FIELDS \
459 /* public */ \
460 void* data; \
461 /* read-only */ \
462 uv_loop_t* loop; \
463 uv_handle_type type; \
464 /* private */ \
465 uv_close_cb close_cb; \
466 struct uv__queue handle_queue; \
467 union { \
468 int fd; \
469 void* reserved[4]; \
470 } u; \
471 UV_HANDLE_PRIVATE_FIELDS \
472
473/* The abstract base class of all handles. */
476};
477
483UV_EXTERN void uv_handle_set_data(uv_handle_t* handle, void* data);
484
487UV_EXTERN void uv_req_set_data(uv_req_t* req, void* data);
490
492
493UV_EXTERN void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg);
494
495/* Helpers for ad hoc debugging, no API/ABI stability guaranteed. */
496UV_EXTERN void uv_print_all_handles(uv_loop_t* loop, FILE* stream);
498
500
503
505
506UV_EXTERN uv_buf_t uv_buf_init(char* base, unsigned int len);
507
508UV_EXTERN int uv_pipe(uv_file fds[2], int read_flags, int write_flags);
510 int protocol,
511 uv_os_sock_t socket_vector[2],
512 int flags0,
513 int flags1);
514
515#define UV_STREAM_FIELDS \
516 /* number of bytes queued for writing */ \
517 size_t write_queue_size; \
518 uv_alloc_cb alloc_cb; \
519 uv_read_cb read_cb; \
520 /* private */ \
521 UV_STREAM_PRIVATE_FIELDS
522
523/*
524 * uv_stream_t is a subclass of uv_handle_t.
525 *
526 * uv_stream is an abstract class.
527 *
528 * uv_stream_t is the parent class of uv_tcp_t, uv_pipe_t and uv_tty_t.
529 */
533};
534
536
537UV_EXTERN int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb);
539
541 uv_alloc_cb alloc_cb,
542 uv_read_cb read_cb);
544
546 uv_stream_t* handle,
547 const uv_buf_t bufs[],
548 unsigned int nbufs,
549 uv_write_cb cb);
551 uv_stream_t* handle,
552 const uv_buf_t bufs[],
553 unsigned int nbufs,
554 uv_stream_t* send_handle,
555 uv_write_cb cb);
557 const uv_buf_t bufs[],
558 unsigned int nbufs);
560 const uv_buf_t bufs[],
561 unsigned int nbufs,
562 uv_stream_t* send_handle);
563
564/* uv_write_t is a subclass of uv_req_t. */
568 uv_stream_t* send_handle; /* TODO: make private and unix-only in v2.x. */
571};
572
573
576
578
580
581
582/*
583 * uv_tcp_t is a subclass of uv_stream_t.
584 *
585 * Represents a TCP stream or TCP server.
586 */
587struct uv_tcp_s {
591};
592
594UV_EXTERN int uv_tcp_init_ex(uv_loop_t*, uv_tcp_t* handle, unsigned int flags);
596UV_EXTERN int uv_tcp_nodelay(uv_tcp_t* handle, int enable);
598 int enable,
599 unsigned int delay);
601
603 /* Used with uv_tcp_bind, when an IPv6 address is used. */
606
608 const struct sockaddr* addr,
609 unsigned int flags);
611 struct sockaddr* name,
612 int* namelen);
614 struct sockaddr* name,
615 int* namelen);
618 uv_tcp_t* handle,
619 const struct sockaddr* addr,
620 uv_connect_cb cb);
621
622/* uv_connect_t is a subclass of uv_req_t. */
628};
629
630
631/*
632 * UDP support.
633 */
634
636 /* Disables dual stack mode. */
638 /*
639 * Indicates message was truncated because read buffer was too small. The
640 * remainder was discarded by the OS. Used in uv_udp_recv_cb.
641 */
643 /*
644 * Indicates if SO_REUSEADDR will be set when binding the handle.
645 * This sets the SO_REUSEPORT socket flag on the BSDs and OS X. On other
646 * Unix platforms, it sets the SO_REUSEADDR flag. What that means is that
647 * multiple threads or processes can bind to the same address without error
648 * (provided they all set the flag) but only the last one to bind will receive
649 * any traffic, in effect "stealing" the port from the previous listener.
650 */
652 /*
653 * Indicates that the message was received by recvmmsg, so the buffer provided
654 * must not be freed by the recv_cb callback.
655 */
657 /*
658 * Indicates that the buffer provided has been fully utilized by recvmmsg and
659 * that it should now be freed by the recv_cb callback. When this flag is set
660 * in uv_udp_recv_cb, nread will always be 0 and addr will always be NULL.
661 */
663 /*
664 * Indicates if IP_RECVERR/IPV6_RECVERR will be set when binding the handle.
665 * This sets IP_RECVERR for IPv4 and IPV6_RECVERR for IPv6 UDP sockets on
666 * Linux. This stops the Linux kernel from suppressing some ICMP error
667 * messages and enables full ICMP error reporting for faster failover.
668 * This flag is no-op on platforms other than Linux.
669 */
671 /*
672 * Indicates that recvmmsg should be used, if available.
673 */
674 UV_UDP_RECVMMSG = 256
676
677typedef void (*uv_udp_send_cb)(uv_udp_send_t* req, int status);
678typedef void (*uv_udp_recv_cb)(uv_udp_t* handle,
679 ssize_t nread,
680 const uv_buf_t* buf,
681 const struct sockaddr* addr,
682 unsigned flags);
683
684/* uv_udp_t is a subclass of uv_handle_t. */
685struct uv_udp_s {
687 /* read-only */
688 /*
689 * Number of bytes queued for sending. This field strictly shows how much
690 * information is currently queued.
691 */
693 /*
694 * Number of send requests currently in the queue awaiting to be processed.
695 */
698};
699
700/* uv_udp_send_t is a subclass of uv_req_t. */
706};
707
709UV_EXTERN int uv_udp_init_ex(uv_loop_t*, uv_udp_t* handle, unsigned int flags);
712 const struct sockaddr* addr,
713 unsigned int flags);
714UV_EXTERN int uv_udp_connect(uv_udp_t* handle, const struct sockaddr* addr);
715
717 struct sockaddr* name,
718 int* namelen);
720 struct sockaddr* name,
721 int* namelen);
723 const char* multicast_addr,
724 const char* interface_addr,
725 uv_membership membership);
727 const char* multicast_addr,
728 const char* interface_addr,
729 const char* source_addr,
730 uv_membership membership);
734 const char* interface_addr);
736UV_EXTERN int uv_udp_set_ttl(uv_udp_t* handle, int ttl);
738 uv_udp_t* handle,
739 const uv_buf_t bufs[],
740 unsigned int nbufs,
741 const struct sockaddr* addr,
742 uv_udp_send_cb send_cb);
744 const uv_buf_t bufs[],
745 unsigned int nbufs,
746 const struct sockaddr* addr);
748 uv_alloc_cb alloc_cb,
749 uv_udp_recv_cb recv_cb);
754
755
756/*
757 * uv_tty_t is a subclass of uv_stream_t.
758 *
759 * Representing a stream for the console.
760 */
761struct uv_tty_s {
765};
766
767typedef enum {
768 /* Initial/normal terminal mode */
770 /* Raw input mode (On Windows, ENABLE_WINDOW_INPUT is also enabled) */
772 /* Binary-safe I/O mode for IPC (Unix-only) */
775
776typedef enum {
777 /*
778 * The console supports handling of virtual terminal sequences
779 * (Windows10 new console, ConEmu)
780 */
782 /* The console cannot process the virtual terminal sequence. (Legacy
783 * console)
784 */
787
788
792UV_EXTERN int uv_tty_get_winsize(uv_tty_t*, int* width, int* height);
795
796inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
797 return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode));
798}
799
801
802enum {
803 UV_PIPE_NO_TRUNCATE = 1u << 0
805
806/*
807 * uv_pipe_t is a subclass of uv_stream_t.
808 *
809 * Representing a pipe stream or pipe server. On Windows this is a Named
810 * Pipe. On Unix this is a Unix domain socket.
811 */
812struct uv_pipe_s {
815 int ipc; /* non-zero if this pipe is used for passing handles */
817};
818
821UV_EXTERN int uv_pipe_bind(uv_pipe_t* handle, const char* name);
823 const char* name,
824 size_t namelen,
825 unsigned int flags);
827 uv_pipe_t* handle,
828 const char* name,
829 uv_connect_cb cb);
831 uv_pipe_t* handle,
832 const char* name,
833 size_t namelen,
834 unsigned int flags,
835 uv_connect_cb cb);
837 char* buffer,
838 size_t* size);
840 char* buffer,
841 size_t* size);
845UV_EXTERN int uv_pipe_chmod(uv_pipe_t* handle, int flags);
846
847
848struct uv_poll_s {
852};
853
860
861UV_EXTERN int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd);
863 uv_poll_t* handle,
864 uv_os_sock_t socket);
865UV_EXTERN int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb cb);
867
868
872};
873
877
878
882};
883
887
888
889struct uv_idle_s {
892};
893
897
898
902};
903
905 uv_async_t* async,
906 uv_async_cb async_cb);
908
909
910/*
911 * uv_timer_t is a subclass of uv_handle_t.
912 *
913 * Used to get woken up at a specified time in the future.
914 */
918};
919
922 uv_timer_cb cb,
923 uint64_t timeout,
924 uint64_t repeat);
927UV_EXTERN void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat);
930
931
932/*
933 * uv_getaddrinfo_t is a subclass of uv_req_t.
934 *
935 * Request object for uv_getaddrinfo.
936 */
939 /* read-only */
941 /* struct addrinfo* addrinfo is marked as private, but it really isn't. */
943};
944
945
947 uv_getaddrinfo_t* req,
948 uv_getaddrinfo_cb getaddrinfo_cb,
949 const char* node,
950 const char* service,
951 const struct addrinfo* hints);
952UV_EXTERN void uv_freeaddrinfo(struct addrinfo* ai);
953
954
955/*
956* uv_getnameinfo_t is a subclass of uv_req_t.
957*
958* Request object for uv_getnameinfo.
959*/
962 /* read-only */
964 /* host and service are marked as private, but they really aren't. */
966};
967
969 uv_getnameinfo_t* req,
970 uv_getnameinfo_cb getnameinfo_cb,
971 const struct sockaddr* addr,
972 int flags);
973
974
975/* uv_spawn() options. */
976typedef enum {
977 UV_IGNORE = 0x00,
981
982 /*
983 * When UV_CREATE_PIPE is specified, UV_READABLE_PIPE and UV_WRITABLE_PIPE
984 * determine the direction of flow, from the child process' perspective. Both
985 * flags may be specified to create a duplex data stream.
986 */
989
990 /*
991 * When UV_CREATE_PIPE is specified, specifying UV_NONBLOCK_PIPE opens the
992 * handle in non-blocking mode in the child. This may cause loss of data,
993 * if the child is not designed to handle to encounter this mode,
994 * but can also be significantly more efficient.
995 */
997 UV_OVERLAPPED_PIPE = 0x40 /* old name, for compatibility */
999
1000typedef struct uv_stdio_container_s {
1002
1003 union {
1005 int fd;
1008
1009typedef struct uv_process_options_s {
1010 uv_exit_cb exit_cb; /* Called after the process exits. */
1011 const char* file; /* Path to program to execute. */
1012 /*
1013 * Command line arguments. args[0] should be the path to the program. On
1014 * Windows this uses CreateProcess which concatenates the arguments into a
1015 * string this can cause some strange errors. See the note at
1016 * windows_verbatim_arguments.
1017 */
1018 char** args;
1019 /*
1020 * This will be set as the environ variable in the subprocess. If this is
1021 * NULL then the parents environ will be used.
1022 */
1023 char** env;
1024 /*
1025 * If non-null this represents a directory the subprocess should execute
1026 * in. Stands for current working directory.
1027 */
1028 const char* cwd;
1029 /*
1030 * Various flags that control how uv_spawn() behaves. See the definition of
1031 * `enum uv_process_flags` below.
1032 */
1033 unsigned int flags;
1034 /*
1035 * The `stdio` field points to an array of uv_stdio_container_t structs that
1036 * describe the file descriptors that will be made available to the child
1037 * process. The convention is that stdio[0] points to stdin, fd 1 is used for
1038 * stdout, and fd 2 is stderr.
1039 *
1040 * Note that on windows file descriptors greater than 2 are available to the
1041 * child process only if the child processes uses the MSVCRT runtime.
1042 */
1045 /*
1046 * Libuv can change the child process' user/group id. This happens only when
1047 * the appropriate bits are set in the flags fields. This is not supported on
1048 * windows; uv_spawn() will fail and set the error to UV_ENOTSUP.
1049 */
1053
1054/*
1055 * These are the flags that can be used for the uv_process_options.flags field.
1056 */
1058 /*
1059 * Set the child process' user id. The user id is supplied in the `uid` field
1060 * of the options struct. This does not work on windows; setting this flag
1061 * will cause uv_spawn() to fail.
1062 */
1064 /*
1065 * Set the child process' group id. The user id is supplied in the `gid`
1066 * field of the options struct. This does not work on windows; setting this
1067 * flag will cause uv_spawn() to fail.
1068 */
1070 /*
1071 * Do not wrap any arguments in quotes, or perform any other escaping, when
1072 * converting the argument list into a command line string. This option is
1073 * only meaningful on Windows systems. On Unix it is silently ignored.
1074 */
1076 /*
1077 * Spawn the child process in a detached state - this will make it a process
1078 * group leader, and will effectively enable the child to keep running after
1079 * the parent exits. Note that the child process will still keep the
1080 * parent's event loop alive unless the parent process calls uv_unref() on
1081 * the child's process handle.
1082 */
1084 /*
1085 * Hide the subprocess window that would normally be created. This option is
1086 * only meaningful on Windows systems. On Unix it is silently ignored.
1087 */
1089 /*
1090 * Hide the subprocess console window that would normally be created. This
1091 * option is only meaningful on Windows systems. On Unix it is silently
1092 * ignored.
1093 */
1095 /*
1096 * Hide the subprocess GUI window that would normally be created. This
1097 * option is only meaningful on Windows systems. On Unix it is silently
1098 * ignored.
1099 */
1102
1103/*
1104 * uv_process_t is a subclass of uv_handle_t.
1105 */
1109 int pid;
1111};
1112
1114 uv_process_t* handle,
1115 const uv_process_options_t* options);
1117UV_EXTERN int uv_kill(int pid, int signum);
1119
1120
1121/*
1122 * uv_work_t is a subclass of uv_req_t.
1123 */
1130};
1131
1133 uv_work_t* req,
1134 uv_work_cb work_cb,
1135 uv_after_work_cb after_work_cb);
1136
1138
1139
1141 uint64_t user; /* milliseconds */
1142 uint64_t nice; /* milliseconds */
1143 uint64_t sys; /* milliseconds */
1144 uint64_t idle; /* milliseconds */
1145 uint64_t irq; /* milliseconds */
1146};
1147
1149 char* model;
1152};
1153
1155 char* name;
1156 char phys_addr[6];
1158 union {
1159 struct sockaddr_in address4;
1160 struct sockaddr_in6 address6;
1162 union {
1163 struct sockaddr_in netmask4;
1164 struct sockaddr_in6 netmask6;
1166};
1167
1170 unsigned long uid;
1171 unsigned long gid;
1172 char* shell;
1173 char* homedir;
1174};
1175
1178 unsigned long gid;
1179 char** members;
1180};
1181
1183 char sysname[256];
1184 char release[256];
1185 char version[256];
1186 char machine[256];
1187 /* This struct does not contain the nodename and domainname fields present in
1188 the utsname type. domainname is a GNU extension. Both fields are referred
1189 to as meaningless in the docs. */
1190};
1191
1193 uint64_t f_type;
1194 uint64_t f_bsize;
1195 uint64_t f_blocks;
1196 uint64_t f_bfree;
1197 uint64_t f_bavail;
1198 uint64_t f_files;
1199 uint64_t f_ffree;
1200 uint64_t f_spare[4];
1201};
1202
1203typedef enum {
1213
1215 const char* name;
1217};
1218
1219UV_EXTERN char** uv_setup_args(int argc, char** argv);
1220UV_EXTERN int uv_get_process_title(char* buffer, size_t size);
1221UV_EXTERN int uv_set_process_title(const char* title);
1223UV_EXTERN int uv_uptime(double* uptime);
1226
1227typedef struct {
1228 uv_timeval_t ru_utime; /* user CPU time used */
1229 uv_timeval_t ru_stime; /* system CPU time used */
1230 uint64_t ru_maxrss; /* maximum resident set size */
1231 uint64_t ru_ixrss; /* integral shared memory size */
1232 uint64_t ru_idrss; /* integral unshared data size */
1233 uint64_t ru_isrss; /* integral unshared stack size */
1234 uint64_t ru_minflt; /* page reclaims (soft page faults) */
1235 uint64_t ru_majflt; /* page faults (hard page faults) */
1236 uint64_t ru_nswap; /* swaps */
1237 uint64_t ru_inblock; /* block input operations */
1238 uint64_t ru_oublock; /* block output operations */
1239 uint64_t ru_msgsnd; /* IPC messages sent */
1240 uint64_t ru_msgrcv; /* IPC messages received */
1241 uint64_t ru_nsignals; /* signals received */
1242 uint64_t ru_nvcsw; /* voluntary context switches */
1243 uint64_t ru_nivcsw; /* involuntary context switches */
1244} uv_rusage_t;
1245
1247
1248UV_EXTERN int uv_os_homedir(char* buffer, size_t* size);
1249UV_EXTERN int uv_os_tmpdir(char* buffer, size_t* size);
1257
1258#if defined(__PASE__)
1259/* On IBM i PASE, the highest process priority is -10 */
1260# define UV_PRIORITY_LOW 39 /* RUNPTY(99) */
1261# define UV_PRIORITY_BELOW_NORMAL 15 /* RUNPTY(50) */
1262# define UV_PRIORITY_NORMAL 0 /* RUNPTY(20) */
1263# define UV_PRIORITY_ABOVE_NORMAL -4 /* RUNTY(12) */
1264# define UV_PRIORITY_HIGH -7 /* RUNPTY(6) */
1265# define UV_PRIORITY_HIGHEST -10 /* RUNPTY(1) */
1266#else
1267# define UV_PRIORITY_LOW 19
1268# define UV_PRIORITY_BELOW_NORMAL 10
1269# define UV_PRIORITY_NORMAL 0
1270# define UV_PRIORITY_ABOVE_NORMAL -7
1271# define UV_PRIORITY_HIGH -14
1272# define UV_PRIORITY_HIGHEST -20
1273#endif
1274
1275UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int* priority);
1276UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority);
1277
1282
1284 int* count);
1286 int count);
1287
1289 char* name;
1290 char* value;
1291};
1292
1295UV_EXTERN int uv_os_getenv(const char* name, char* buffer, size_t* size);
1296UV_EXTERN int uv_os_setenv(const char* name, const char* value);
1298
1299#ifdef MAXHOSTNAMELEN
1300# define UV_MAXHOSTNAMESIZE (MAXHOSTNAMELEN + 1)
1301#else
1302 /*
1303 Fallback for the maximum hostname size, including the null terminator. The
1304 Windows gethostname() documentation states that 256 bytes will always be
1305 large enough to hold the null-terminated hostname.
1306 */
1307# define UV_MAXHOSTNAMESIZE 256
1308#endif
1309
1310UV_EXTERN int uv_os_gethostname(char* buffer, size_t* size);
1311
1313
1315 uint64_t loop_count;
1316 uint64_t events;
1318 /* private */
1319 uint64_t* reserved[13];
1320};
1321
1324
1325typedef enum {
1365
1366struct uv_dir_s {
1368 size_t nentries;
1369 void* reserved[4];
1371};
1372
1373/* uv_fs_t is a subclass of uv_req_t. */
1374struct uv_fs_s {
1380 void* ptr;
1381 const char* path;
1382 uv_stat_t statbuf; /* Stores the result of uv_fs_stat() and uv_fs_fstat(). */
1384};
1385
1392
1395 uv_fs_t* req,
1396 uv_file file,
1397 uv_fs_cb cb);
1399 uv_fs_t* req,
1400 const char* path,
1401 int flags,
1402 int mode,
1403 uv_fs_cb cb);
1405 uv_fs_t* req,
1406 uv_file file,
1407 const uv_buf_t bufs[],
1408 unsigned int nbufs,
1409 int64_t offset,
1410 uv_fs_cb cb);
1412 uv_fs_t* req,
1413 const char* path,
1414 uv_fs_cb cb);
1416 uv_fs_t* req,
1417 uv_file file,
1418 const uv_buf_t bufs[],
1419 unsigned int nbufs,
1420 int64_t offset,
1421 uv_fs_cb cb);
1422/*
1423 * This flag can be used with uv_fs_copyfile() to return an error if the
1424 * destination already exists.
1425 */
1426#define UV_FS_COPYFILE_EXCL 0x0001
1427
1428/*
1429 * This flag can be used with uv_fs_copyfile() to attempt to create a reflink.
1430 * If copy-on-write is not supported, a fallback copy mechanism is used.
1431 */
1432#define UV_FS_COPYFILE_FICLONE 0x0002
1433
1434/*
1435 * This flag can be used with uv_fs_copyfile() to attempt to create a reflink.
1436 * If copy-on-write is not supported, an error is returned.
1437 */
1438#define UV_FS_COPYFILE_FICLONE_FORCE 0x0004
1439
1441 uv_fs_t* req,
1442 const char* path,
1443 const char* new_path,
1444 int flags,
1445 uv_fs_cb cb);
1447 uv_fs_t* req,
1448 const char* path,
1449 int mode,
1450 uv_fs_cb cb);
1452 uv_fs_t* req,
1453 const char* tpl,
1454 uv_fs_cb cb);
1456 uv_fs_t* req,
1457 const char* tpl,
1458 uv_fs_cb cb);
1460 uv_fs_t* req,
1461 const char* path,
1462 uv_fs_cb cb);
1464 uv_fs_t* req,
1465 const char* path,
1466 int flags,
1467 uv_fs_cb cb);
1469 uv_dirent_t* ent);
1471 uv_fs_t* req,
1472 const char* path,
1473 uv_fs_cb cb);
1475 uv_fs_t* req,
1476 uv_dir_t* dir,
1477 uv_fs_cb cb);
1479 uv_fs_t* req,
1480 uv_dir_t* dir,
1481 uv_fs_cb cb);
1483 uv_fs_t* req,
1484 const char* path,
1485 uv_fs_cb cb);
1487 uv_fs_t* req,
1488 uv_file file,
1489 uv_fs_cb cb);
1491 uv_fs_t* req,
1492 const char* path,
1493 const char* new_path,
1494 uv_fs_cb cb);
1496 uv_fs_t* req,
1497 uv_file file,
1498 uv_fs_cb cb);
1500 uv_fs_t* req,
1501 uv_file file,
1502 uv_fs_cb cb);
1504 uv_fs_t* req,
1505 uv_file file,
1506 int64_t offset,
1507 uv_fs_cb cb);
1509 uv_fs_t* req,
1510 uv_file out_fd,
1511 uv_file in_fd,
1512 int64_t in_offset,
1513 size_t length,
1514 uv_fs_cb cb);
1516 uv_fs_t* req,
1517 const char* path,
1518 int mode,
1519 uv_fs_cb cb);
1521 uv_fs_t* req,
1522 const char* path,
1523 int mode,
1524 uv_fs_cb cb);
1526 uv_fs_t* req,
1527 const char* path,
1528 double atime,
1529 double mtime,
1530 uv_fs_cb cb);
1532 uv_fs_t* req,
1533 uv_file file,
1534 double atime,
1535 double mtime,
1536 uv_fs_cb cb);
1538 uv_fs_t* req,
1539 const char* path,
1540 double atime,
1541 double mtime,
1542 uv_fs_cb cb);
1544 uv_fs_t* req,
1545 const char* path,
1546 uv_fs_cb cb);
1548 uv_fs_t* req,
1549 const char* path,
1550 const char* new_path,
1551 uv_fs_cb cb);
1552
1553/*
1554 * This flag can be used with uv_fs_symlink() on Windows to specify whether
1555 * path argument points to a directory.
1556 */
1557#define UV_FS_SYMLINK_DIR 0x0001
1558
1559/*
1560 * This flag can be used with uv_fs_symlink() on Windows to specify whether
1561 * the symlink is to be created using junction points.
1562 */
1563#define UV_FS_SYMLINK_JUNCTION 0x0002
1564
1566 uv_fs_t* req,
1567 const char* path,
1568 const char* new_path,
1569 int flags,
1570 uv_fs_cb cb);
1572 uv_fs_t* req,
1573 const char* path,
1574 uv_fs_cb cb);
1576 uv_fs_t* req,
1577 const char* path,
1578 uv_fs_cb cb);
1580 uv_fs_t* req,
1581 uv_file file,
1582 int mode,
1583 uv_fs_cb cb);
1585 uv_fs_t* req,
1586 const char* path,
1587 uv_uid_t uid,
1588 uv_gid_t gid,
1589 uv_fs_cb cb);
1591 uv_fs_t* req,
1592 uv_file file,
1593 uv_uid_t uid,
1594 uv_gid_t gid,
1595 uv_fs_cb cb);
1597 uv_fs_t* req,
1598 const char* path,
1599 uv_uid_t uid,
1600 uv_gid_t gid,
1601 uv_fs_cb cb);
1603 uv_fs_t* req,
1604 const char* path,
1605 uv_fs_cb cb);
1606
1607
1610 UV_CHANGE = 2
1612
1613
1616 /* private */
1617 char* path;
1619};
1620
1621
1622/*
1623 * uv_fs_stat() based polling file watcher.
1624 */
1627 /* Private, don't touch. */
1629};
1630
1633 uv_fs_poll_cb poll_cb,
1634 const char* path,
1635 unsigned int interval);
1638 char* buffer,
1639 size_t* size);
1640
1641
1647};
1648
1651 uv_signal_cb signal_cb,
1652 int signum);
1654 uv_signal_cb signal_cb,
1655 int signum);
1657
1658UV_EXTERN void uv_loadavg(double avg[3]);
1659
1660
1661/*
1662 * Flags to be passed to uv_fs_event_start().
1663 */
1665 /*
1666 * By default, if the fs event watcher is given a directory name, we will
1667 * watch for all events in that directory. This flags overrides this behavior
1668 * and makes fs_event report only changes to the directory entry itself. This
1669 * flag does not affect individual files watched.
1670 * This flag is currently not implemented yet on any backend.
1671 */
1673
1674 /*
1675 * By default uv_fs_event will try to use a kernel interface such as inotify
1676 * or kqueue to detect events. This may not work on remote filesystems such
1677 * as NFS mounts. This flag makes fs_event fall back to calling stat() on a
1678 * regular interval.
1679 * This flag is currently not implemented yet on any backend.
1680 */
1682
1683 /*
1684 * By default, event watcher, when watching directory, is not registering
1685 * (is ignoring) changes in it's subdirectories.
1686 * This flag will override this behaviour on platforms that support it.
1687 */
1690
1691
1694 uv_fs_event_cb cb,
1695 const char* path,
1696 unsigned int flags);
1699 char* buffer,
1700 size_t* size);
1701
1702UV_EXTERN int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr);
1703UV_EXTERN int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr);
1704
1705UV_EXTERN int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size);
1706UV_EXTERN int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size);
1707UV_EXTERN int uv_ip_name(const struct sockaddr* src, char* dst, size_t size);
1708
1709UV_EXTERN int uv_inet_ntop(int af, const void* src, char* dst, size_t size);
1710UV_EXTERN int uv_inet_pton(int af, const char* src, void* dst);
1711
1712
1715 /* read-only */
1717 /* private */
1719 void* buf;
1720 size_t buflen;
1723};
1724
1726 uv_random_t* req,
1727 void *buf,
1728 size_t buflen,
1729 unsigned flags, /* For future extension; must be 0. */
1730 uv_random_cb cb);
1731
1732#if defined(IF_NAMESIZE)
1733# define UV_IF_NAMESIZE (IF_NAMESIZE + 1)
1734#elif defined(IFNAMSIZ)
1735# define UV_IF_NAMESIZE (IFNAMSIZ + 1)
1736#else
1737# define UV_IF_NAMESIZE (16 + 1)
1738#endif
1739
1740UV_EXTERN int uv_if_indextoname(unsigned int ifindex,
1741 char* buffer,
1742 size_t* size);
1743UV_EXTERN int uv_if_indextoiid(unsigned int ifindex,
1744 char* buffer,
1745 size_t* size);
1746
1747UV_EXTERN int uv_exepath(char* buffer, size_t* size);
1748
1749UV_EXTERN int uv_cwd(char* buffer, size_t* size);
1750
1751UV_EXTERN int uv_chdir(const char* dir);
1752
1757
1759UV_EXTERN uint64_t uv_hrtime(void);
1760UV_EXTERN void uv_sleep(unsigned int msec);
1761
1763
1764UV_EXTERN int uv_dlopen(const char* filename, uv_lib_t* lib);
1766UV_EXTERN int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr);
1767UV_EXTERN const char* uv_dlerror(const uv_lib_t* lib);
1768
1775
1784
1785UV_EXTERN int uv_sem_init(uv_sem_t* sem, unsigned int value);
1790
1795
1796UV_EXTERN int uv_barrier_init(uv_barrier_t* barrier, unsigned int count);
1799
1802 uv_mutex_t* mutex,
1803 uint64_t timeout);
1804
1805UV_EXTERN void uv_once(uv_once_t* guard, void (*callback)(void));
1806
1810UV_EXTERN void uv_key_set(uv_key_t* key, void* value);
1811
1813
1814typedef void (*uv_thread_cb)(void* arg);
1815
1817
1818typedef enum {
1822
1824 unsigned int flags;
1826 /* More fields may be added at any time. */
1827};
1828
1830
1832 const uv_thread_options_t* params,
1833 uv_thread_cb entry,
1834 void* arg);
1836 char* cpumask,
1837 char* oldmask,
1838 size_t mask_size);
1840 char* cpumask,
1841 size_t mask_size);
1846
1847/* The presence of these unions force similar struct layout. */
1848#define XX(_, name) uv_ ## name ## _t name;
1851};
1852
1855};
1856#undef XX
1857
1858
1860 /* User data - use this for whatever. */
1861 void* data;
1862 /* Loop reference counting. */
1863 unsigned int active_handles;
1865 union {
1866 void* unused;
1867 unsigned int count;
1869 /* Internal storage for future extensions. */
1871 /* Internal flag to signal loop stop. */
1872 unsigned int stop_flag;
1874};
1875
1878
1879/* String utilities needed internally for dealing with Windows. */
1880size_t uv_utf16_length_as_wtf8(const uint16_t* utf16,
1881 ssize_t utf16_len);
1882int uv_utf16_to_wtf8(const uint16_t* utf16,
1883 ssize_t utf16_len,
1884 char** wtf8_ptr,
1885 size_t* wtf8_len_ptr);
1887void uv_wtf8_to_utf16(const char* wtf8,
1888 uint16_t* utf16,
1889 size_t utf16_len);
1890
1891/* Don't export the private CPP symbols. */
1892#undef UV_HANDLE_TYPE_PRIVATE
1893#undef UV_REQ_TYPE_PRIVATE
1894#undef UV_REQ_PRIVATE_FIELDS
1895#undef UV_STREAM_PRIVATE_FIELDS
1896#undef UV_TCP_PRIVATE_FIELDS
1897#undef UV_PREPARE_PRIVATE_FIELDS
1898#undef UV_CHECK_PRIVATE_FIELDS
1899#undef UV_IDLE_PRIVATE_FIELDS
1900#undef UV_ASYNC_PRIVATE_FIELDS
1901#undef UV_TIMER_PRIVATE_FIELDS
1902#undef UV_GETADDRINFO_PRIVATE_FIELDS
1903#undef UV_GETNAMEINFO_PRIVATE_FIELDS
1904#undef UV_FS_REQ_PRIVATE_FIELDS
1905#undef UV_WORK_PRIVATE_FIELDS
1906#undef UV_FS_EVENT_PRIVATE_FIELDS
1907#undef UV_SIGNAL_PRIVATE_FIELDS
1908#undef UV_LOOP_PRIVATE_FIELDS
1909#undef UV_LOOP_PRIVATE_PLATFORM_FIELDS
1910#undef UV__ERR
1911
1912#endif /* UV_H */
then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file
Definition: ThirdPartyNotices.txt:192
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based on(or derived from) the Work and for which the editorial revisions
auto arg(const Char *name, const T &arg) -> detail::named_arg< Char, T >
\rst Returns a named argument to be used in a formatting function.
Definition: core.h:1841
auto ptr(T p) -> const void *
\rst Converts p to const void* for pointer formatting.
Definition: format.h:4100
constexpr auto count() -> size_t
Definition: core.h:1203
state
Definition: core.h:2271
type
Definition: core.h:556
constexpr const char * name(const T &)
Definition: uv.h:60
struct uv__queue * next
Definition: uv.h:61
struct uv__queue * prev
Definition: uv.h:62
Definition: threadpool.h:30
struct uv_loop_s * loop
Definition: threadpool.h:33
Definition: uv.h:899
Definition: unix.h:145
It should be possible to cast uv_buf_t[] to WSABUF[] see http://msdn.microsoft.com/en-us/library/ms74...
Definition: unix.h:112
Definition: uv.h:879
Definition: uv.h:623
uv_stream_t * handle
Definition: uv.h:626
UV_REQ_FIELDS uv_connect_cb cb
Definition: uv.h:625
Definition: uv.h:1148
struct uv_cpu_times_s cpu_times
Definition: uv.h:1151
char * model
Definition: uv.h:1149
int speed
Definition: uv.h:1150
Definition: uv.h:1140
uint64_t nice
Definition: uv.h:1142
uint64_t sys
Definition: uv.h:1143
uint64_t idle
Definition: uv.h:1144
uint64_t user
Definition: uv.h:1141
uint64_t irq
Definition: uv.h:1145
Definition: uv.h:1366
uv_dirent_t * dirents
Definition: uv.h:1367
void * reserved[4]
Definition: uv.h:1369
size_t nentries
Definition: uv.h:1368
Definition: uv.h:1214
uv_dirent_type_t type
Definition: uv.h:1216
const char * name
Definition: uv.h:1215
Definition: uv.h:1288
char * value
Definition: uv.h:1290
char * name
Definition: uv.h:1289
Definition: uv.h:1614
UV_HANDLE_FIELDS char * path
Definition: uv.h:1617
Definition: uv.h:1625
UV_HANDLE_FIELDS void * poll_ctx
Definition: uv.h:1628
Definition: uv.h:1374
uv_stat_t statbuf
Definition: uv.h:1382
const char * path
Definition: uv.h:1381
void * ptr
Definition: uv.h:1380
ssize_t result
Definition: uv.h:1379
UV_REQ_FIELDS uv_fs_type fs_type
Definition: uv.h:1376
uv_loop_t * loop
Definition: uv.h:1377
uv_fs_cb cb
Definition: uv.h:1378
Definition: uv.h:937
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:940
Definition: uv.h:960
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:963
Definition: uv.h:1176
unsigned long gid
Definition: uv.h:1178
char * groupname
Definition: uv.h:1177
char ** members
Definition: uv.h:1179
Definition: uv.h:474
Definition: uv.h:889
Definition: uv.h:1154
int is_internal
Definition: uv.h:1157
struct sockaddr_in6 netmask6
Definition: uv.h:1164
struct sockaddr_in6 address6
Definition: uv.h:1160
union uv_interface_address_s::@21 address
struct sockaddr_in netmask4
Definition: uv.h:1163
struct sockaddr_in address4
Definition: uv.h:1159
union uv_interface_address_s::@22 netmask
char * name
Definition: uv.h:1155
char phys_addr[6]
Definition: uv.h:1156
Definition: win.h:290
Definition: unix.h:207
Definition: uv.h:1859
unsigned int stop_flag
Definition: uv.h:1872
void * internal_fields
Definition: uv.h:1870
union uv_loop_s::@23 active_reqs
void * data
Definition: uv.h:1861
unsigned int count
Definition: uv.h:1867
unsigned int active_handles
Definition: uv.h:1863
struct uv__queue handle_queue
Definition: uv.h:1864
void * unused
Definition: uv.h:1866
Definition: uv.h:1314
uint64_t events
Definition: uv.h:1316
uint64_t events_waiting
Definition: uv.h:1317
uint64_t * reserved[13]
Definition: uv.h:1319
uint64_t loop_count
Definition: uv.h:1315
Definition: uv.h:1168
char * username
Definition: uv.h:1169
char * homedir
Definition: uv.h:1173
unsigned long uid
Definition: uv.h:1170
unsigned long gid
Definition: uv.h:1171
char * shell
Definition: uv.h:1172
Definition: uv.h:812
UV_HANDLE_FIELDS UV_STREAM_FIELDS int ipc
Definition: uv.h:815
Definition: uv.h:848
UV_HANDLE_FIELDS uv_poll_cb poll_cb
Definition: uv.h:850
Definition: uv.h:869
Definition: uv.h:1009
uv_uid_t uid
Definition: uv.h:1050
const char * file
Definition: uv.h:1011
char ** env
Definition: uv.h:1023
uv_stdio_container_t * stdio
Definition: uv.h:1044
unsigned int flags
Definition: uv.h:1033
char ** args
Definition: uv.h:1018
int stdio_count
Definition: uv.h:1043
uv_exit_cb exit_cb
Definition: uv.h:1010
uv_gid_t gid
Definition: uv.h:1051
const char * cwd
Definition: uv.h:1028
Definition: uv.h:1106
int pid
Definition: uv.h:1109
UV_HANDLE_FIELDS uv_exit_cb exit_cb
Definition: uv.h:1108
Definition: uv.h:1713
void * buf
Definition: uv.h:1719
struct uv__work work_req
Definition: uv.h:1722
size_t buflen
Definition: uv.h:1720
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:1716
int status
Definition: uv.h:1718
uv_random_cb cb
Definition: uv.h:1721
Definition: uv.h:437
Definition: uv.h:1227
uint64_t ru_msgrcv
Definition: uv.h:1240
uv_timeval_t ru_utime
Definition: uv.h:1228
uint64_t ru_nsignals
Definition: uv.h:1241
uint64_t ru_ixrss
Definition: uv.h:1231
uint64_t ru_idrss
Definition: uv.h:1232
uv_timeval_t ru_stime
Definition: uv.h:1229
uint64_t ru_isrss
Definition: uv.h:1233
uint64_t ru_minflt
Definition: uv.h:1234
uint64_t ru_majflt
Definition: uv.h:1235
uint64_t ru_nivcsw
Definition: uv.h:1243
uint64_t ru_oublock
Definition: uv.h:1238
uint64_t ru_nswap
Definition: uv.h:1236
uint64_t ru_maxrss
Definition: uv.h:1230
uint64_t ru_inblock
Definition: uv.h:1237
uint64_t ru_msgsnd
Definition: uv.h:1239
uint64_t ru_nvcsw
Definition: uv.h:1242
Definition: win.h:271
Definition: uv.h:450
UV_REQ_FIELDS uv_stream_t * handle
Definition: uv.h:452
uv_shutdown_cb cb
Definition: uv.h:453
Definition: uv.h:1642
int signum
Definition: uv.h:1645
UV_HANDLE_FIELDS uv_signal_cb signal_cb
Definition: uv.h:1644
Definition: uv.h:379
uint64_t st_nlink
Definition: uv.h:382
uint64_t st_ino
Definition: uv.h:386
uint64_t st_flags
Definition: uv.h:390
uint64_t st_mode
Definition: uv.h:381
uv_timespec_t st_birthtim
Definition: uv.h:395
uint64_t st_size
Definition: uv.h:387
uv_timespec_t st_ctim
Definition: uv.h:394
uint64_t st_blocks
Definition: uv.h:389
uv_timespec_t st_mtim
Definition: uv.h:393
uv_timespec_t st_atim
Definition: uv.h:392
uint64_t st_gid
Definition: uv.h:384
uint64_t st_gen
Definition: uv.h:391
uint64_t st_dev
Definition: uv.h:380
uint64_t st_uid
Definition: uv.h:383
uint64_t st_rdev
Definition: uv.h:385
uint64_t st_blksize
Definition: uv.h:388
Definition: uv.h:1192
uint64_t f_files
Definition: uv.h:1198
uint64_t f_type
Definition: uv.h:1193
uint64_t f_bsize
Definition: uv.h:1194
uint64_t f_bfree
Definition: uv.h:1196
uint64_t f_ffree
Definition: uv.h:1199
uint64_t f_bavail
Definition: uv.h:1197
uint64_t f_spare[4]
Definition: uv.h:1200
uint64_t f_blocks
Definition: uv.h:1195
Definition: uv.h:1000
union uv_stdio_container_s::@20 data
uv_stream_t * stream
Definition: uv.h:1004
int fd
Definition: uv.h:1005
uv_stdio_flags flags
Definition: uv.h:1001
Definition: uv.h:530
Definition: uv.h:587
Definition: uv.h:1823
unsigned int flags
Definition: uv.h:1824
size_t stack_size
Definition: uv.h:1825
Definition: uv.h:915
Definition: uv.h:363
int32_t tv_nsec
Definition: uv.h:365
int64_t tv_sec
Definition: uv.h:364
Definition: uv.h:358
long tv_sec
Definition: uv.h:359
long tv_nsec
Definition: uv.h:360
Definition: uv.h:374
int64_t tv_sec
Definition: uv.h:375
int32_t tv_usec
Definition: uv.h:376
Definition: uv.h:369
long tv_usec
Definition: uv.h:371
long tv_sec
Definition: uv.h:370
Definition: uv.h:761
Definition: uv.h:685
size_t send_queue_count
Definition: uv.h:696
UV_HANDLE_FIELDS size_t send_queue_size
Definition: uv.h:692
Definition: uv.h:701
UV_REQ_FIELDS uv_udp_t * handle
Definition: uv.h:703
uv_udp_send_cb cb
Definition: uv.h:704
Definition: uv.h:1182
char version[256]
Definition: uv.h:1185
char machine[256]
Definition: uv.h:1186
char release[256]
Definition: uv.h:1184
char sysname[256]
Definition: uv.h:1183
Definition: uv.h:1124
uv_after_work_cb after_work_cb
Definition: uv.h:1128
uv_work_cb work_cb
Definition: uv.h:1127
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:1126
Definition: uv.h:565
uv_stream_t * send_handle
Definition: uv.h:568
uv_stream_t * handle
Definition: uv.h:569
UV_REQ_FIELDS uv_write_cb cb
Definition: uv.h:567
Definition: uv.h:1849
Definition: uv.h:1853
Definition: win.h:261
#define UV_WORK_PRIVATE_FIELDS
Definition: unix.h:365
#define UV_FS_PRIVATE_FIELDS
Definition: unix.h:350
uid_t uv_uid_t
Definition: unix.h:158
UV_PLATFORM_SEM_T uv_sem_t
Definition: unix.h:128
#define UV_POLL_PRIVATE_FIELDS
Definition: unix.h:301
#define UV_SHUTDOWN_PRIVATE_FIELDS
Definition: unix.h:262
#define UV_TIMER_PRIVATE_FIELDS
Definition: unix.h:321
#define UV_UDP_SEND_PRIVATE_FIELDS
Definition: unix.h:264
#define UV_DIR_PRIVATE_FIELDS
Definition: unix.h:162
int uv_file
Definition: unix.h:117
pid_t uv_pid_t
Definition: unix.h:120
#define UV_WRITE_PRIVATE_FIELDS
Definition: unix.h:251
#define UV_PROCESS_PRIVATE_FIELDS
Definition: unix.h:346
#define UV_IDLE_PRIVATE_FIELDS
Definition: unix.h:312
#define UV_PREPARE_PRIVATE_FIELDS
Definition: unix.h:304
#define UV_SIGNAL_PRIVATE_FIELDS
Definition: unix.h:372
#define UV_GETNAMEINFO_PRIVATE_FIELDS
Definition: unix.h:337
#define UV_CHECK_PRIVATE_FIELDS
Definition: unix.h:308
pthread_mutex_t uv_mutex_t
Definition: unix.h:126
pthread_t uv_thread_t
Definition: unix.h:125
#define UV_UDP_PRIVATE_FIELDS
Definition: unix.h:291
#define UV_TTY_PRIVATE_FIELDS
Definition: unix.h:368
#define UV_FS_EVENT_PRIVATE_FIELDS
Definition: unix.h:384
pthread_once_t uv_once_t
Definition: unix.h:124
#define UV_GETADDRINFO_PRIVATE_FIELDS
Definition: unix.h:328
#define UV_TCP_PRIVATE_FIELDS
Definition: unix.h:289
int uv_os_fd_t
Definition: unix.h:119
#define UV_CONNECT_PRIVATE_FIELDS
Definition: unix.h:259
#define UV_ASYNC_PRIVATE_FIELDS
Definition: unix.h:316
#define UV_LOOP_PRIVATE_FIELDS
Definition: unix.h:212
#define UV_PIPE_PRIVATE_FIELDS
Definition: unix.h:298
#define UV_REQ_TYPE_PRIVATE
Definition: unix.h:245
gid_t uv_gid_t
Definition: unix.h:157
int uv_os_sock_t
Definition: unix.h:118
#define UV_PRIVATE_REQ_TYPES
Definition: unix.h:249
UV_EXTERN void uv_print_active_handles(uv_loop_t *loop, FILE *stream)
UV_EXTERN int uv_set_process_title(const char *title)
void(* uv_random_cb)(uv_random_t *req, int status, void *buf, size_t buflen)
Definition: uv.h:347
uv_thread_create_flags
Definition: uv.h:1818
@ UV_THREAD_HAS_STACK_SIZE
Definition: uv.h:1820
@ UV_THREAD_NO_FLAGS
Definition: uv.h:1819
UV_EXTERN void uv_key_delete(uv_key_t *key)
UV_EXTERN void uv_stop(uv_loop_t *)
UV_EXTERN uv_loop_t * uv_handle_get_loop(const uv_handle_t *handle)
UV_EXTERN int uv_exepath(char *buffer, size_t *size)
UV_EXTERN int uv_poll_init(uv_loop_t *loop, uv_poll_t *handle, int fd)
size_t uv_utf16_length_as_wtf8(const uint16_t *utf16, ssize_t utf16_len)
UV_EXTERN int uv_fs_fstat(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_EXTERN void uv_mutex_lock(uv_mutex_t *handle)
UV_EXTERN int uv_gettimeofday(uv_timeval64_t *tv)
UV_EXTERN int uv_fs_open(uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, int mode, uv_fs_cb cb)
UV_EXTERN int uv_cpu_info(uv_cpu_info_t **cpu_infos, int *count)
UV_EXTERN int uv_tcp_init_ex(uv_loop_t *, uv_tcp_t *handle, unsigned int flags)
uv_stdio_flags
Definition: uv.h:976
@ UV_INHERIT_FD
Definition: uv.h:979
@ UV_CREATE_PIPE
Definition: uv.h:978
@ UV_WRITABLE_PIPE
Definition: uv.h:988
@ UV_IGNORE
Definition: uv.h:977
@ UV_OVERLAPPED_PIPE
Definition: uv.h:997
@ UV_INHERIT_STREAM
Definition: uv.h:980
@ UV_READABLE_PIPE
Definition: uv.h:987
@ UV_NONBLOCK_PIPE
Definition: uv.h:996
UV_EXTERN void uv_free_interface_addresses(uv_interface_address_t *addresses, int count)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
#define UV_HANDLE_FIELDS
Definition: uv.h:458
UV_EXTERN int uv_udp_bind(uv_udp_t *handle, const struct sockaddr *addr, unsigned int flags)
UV_EXTERN int uv_is_active(const uv_handle_t *handle)
UV_EXTERN uv_pid_t uv_process_get_pid(const uv_process_t *)
UV_EXTERN int uv_udp_recv_start(uv_udp_t *handle, uv_alloc_cb alloc_cb, uv_udp_recv_cb recv_cb)
UV_EXTERN int uv_getrusage(uv_rusage_t *rusage)
uv_run_mode
Definition: uv.h:263
@ UV_RUN_NOWAIT
Definition: uv.h:266
@ UV_RUN_ONCE
Definition: uv.h:265
@ UV_RUN_DEFAULT
Definition: uv.h:264
void(* uv_write_cb)(uv_write_t *req, int status)
Definition: uv.h:324
uv_process_flags
Definition: uv.h:1057
@ UV_PROCESS_WINDOWS_HIDE_CONSOLE
Definition: uv.h:1094
@ UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS
Definition: uv.h:1075
@ UV_PROCESS_WINDOWS_HIDE
Definition: uv.h:1088
@ UV_PROCESS_SETUID
Definition: uv.h:1063
@ UV_PROCESS_SETGID
Definition: uv.h:1069
@ UV_PROCESS_DETACHED
Definition: uv.h:1083
@ UV_PROCESS_WINDOWS_HIDE_GUI
Definition: uv.h:1100
void(* uv_connection_cb)(uv_stream_t *server, int status)
Definition: uv.h:327
UV_EXTERN int uv_barrier_init(uv_barrier_t *barrier, unsigned int count)
UV_EXTERN void uv_walk(uv_loop_t *loop, uv_walk_cb walk_cb, void *arg)
UV_EXTERN int uv_translate_sys_error(int sys_errno)
UV_EXTERN void uv_print_all_handles(uv_loop_t *loop, FILE *stream)
UV_EXTERN void * uv_req_get_data(const uv_req_t *req)
UV_EXTERN int uv_check_start(uv_check_t *check, uv_check_cb cb)
UV_EXTERN int uv_interface_addresses(uv_interface_address_t **addresses, int *count)
UV_EXTERN int uv_tcp_keepalive(uv_tcp_t *handle, int enable, unsigned int delay)
UV_EXTERN int uv_rwlock_init(uv_rwlock_t *rwlock)
UV_EXTERN int uv_prepare_init(uv_loop_t *, uv_prepare_t *prepare)
UV_EXTERN int uv_recv_buffer_size(uv_handle_t *handle, int *value)
UV_EXTERN int uv_fs_ftruncate(uv_loop_t *loop, uv_fs_t *req, uv_file file, int64_t offset, uv_fs_cb cb)
UV_EXTERN int uv_fs_poll_getpath(uv_fs_poll_t *handle, char *buffer, size_t *size)
UV_EXTERN int uv_fs_read(uv_loop_t *loop, uv_fs_t *req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
UV_EXTERN int uv_backend_timeout(const uv_loop_t *)
UV_EXTERN int uv_thread_join(uv_thread_t *tid)
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
void(* uv_getaddrinfo_cb)(uv_getaddrinfo_t *req, int status, struct addrinfo *res)
Definition: uv.h:340
void *(* uv_malloc_func)(size_t size)
Definition: uv.h:273
UV_EXTERN int uv_tcp_open(uv_tcp_t *handle, uv_os_sock_t sock)
UV_EXTERN int uv_process_kill(uv_process_t *, int signum)
UV_EXTERN void uv_rwlock_wrlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_poll_start(uv_poll_t *handle, int events, uv_poll_cb cb)
UV_EXTERN int uv_kill(int pid, int signum)
UV_EXTERN int uv_ip6_addr(const char *ip, int port, struct sockaddr_in6 *addr)
UV_EXTERN const char * uv_handle_type_name(uv_handle_type type)
UV_EXTERN int uv_fs_fsync(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
uv_tty_mode_t
Definition: uv.h:767
@ UV_TTY_MODE_IO
Definition: uv.h:773
@ UV_TTY_MODE_NORMAL
Definition: uv.h:769
@ UV_TTY_MODE_RAW
Definition: uv.h:771
void(* uv_fs_event_cb)(uv_fs_event_t *handle, const char *filename, int events, int status)
Definition: uv.h:399
UV_EXTERN int uv_try_write2(uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t *send_handle)
UV_EXTERN int uv_signal_start_oneshot(uv_signal_t *handle, uv_signal_cb signal_cb, int signum)
UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority)
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t *req)
UV_EXTERN int uv_if_indextoiid(unsigned int ifindex, char *buffer, size_t *size)
UV_EXTERN void uv_once(uv_once_t *guard, void(*callback)(void))
UV_EXTERN int uv_resident_set_memory(size_t *rss)
void(* uv_fs_poll_cb)(uv_fs_poll_t *handle, int status, const uv_stat_t *prev, const uv_stat_t *curr)
Definition: uv.h:404
UV_EXTERN int uv_spawn(uv_loop_t *loop, uv_process_t *handle, const uv_process_options_t *options)
UV_EXTERN int uv_idle_stop(uv_idle_t *idle)
UV_EXTERN int uv_udp_set_ttl(uv_udp_t *handle, int ttl)
uv_handle_type
Definition: uv.h:195
@ UV_FILE
Definition: uv.h:200
@ UV_HANDLE_TYPE_MAX
Definition: uv.h:201
@ UV_UNKNOWN_HANDLE
Definition: uv.h:196
UV_EXTERN uint64_t uv_get_free_memory(void)
UV_EXTERN int uv_if_indextoname(unsigned int ifindex, char *buffer, size_t *size)
void(* uv_free_func)(void *ptr)
Definition: uv.h:276
UV_EXTERN void uv_sleep(unsigned int msec)
UV_EXTERN int uv_tcp_connect(uv_connect_t *req, uv_tcp_t *handle, const struct sockaddr *addr, uv_connect_cb cb)
uv_udp_flags
Definition: uv.h:635
@ UV_UDP_LINUX_RECVERR
Definition: uv.h:670
@ UV_UDP_PARTIAL
Definition: uv.h:642
@ UV_UDP_MMSG_FREE
Definition: uv.h:662
@ UV_UDP_MMSG_CHUNK
Definition: uv.h:656
@ UV_UDP_IPV6ONLY
Definition: uv.h:637
@ UV_UDP_RECVMMSG
Definition: uv.h:674
@ UV_UDP_REUSEADDR
Definition: uv.h:651
UV_EXTERN void uv_sem_destroy(uv_sem_t *sem)
UV_EXTERN int uv_backend_fd(const uv_loop_t *)
UV_EXTERN int uv_udp_set_multicast_interface(uv_udp_t *handle, const char *interface_addr)
UV_EXTERN int uv_os_get_passwd(uv_passwd_t *pwd)
UV_EXTERN int uv_fs_stat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_udp_init_ex(uv_loop_t *, uv_udp_t *handle, unsigned int flags)
UV_EXTERN int uv_random(uv_loop_t *loop, uv_random_t *req, void *buf, size_t buflen, unsigned flags, uv_random_cb cb)
UV_EXTERN int uv_write(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_write_cb cb)
UV_EXTERN int uv_thread_getaffinity(uv_thread_t *tid, char *cpumask, size_t mask_size)
UV_EXTERN int uv_signal_start(uv_signal_t *handle, uv_signal_cb signal_cb, int signum)
UV_EXTERN void uv_ref(uv_handle_t *)
uv_tcp_flags
Definition: uv.h:602
@ UV_TCP_IPV6ONLY
Definition: uv.h:604
UV_EXTERN uv_buf_t uv_buf_init(char *base, unsigned int len)
UV_EXTERN int uv_check_init(uv_loop_t *, uv_check_t *check)
UV_EXTERN int uv_read_stop(uv_stream_t *)
UV_EXTERN int uv_os_environ(uv_env_item_t **envitems, int *count)
UV_EXTERN size_t uv_handle_size(uv_handle_type type)
UV_EXTERN size_t uv_req_size(uv_req_type type)
UV_EXTERN const char * uv_version_string(void)
UV_EXTERN int uv_mutex_init_recursive(uv_mutex_t *handle)
UV_EXTERN uint64_t uv_hrtime(void)
UV_EXTERN void uv_loop_set_data(uv_loop_t *, void *data)
UV_EXTERN int uv_fs_access(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
UV_EXTERN int uv_thread_getcpu(void)
UV_EXTERN int uv_stream_set_blocking(uv_stream_t *handle, int blocking)
UV_EXTERN int uv_dlopen(const char *filename, uv_lib_t *lib)
UV_EXTERN void * uv_key_get(uv_key_t *key)
UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int *priority)
void(* uv_prepare_cb)(uv_prepare_t *handle)
Definition: uv.h:332
UV_EXTERN int uv_read_start(uv_stream_t *, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
void(* uv_after_work_cb)(uv_work_t *req, int status)
Definition: uv.h:339
UV_EXTERN int uv_tcp_close_reset(uv_tcp_t *handle, uv_close_cb close_cb)
UV_EXTERN void uv_os_free_group(uv_group_t *grp)
UV_EXTERN void uv_sem_post(uv_sem_t *sem)
UV_EXTERN int uv_udp_send(uv_udp_send_t *req, uv_udp_t *handle, const uv_buf_t bufs[], unsigned int nbufs, const struct sockaddr *addr, uv_udp_send_cb send_cb)
UV_EXTERN int uv_ip_name(const struct sockaddr *src, char *dst, size_t size)
UV_EXTERN int uv_ip4_name(const struct sockaddr_in *src, char *dst, size_t size)
UV_EXTERN void * uv_fs_get_ptr(const uv_fs_t *)
UV_EXTERN int uv_metrics_info(uv_loop_t *loop, uv_metrics_t *metrics)
UV_EXTERN int uv_is_writable(const uv_stream_t *handle)
uv_clock_id
Definition: uv.h:352
@ UV_CLOCK_REALTIME
Definition: uv.h:354
@ UV_CLOCK_MONOTONIC
Definition: uv.h:353
UV_EXTERN int uv_listen(uv_stream_t *stream, int backlog, uv_connection_cb cb)
UV_EXTERN int uv_cwd(char *buffer, size_t *size)
UV_EXTERN int uv_udp_set_source_membership(uv_udp_t *handle, const char *multicast_addr, const char *interface_addr, const char *source_addr, uv_membership membership)
UV_EXTERN int uv_udp_recv_stop(uv_udp_t *handle)
UV_EXTERN void uv_os_free_passwd(uv_passwd_t *pwd)
UV_EXTERN int uv_fs_event_start(uv_fs_event_t *handle, uv_fs_event_cb cb, const char *path, unsigned int flags)
UV_EXTERN void uv_freeaddrinfo(struct addrinfo *ai)
uv_fs_type
Definition: uv.h:1325
@ UV_FS_STATFS
Definition: uv.h:1361
@ UV_FS_CUSTOM
Definition: uv.h:1327
@ UV_FS_SYMLINK
Definition: uv.h:1351
@ UV_FS_FDATASYNC
Definition: uv.h:1343
@ UV_FS_FCHMOD
Definition: uv.h:1341
@ UV_FS_SCANDIR
Definition: uv.h:1349
@ UV_FS_FTRUNCATE
Definition: uv.h:1336
@ UV_FS_READDIR
Definition: uv.h:1359
@ UV_FS_SENDFILE
Definition: uv.h:1332
@ UV_FS_OPENDIR
Definition: uv.h:1358
@ UV_FS_RENAME
Definition: uv.h:1348
@ UV_FS_READLINK
Definition: uv.h:1352
@ UV_FS_LUTIME
Definition: uv.h:1363
@ UV_FS_STAT
Definition: uv.h:1333
@ UV_FS_CHOWN
Definition: uv.h:1353
@ UV_FS_FUTIME
Definition: uv.h:1338
@ UV_FS_CHMOD
Definition: uv.h:1340
@ UV_FS_REALPATH
Definition: uv.h:1355
@ UV_FS_UNKNOWN
Definition: uv.h:1326
@ UV_FS_UNLINK
Definition: uv.h:1344
@ UV_FS_MKSTEMP
Definition: uv.h:1362
@ UV_FS_RMDIR
Definition: uv.h:1345
@ UV_FS_CLOSEDIR
Definition: uv.h:1360
@ UV_FS_MKDTEMP
Definition: uv.h:1347
@ UV_FS_CLOSE
Definition: uv.h:1329
@ UV_FS_FSYNC
Definition: uv.h:1342
@ UV_FS_FCHOWN
Definition: uv.h:1354
@ UV_FS_READ
Definition: uv.h:1330
@ UV_FS_COPYFILE
Definition: uv.h:1356
@ UV_FS_MKDIR
Definition: uv.h:1346
@ UV_FS_UTIME
Definition: uv.h:1337
@ UV_FS_ACCESS
Definition: uv.h:1339
@ UV_FS_FSTAT
Definition: uv.h:1335
@ UV_FS_LCHOWN
Definition: uv.h:1357
@ UV_FS_LSTAT
Definition: uv.h:1334
@ UV_FS_OPEN
Definition: uv.h:1328
@ UV_FS_WRITE
Definition: uv.h:1331
@ UV_FS_LINK
Definition: uv.h:1350
UV_EXTERN int uv_fs_lstat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_fs_fchown(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
UV_EXTERN int uv_loop_init(uv_loop_t *loop)
UV_EXTERN int uv_prepare_start(uv_prepare_t *prepare, uv_prepare_cb cb)
UV_EXTERN int uv_os_get_passwd2(uv_passwd_t *pwd, uv_uid_t uid)
UV_EXTERN void uv_mutex_destroy(uv_mutex_t *handle)
UV_EXTERN char * uv_strerror_r(int err, char *buf, size_t buflen)
UV_EXTERN void uv_tty_set_vterm_state(uv_tty_vtermstate_t state)
UV_EXTERN unsigned int uv_available_parallelism(void)
UV_EXTERN int uv_pipe_pending_count(uv_pipe_t *handle)
UV_EXTERN int uv_pipe_getsockname(const uv_pipe_t *handle, char *buffer, size_t *size)
void(* uv_thread_cb)(void *arg)
Definition: uv.h:1814
UV_EXTERN int uv_rwlock_tryrdlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_fs_sendfile(uv_loop_t *loop, uv_fs_t *req, uv_file out_fd, uv_file in_fd, int64_t in_offset, size_t length, uv_fs_cb cb)
UV_EXTERN void uv_free_cpu_info(uv_cpu_info_t *cpu_infos, int count)
UV_EXTERN int uv_getnameinfo(uv_loop_t *loop, uv_getnameinfo_t *req, uv_getnameinfo_cb getnameinfo_cb, const struct sockaddr *addr, int flags)
UV_EXTERN int uv_try_write(uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs)
UV_EXTERN int uv_pipe_init(uv_loop_t *, uv_pipe_t *handle, int ipc)
uv_membership
Definition: uv.h:412
@ UV_JOIN_GROUP
Definition: uv.h:414
@ UV_LEAVE_GROUP
Definition: uv.h:413
UV_EXTERN int uv_tcp_nodelay(uv_tcp_t *handle, int enable)
UV_PRIVATE_REQ_TYPES UV_EXTERN int uv_shutdown(uv_shutdown_t *req, uv_stream_t *handle, uv_shutdown_cb cb)
#define UV_ERRNO_MAP(XX)
Definition: uv.h:72
UV_EXTERN int uv_sem_trywait(uv_sem_t *sem)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
UV_EXTERN int uv_fs_statfs(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN size_t uv_stream_get_write_queue_size(const uv_stream_t *stream)
UV_EXTERN const char * uv_strerror(int err)
UV_EXTERN int uv_fs_poll_init(uv_loop_t *loop, uv_fs_poll_t *handle)
UV_EXTERN void uv_mutex_unlock(uv_mutex_t *handle)
UV_EXTERN void uv_rwlock_wrunlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_replace_allocator(uv_malloc_func malloc_func, uv_realloc_func realloc_func, uv_calloc_func calloc_func, uv_free_func free_func)
UV_EXTERN void uv_handle_set_data(uv_handle_t *handle, void *data)
UV_EXTERN size_t uv_udp_get_send_queue_count(const uv_udp_t *handle)
UV_EXTERN size_t uv_udp_get_send_queue_size(const uv_udp_t *handle)
void(* uv_poll_cb)(uv_poll_t *handle, int status, int events)
Definition: uv.h:329
UV_EXTERN int uv_signal_stop(uv_signal_t *handle)
UV_EXTERN int uv_os_homedir(char *buffer, size_t *size)
void *(* uv_calloc_func)(size_t count, size_t size)
Definition: uv.h:275
UV_EXTERN int uv_fs_write(uv_loop_t *loop, uv_fs_t *req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
UV_EXTERN int uv_pipe_connect2(uv_connect_t *req, uv_pipe_t *handle, const char *name, size_t namelen, unsigned int flags, uv_connect_cb cb)
#define UV_REQ_FIELDS
Definition: uv.h:427
UV_EXTERN void uv_key_set(uv_key_t *key, void *value)
UV_EXTERN uv_os_fd_t uv_get_osfhandle(int fd)
UV_EXTERN int uv_dlsym(uv_lib_t *lib, const char *name, void **ptr)
uv_tty_vtermstate_t
Definition: uv.h:776
@ UV_TTY_UNSUPPORTED
Definition: uv.h:785
@ UV_TTY_SUPPORTED
Definition: uv.h:781
UV_EXTERN int uv_barrier_wait(uv_barrier_t *barrier)
UV_EXTERN int uv_socketpair(int type, int protocol, uv_os_sock_t socket_vector[2], int flags0, int flags1)
ssize_t uv_wtf8_length_as_utf16(const char *wtf8)
UV_EXTERN int uv_tty_set_mode(uv_tty_t *, uv_tty_mode_t mode)
UV_EXTERN const char * uv_req_type_name(uv_req_type type)
int uv_utf16_to_wtf8(const uint16_t *utf16, ssize_t utf16_len, char **wtf8_ptr, size_t *wtf8_len_ptr)
UV_EXTERN int uv_write2(uv_write_t *req, uv_stream_t *handle, const uv_buf_t bufs[], unsigned int nbufs, uv_stream_t *send_handle, uv_write_cb cb)
void(* uv_getnameinfo_cb)(uv_getnameinfo_t *req, int status, const char *hostname, const char *service)
Definition: uv.h:343
UV_EXTERN int uv_fs_event_stop(uv_fs_event_t *handle)
UV_EXTERN int uv_fs_chmod(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
uv_fs_event_flags
Definition: uv.h:1664
@ UV_FS_EVENT_RECURSIVE
Definition: uv.h:1688
@ UV_FS_EVENT_STAT
Definition: uv.h:1681
@ UV_FS_EVENT_WATCH_ENTRY
Definition: uv.h:1672
UV_EXTERN int uv_fs_fdatasync(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_EXTERN int uv_udp_set_multicast_ttl(uv_udp_t *handle, int ttl)
UV_EXTERN char ** uv_setup_args(int argc, char **argv)
UV_EXTERN void uv_barrier_destroy(uv_barrier_t *barrier)
UV_EXTERN int uv_os_getenv(const char *name, char *buffer, size_t *size)
UV_EXTERN int uv_timer_stop(uv_timer_t *handle)
UV_EXTERN uint64_t uv_get_constrained_memory(void)
UV_EXTERN void uv_req_set_data(uv_req_t *req, void *data)
UV_EXTERN int uv_os_gethostname(char *buffer, size_t *size)
UV_EXTERN int uv_fs_readlink(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_udp_open(uv_udp_t *handle, uv_os_sock_t sock)
UV_EXTERN uv_fs_type uv_fs_get_type(const uv_fs_t *)
uv_fs_event
Definition: uv.h:1608
@ UV_CHANGE
Definition: uv.h:1610
@ UV_RENAME
Definition: uv.h:1609
UV_EXTERN int uv_thread_equal(const uv_thread_t *t1, const uv_thread_t *t2)
UV_EXTERN int uv_fs_futime(uv_loop_t *loop, uv_fs_t *req, uv_file file, double atime, double mtime, uv_fs_cb cb)
UV_EXTERN uv_handle_type uv_pipe_pending_type(uv_pipe_t *handle)
UV_EXTERN uint64_t uv_now(const uv_loop_t *)
UV_EXTERN uv_req_type uv_req_get_type(const uv_req_t *req)
UV_EXTERN void uv_pipe_pending_instances(uv_pipe_t *handle, int count)
UV_EXTERN int uv_pipe_bind(uv_pipe_t *handle, const char *name)
UV_EXTERN int uv_fs_utime(uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
struct uv_process_options_s uv_process_options_t
UV_EXTERN uv_loop_t * uv_loop_new(void)
UV_EXTERN int uv_fs_mkstemp(uv_loop_t *loop, uv_fs_t *req, const char *tpl, uv_fs_cb cb)
UV_EXTERN int uv_os_uname(uv_utsname_t *buffer)
UV_EXTERN int uv_fs_get_system_error(const uv_fs_t *)
UV_EXTERN int uv_loop_fork(uv_loop_t *loop)
UV_EXTERN int uv_tcp_bind(uv_tcp_t *handle, const struct sockaddr *addr, unsigned int flags)
UV_EXTERN int uv_udp_try_send(uv_udp_t *handle, const uv_buf_t bufs[], unsigned int nbufs, const struct sockaddr *addr)
UV_EXTERN int uv_inet_ntop(int af, const void *src, char *dst, size_t size)
#define XX(code, _)
Definition: uv.h:1848
UV_EXTERN void uv_unref(uv_handle_t *)
UV_EXTERN int uv_udp_set_membership(uv_udp_t *handle, const char *multicast_addr, const char *interface_addr, uv_membership membership)
UV_EXTERN int uv_tty_reset_mode(void)
void(* uv_check_cb)(uv_check_t *handle)
Definition: uv.h:333
UV_EXTERN char * uv_err_name_r(int err, char *buf, size_t buflen)
UV_EXTERN int uv_queue_work(uv_loop_t *loop, uv_work_t *req, uv_work_cb work_cb, uv_after_work_cb after_work_cb)
void(* uv_udp_recv_cb)(uv_udp_t *handle, ssize_t nread, const uv_buf_t *buf, const struct sockaddr *addr, unsigned flags)
Definition: uv.h:678
UV_EXTERN void uv_rwlock_rdlock(uv_rwlock_t *rwlock)
UV_EXTERN int uv_fs_event_init(uv_loop_t *loop, uv_fs_event_t *handle)
UV_EXTERN int uv_fs_scandir(uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, uv_fs_cb cb)
void(* uv_timer_cb)(uv_timer_t *handle)
Definition: uv.h:330
UV_EXTERN int uv_is_closing(const uv_handle_t *handle)
UV_EXTERN int uv_check_stop(uv_check_t *check)
UV_EXTERN int uv_udp_init(uv_loop_t *, uv_udp_t *handle)
void(* uv_read_cb)(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
Definition: uv.h:321
void(* uv_udp_send_cb)(uv_udp_send_t *req, int status)
Definition: uv.h:677
UV_EXTERN int uv_fs_fchmod(uv_loop_t *loop, uv_fs_t *req, uv_file file, int mode, uv_fs_cb cb)
void(* uv_alloc_cb)(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
Definition: uv.h:318
UV_EXTERN int uv_fs_chown(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
UV_EXTERN int uv_fs_lchown(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
UV_EXTERN int uv_thread_create_ex(uv_thread_t *tid, const uv_thread_options_t *params, uv_thread_cb entry, void *arg)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN uv_handle_type uv_guess_handle(uv_file file)
UV_EXTERN int uv_fs_mkdtemp(uv_loop_t *loop, uv_fs_t *req, const char *tpl, uv_fs_cb cb)
UV_EXTERN int uv_thread_create(uv_thread_t *tid, uv_thread_cb entry, void *arg)
UV_EXTERN const char * uv_err_name(int err)
UV_EXTERN uint64_t uv_get_total_memory(void)
UV_EXTERN int uv_udp_connect(uv_udp_t *handle, const struct sockaddr *addr)
void *(* uv_realloc_func)(void *ptr, size_t size)
Definition: uv.h:274
UV_EXTERN ssize_t uv_fs_get_result(const uv_fs_t *)
UV_EXTERN int uv_key_create(uv_key_t *key)
UV_EXTERN int uv_thread_setaffinity(uv_thread_t *tid, char *cpumask, char *oldmask, size_t mask_size)
UV_EXTERN int uv_udp_using_recvmmsg(const uv_udp_t *handle)
UV_EXTERN int uv_open_osfhandle(uv_os_fd_t os_fd)
#define UV_EXTERN
Definition: uv.h:49
UV_EXTERN int uv_pipe(uv_file fds[2], int read_flags, int write_flags)
UV_EXTERN int uv_accept(uv_stream_t *server, uv_stream_t *client)
UV_EXTERN int uv_fs_scandir_next(uv_fs_t *req, uv_dirent_t *ent)
#define UV_REQ_TYPE_MAP(XX)
Definition: uv.h:176
void(* uv_signal_cb)(uv_signal_t *handle, int signum)
Definition: uv.h:409
UV_EXTERN void * uv_loop_get_data(const uv_loop_t *)
UV_EXTERN int uv_send_buffer_size(uv_handle_t *handle, int *value)
UV_EXTERN int uv_fs_unlink(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_pipe_getpeername(const uv_pipe_t *handle, char *buffer, size_t *size)
uv_dirent_type_t
Definition: uv.h:1203
@ UV_DIRENT_FIFO
Definition: uv.h:1208
@ UV_DIRENT_CHAR
Definition: uv.h:1210
@ UV_DIRENT_DIR
Definition: uv.h:1206
@ UV_DIRENT_UNKNOWN
Definition: uv.h:1204
@ UV_DIRENT_BLOCK
Definition: uv.h:1211
@ UV_DIRENT_LINK
Definition: uv.h:1207
@ UV_DIRENT_FILE
Definition: uv.h:1205
@ UV_DIRENT_SOCKET
Definition: uv.h:1209
UV_EXTERN int uv_tty_get_winsize(uv_tty_t *, int *width, int *height)
UV_EXTERN int uv_udp_set_multicast_loop(uv_udp_t *handle, int on)
UV_EXTERN int uv_has_ref(const uv_handle_t *)
UV_EXTERN uint64_t uv_timer_get_repeat(const uv_timer_t *handle)
UV_EXTERN int uv_cond_timedwait(uv_cond_t *cond, uv_mutex_t *mutex, uint64_t timeout)
UV_EXTERN size_t uv_loop_size(void)
void(* uv_connect_cb)(uv_connect_t *req, int status)
Definition: uv.h:325
UV_EXTERN int uv_uptime(double *uptime)
uv_errno_t
Definition: uv.h:188
@ UV_ERRNO_MAX
Definition: uv.h:192
void(* uv_idle_cb)(uv_idle_t *handle)
Definition: uv.h:334
void(* uv_exit_cb)(uv_process_t *, int64_t exit_status, int term_signal)
Definition: uv.h:335
UV_EXTERN int uv_os_tmpdir(char *buffer, size_t *size)
UV_EXTERN int uv_fs_close(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_EXTERN void uv_rwlock_destroy(uv_rwlock_t *rwlock)
UV_EXTERN int uv_fs_poll_start(uv_fs_poll_t *handle, uv_fs_poll_cb poll_cb, const char *path, unsigned int interval)
UV_EXTERN int uv_tcp_init(uv_loop_t *, uv_tcp_t *handle)
UV_EXTERN int uv_tcp_simultaneous_accepts(uv_tcp_t *handle, int enable)
UV_EXTERN int uv_poll_init_socket(uv_loop_t *loop, uv_poll_t *handle, uv_os_sock_t socket)
UV_EXTERN int uv_tty_init(uv_loop_t *, uv_tty_t *, uv_file fd, int readable)
UV_EXTERN int uv_rwlock_trywrlock(uv_rwlock_t *rwlock)
UV_EXTERN void uv_library_shutdown(void)
UV_EXTERN int uv_os_setenv(const char *name, const char *value)
UV_EXTERN uv_loop_t * uv_default_loop(void)
UV_EXTERN int uv_is_readable(const uv_stream_t *handle)
UV_EXTERN int uv_loop_alive(const uv_loop_t *loop)
UV_EXTERN void uv_loadavg(double avg[3])
UV_EXTERN int uv_fs_symlink(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, int flags, uv_fs_cb cb)
UV_EXTERN uint64_t uv_metrics_idle_time(uv_loop_t *loop)
UV_EXTERN int uv_getaddrinfo(uv_loop_t *loop, uv_getaddrinfo_t *req, uv_getaddrinfo_cb getaddrinfo_cb, const char *node, const char *service, const struct addrinfo *hints)
void(* uv_async_cb)(uv_async_t *handle)
Definition: uv.h:331
UV_EXTERN int uv_async_init(uv_loop_t *, uv_async_t *async, uv_async_cb async_cb)
UV_EXTERN uv_stat_t * uv_fs_get_statbuf(uv_fs_t *)
UV_EXTERN int uv_udp_getsockname(const uv_udp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN int uv_pipe_bind2(uv_pipe_t *handle, const char *name, size_t namelen, unsigned int flags)
UV_EXTERN int uv_mutex_trylock(uv_mutex_t *handle)
UV_EXTERN void uv_os_free_environ(uv_env_item_t *envitems, int count)
UV_EXTERN int uv_cancel(uv_req_t *req)
void(* uv_walk_cb)(uv_handle_t *handle, void *arg)
Definition: uv.h:336
UV_EXTERN void uv_cond_wait(uv_cond_t *cond, uv_mutex_t *mutex)
UV_EXTERN void uv_cond_signal(uv_cond_t *cond)
UV_EXTERN int uv_fs_mkdir(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
UV_EXTERN int uv_cpumask_size(void)
struct uv_stdio_container_s uv_stdio_container_t
UV_EXTERN int uv_os_unsetenv(const char *name)
UV_EXTERN int uv_async_send(uv_async_t *async)
UV_EXTERN int uv_fs_readdir(uv_loop_t *loop, uv_fs_t *req, uv_dir_t *dir, uv_fs_cb cb)
uv_req_type
Definition: uv.h:204
@ UV_REQ_TYPE_MAX
Definition: uv.h:210
@ UV_UNKNOWN_REQ
Definition: uv.h:205
UV_EXTERN int uv_loop_configure(uv_loop_t *loop, uv_loop_option option,...)
void(* uv_fs_cb)(uv_fs_t *req)
Definition: uv.h:337
#define UV_HANDLE_TYPE_MAP(XX)
Definition: uv.h:158
UV_EXTERN uv_pid_t uv_os_getppid(void)
void uv_wtf8_to_utf16(const char *wtf8, uint16_t *utf16, size_t utf16_len)
UV_EXTERN void uv_loop_delete(uv_loop_t *)
UV_EXTERN int uv_fs_realpath(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_timer_again(uv_timer_t *handle)
UV_EXTERN int uv_fs_link(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
UV_EXTERN int uv_udp_getpeername(const uv_udp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN int uv_loop_close(uv_loop_t *loop)
UV_EXTERN void uv_sem_wait(uv_sem_t *sem)
UV_EXTERN void uv_cond_broadcast(uv_cond_t *cond)
UV_EXTERN int uv_fs_poll_stop(uv_fs_poll_t *handle)
UV_EXTERN int uv_fs_opendir(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
uv_poll_event
Definition: uv.h:854
@ UV_WRITABLE
Definition: uv.h:856
@ UV_DISCONNECT
Definition: uv.h:857
@ UV_PRIORITIZED
Definition: uv.h:858
@ UV_READABLE
Definition: uv.h:855
UV_EXTERN int uv_signal_init(uv_loop_t *loop, uv_signal_t *handle)
UV_EXTERN int uv_inet_pton(int af, const char *src, void *dst)
UV_EXTERN int uv_fs_rmdir(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_fs_lutime(uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
UV_EXTERN uint64_t uv_timer_get_due_in(const uv_timer_t *handle)
UV_EXTERN void uv_pipe_connect(uv_connect_t *req, uv_pipe_t *handle, const char *name, uv_connect_cb cb)
UV_EXTERN int uv_tcp_getsockname(const uv_tcp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN int uv_fs_closedir(uv_loop_t *loop, uv_fs_t *req, uv_dir_t *dir, uv_fs_cb cb)
UV_EXTERN void uv_dlclose(uv_lib_t *lib)
UV_EXTERN void uv_disable_stdio_inheritance(void)
UV_EXTERN uv_handle_type uv_handle_get_type(const uv_handle_t *handle)
UV_EXTERN void uv_timer_set_repeat(uv_timer_t *handle, uint64_t repeat)
UV_EXTERN int uv_fs_rename(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
UV_EXTERN uint64_t uv_get_available_memory(void)
UV_EXTERN int uv_tty_get_vterm_state(uv_tty_vtermstate_t *state)
UV_EXTERN unsigned int uv_version(void)
UV_EXTERN int uv_poll_stop(uv_poll_t *handle)
UV_EXTERN int uv_clock_gettime(uv_clock_id clock_id, uv_timespec64_t *ts)
UV_EXTERN int uv_pipe_open(uv_pipe_t *, uv_file file)
UV_EXTERN int uv_os_get_group(uv_group_t *grp, uv_uid_t gid)
UV_EXTERN int uv_pipe_chmod(uv_pipe_t *handle, int flags)
UV_EXTERN int uv_ip6_name(const struct sockaddr_in6 *src, char *dst, size_t size)
UV_EXTERN int uv_udp_set_broadcast(uv_udp_t *handle, int on)
UV_EXTERN int uv_prepare_stop(uv_prepare_t *prepare)
UV_EXTERN int uv_sem_init(uv_sem_t *sem, unsigned int value)
UV_EXTERN int uv_fileno(const uv_handle_t *handle, uv_os_fd_t *fd)
UV_EXTERN void uv_update_time(uv_loop_t *)
UV_EXTERN void uv_rwlock_rdunlock(uv_rwlock_t *rwlock)
UV_EXTERN const char * uv_fs_get_path(const uv_fs_t *)
void(* uv_close_cb)(uv_handle_t *handle)
Definition: uv.h:328
UV_EXTERN uv_thread_t uv_thread_self(void)
UV_EXTERN int uv_idle_start(uv_idle_t *idle, uv_idle_cb cb)
UV_EXTERN int uv_fs_copyfile(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, int flags, uv_fs_cb cb)
UV_EXTERN int uv_mutex_init(uv_mutex_t *handle)
UV_EXTERN int uv_tcp_getpeername(const uv_tcp_t *handle, struct sockaddr *name, int *namelen)
UV_EXTERN void * uv_handle_get_data(const uv_handle_t *handle)
UV_EXTERN void uv_cond_destroy(uv_cond_t *cond)
UV_EXTERN int uv_cond_init(uv_cond_t *cond)
#define UV_STREAM_FIELDS
Definition: uv.h:515
UV_EXTERN int uv_chdir(const char *dir)
UV_EXTERN uv_pid_t uv_os_getpid(void)
void(* uv_work_cb)(uv_work_t *req)
Definition: uv.h:338
UV_EXTERN int uv_idle_init(uv_loop_t *, uv_idle_t *idle)
UV_EXTERN const char * uv_dlerror(const uv_lib_t *lib)
@ UV_PIPE_NO_TRUNCATE
Definition: uv.h:803
UV_EXTERN int uv_fs_event_getpath(uv_fs_event_t *handle, char *buffer, size_t *size)
uv_loop_option
Definition: uv.h:258
@ UV_LOOP_BLOCK_SIGNAL
Definition: uv.h:259
@ UV_METRICS_IDLE_TIME
Definition: uv.h:260
void(* uv_shutdown_cb)(uv_shutdown_t *req, int status)
Definition: uv.h:326
UV_EXTERN int uv_get_process_title(char *buffer, size_t size)
intptr_t ssize_t
Definition: win.h:27
#define UV__EOF
Definition: errno.h:32