WPILibC++ 2023.4.3-108-ge5452e3
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#ifdef _WIN32
32 /* Windows - set up dll import/export decorators. */
33# if defined(BUILDING_UV_SHARED)
34 /* Building shared library. */
35# define UV_EXTERN __declspec(dllexport)
36# elif defined(USING_UV_SHARED)
37 /* Using shared library. */
38# define UV_EXTERN __declspec(dllimport)
39# else
40 /* Building static library. */
41# define UV_EXTERN /* nothing */
42# endif
43#elif __GNUC__ >= 4
44# define UV_EXTERN __attribute__((visibility("default")))
45#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) /* Sun Studio >= 8 */
46# define UV_EXTERN __global
47#else
48# define UV_EXTERN /* nothing */
49#endif
50
51#include "uv/errno.h"
52#include "uv/version.h"
53#include <stddef.h>
54#include <stdio.h>
55
56#include <stdint.h>
57
58#if defined(_WIN32)
59# include "uv/win.h"
60#else
61# include "uv/unix.h"
62#endif
63
64/* Expand this list if necessary. */
65#define UV_ERRNO_MAP(XX) \
66 XX(E2BIG, "argument list too long") \
67 XX(EACCES, "permission denied") \
68 XX(EADDRINUSE, "address already in use") \
69 XX(EADDRNOTAVAIL, "address not available") \
70 XX(EAFNOSUPPORT, "address family not supported") \
71 XX(EAGAIN, "resource temporarily unavailable") \
72 XX(EAI_ADDRFAMILY, "address family not supported") \
73 XX(EAI_AGAIN, "temporary failure") \
74 XX(EAI_BADFLAGS, "bad ai_flags value") \
75 XX(EAI_BADHINTS, "invalid value for hints") \
76 XX(EAI_CANCELED, "request canceled") \
77 XX(EAI_FAIL, "permanent failure") \
78 XX(EAI_FAMILY, "ai_family not supported") \
79 XX(EAI_MEMORY, "out of memory") \
80 XX(EAI_NODATA, "no address") \
81 XX(EAI_NONAME, "unknown node or service") \
82 XX(EAI_OVERFLOW, "argument buffer overflow") \
83 XX(EAI_PROTOCOL, "resolved protocol is unknown") \
84 XX(EAI_SERVICE, "service not available for socket type") \
85 XX(EAI_SOCKTYPE, "socket type not supported") \
86 XX(EALREADY, "connection already in progress") \
87 XX(EBADF, "bad file descriptor") \
88 XX(EBUSY, "resource busy or locked") \
89 XX(ECANCELED, "operation canceled") \
90 XX(ECHARSET, "invalid Unicode character") \
91 XX(ECONNABORTED, "software caused connection abort") \
92 XX(ECONNREFUSED, "connection refused") \
93 XX(ECONNRESET, "connection reset by peer") \
94 XX(EDESTADDRREQ, "destination address required") \
95 XX(EEXIST, "file already exists") \
96 XX(EFAULT, "bad address in system call argument") \
97 XX(EFBIG, "file too large") \
98 XX(EHOSTUNREACH, "host is unreachable") \
99 XX(EINTR, "interrupted system call") \
100 XX(EINVAL, "invalid argument") \
101 XX(EIO, "i/o error") \
102 XX(EISCONN, "socket is already connected") \
103 XX(EISDIR, "illegal operation on a directory") \
104 XX(ELOOP, "too many symbolic links encountered") \
105 XX(EMFILE, "too many open files") \
106 XX(EMSGSIZE, "message too long") \
107 XX(ENAMETOOLONG, "name too long") \
108 XX(ENETDOWN, "network is down") \
109 XX(ENETUNREACH, "network is unreachable") \
110 XX(ENFILE, "file table overflow") \
111 XX(ENOBUFS, "no buffer space available") \
112 XX(ENODEV, "no such device") \
113 XX(ENOENT, "no such file or directory") \
114 XX(ENOMEM, "not enough memory") \
115 XX(ENONET, "machine is not on the network") \
116 XX(ENOPROTOOPT, "protocol not available") \
117 XX(ENOSPC, "no space left on device") \
118 XX(ENOSYS, "function not implemented") \
119 XX(ENOTCONN, "socket is not connected") \
120 XX(ENOTDIR, "not a directory") \
121 XX(ENOTEMPTY, "directory not empty") \
122 XX(ENOTSOCK, "socket operation on non-socket") \
123 XX(ENOTSUP, "operation not supported on socket") \
124 XX(EOVERFLOW, "value too large for defined data type") \
125 XX(EPERM, "operation not permitted") \
126 XX(EPIPE, "broken pipe") \
127 XX(EPROTO, "protocol error") \
128 XX(EPROTONOSUPPORT, "protocol not supported") \
129 XX(EPROTOTYPE, "protocol wrong type for socket") \
130 XX(ERANGE, "result too large") \
131 XX(EROFS, "read-only file system") \
132 XX(ESHUTDOWN, "cannot send after transport endpoint shutdown") \
133 XX(ESPIPE, "invalid seek") \
134 XX(ESRCH, "no such process") \
135 XX(ETIMEDOUT, "connection timed out") \
136 XX(ETXTBSY, "text file is busy") \
137 XX(EXDEV, "cross-device link not permitted") \
138 XX(UNKNOWN, "unknown error") \
139 XX(EOF, "end of file") \
140 XX(ENXIO, "no such device or address") \
141 XX(EMLINK, "too many links") \
142 XX(EHOSTDOWN, "host is down") \
143 XX(EREMOTEIO, "remote I/O error") \
144 XX(ENOTTY, "inappropriate ioctl for device") \
145 XX(EFTYPE, "inappropriate file type or format") \
146 XX(EILSEQ, "illegal byte sequence") \
147 XX(ESOCKTNOSUPPORT, "socket type not supported") \
148
149#define UV_HANDLE_TYPE_MAP(XX) \
150 XX(ASYNC, async) \
151 XX(CHECK, check) \
152 XX(FS_EVENT, fs_event) \
153 XX(FS_POLL, fs_poll) \
154 XX(HANDLE, handle) \
155 XX(IDLE, idle) \
156 XX(NAMED_PIPE, pipe) \
157 XX(POLL, poll) \
158 XX(PREPARE, prepare) \
159 XX(PROCESS, process) \
160 XX(STREAM, stream) \
161 XX(TCP, tcp) \
162 XX(TIMER, timer) \
163 XX(TTY, tty) \
164 XX(UDP, udp) \
165 XX(SIGNAL, signal) \
166
167#define UV_REQ_TYPE_MAP(XX) \
168 XX(REQ, req) \
169 XX(CONNECT, connect) \
170 XX(WRITE, write) \
171 XX(SHUTDOWN, shutdown) \
172 XX(UDP_SEND, udp_send) \
173 XX(FS, fs) \
174 XX(WORK, work) \
175 XX(GETADDRINFO, getaddrinfo) \
176 XX(GETNAMEINFO, getnameinfo) \
177 XX(RANDOM, random) \
178
179typedef enum {
180#define XX(code, _) UV_ ## code = UV__ ## code,
182#undef XX
185
186typedef enum {
188#define XX(uc, lc) UV_##uc,
190#undef XX
194
195typedef enum {
197#define XX(uc, lc) UV_##uc,
199#undef XX
203
204
205/* Handle types. */
206typedef struct uv_loop_s uv_loop_t;
208typedef struct uv_dir_s uv_dir_t;
210typedef struct uv_tcp_s uv_tcp_t;
211typedef struct uv_udp_s uv_udp_t;
212typedef struct uv_pipe_s uv_pipe_t;
213typedef struct uv_tty_s uv_tty_t;
214typedef struct uv_poll_s uv_poll_t;
215typedef struct uv_timer_s uv_timer_t;
217typedef struct uv_check_s uv_check_t;
218typedef struct uv_idle_s uv_idle_t;
219typedef struct uv_async_s uv_async_t;
224
225/* Request types. */
226typedef struct uv_req_s uv_req_t;
230typedef struct uv_write_s uv_write_t;
233typedef struct uv_fs_s uv_fs_t;
234typedef struct uv_work_s uv_work_t;
236
237/* None of the above. */
245
246typedef enum {
250
251typedef enum {
256
257
258UV_EXTERN unsigned int uv_version(void);
259UV_EXTERN const char* uv_version_string(void);
260
261typedef void* (*uv_malloc_func)(size_t size);
262typedef void* (*uv_realloc_func)(void* ptr, size_t size);
263typedef void* (*uv_calloc_func)(size_t count, size_t size);
264typedef void (*uv_free_func)(void* ptr);
265
267
269 uv_realloc_func realloc_func,
270 uv_calloc_func calloc_func,
271 uv_free_func free_func);
272
276/*
277 * NOTE:
278 * This function is DEPRECATED (to be removed after 0.12), users should
279 * allocate the loop manually and use uv_loop_init instead.
280 */
282/*
283 * NOTE:
284 * This function is DEPRECATED (to be removed after 0.12). Users should use
285 * uv_loop_close and free the memory manually instead.
286 */
292
295
299
302
305
306typedef void (*uv_alloc_cb)(uv_handle_t* handle,
307 size_t suggested_size,
308 uv_buf_t* buf);
309typedef void (*uv_read_cb)(uv_stream_t* stream,
310 ssize_t nread,
311 const uv_buf_t* buf);
312typedef void (*uv_write_cb)(uv_write_t* req, int status);
313typedef void (*uv_connect_cb)(uv_connect_t* req, int status);
314typedef void (*uv_shutdown_cb)(uv_shutdown_t* req, int status);
315typedef void (*uv_connection_cb)(uv_stream_t* server, int status);
316typedef void (*uv_close_cb)(uv_handle_t* handle);
317typedef void (*uv_poll_cb)(uv_poll_t* handle, int status, int events);
318typedef void (*uv_timer_cb)(uv_timer_t* handle);
319typedef void (*uv_async_cb)(uv_async_t* handle);
320typedef void (*uv_prepare_cb)(uv_prepare_t* handle);
321typedef void (*uv_check_cb)(uv_check_t* handle);
322typedef void (*uv_idle_cb)(uv_idle_t* handle);
323typedef void (*uv_exit_cb)(uv_process_t*, int64_t exit_status, int term_signal);
324typedef void (*uv_walk_cb)(uv_handle_t* handle, void* arg);
325typedef void (*uv_fs_cb)(uv_fs_t* req);
326typedef void (*uv_work_cb)(uv_work_t* req);
327typedef void (*uv_after_work_cb)(uv_work_t* req, int status);
329 int status,
330 struct addrinfo* res);
332 int status,
333 const char* hostname,
334 const char* service);
335typedef void (*uv_random_cb)(uv_random_t* req,
336 int status,
337 void* buf,
338 size_t buflen);
339
340typedef struct {
341 long tv_sec;
344
345
346typedef struct {
363} uv_stat_t;
364
365
366typedef void (*uv_fs_event_cb)(uv_fs_event_t* handle,
367 const char* filename,
368 int events,
369 int status);
370
371typedef void (*uv_fs_poll_cb)(uv_fs_poll_t* handle,
372 int status,
373 const uv_stat_t* prev,
374 const uv_stat_t* curr);
375
376typedef void (*uv_signal_cb)(uv_signal_t* handle, int signum);
377
378
379typedef enum {
383
384
386
387UV_EXTERN const char* uv_strerror(int err);
388UV_EXTERN char* uv_strerror_r(int err, char* buf, size_t buflen);
389
390UV_EXTERN const char* uv_err_name(int err);
391UV_EXTERN char* uv_err_name_r(int err, char* buf, size_t buflen);
392
393
394#define UV_REQ_FIELDS \
395 /* public */ \
396 void* data; \
397 /* read-only */ \
398 uv_req_type type; \
399 /* private */ \
400 void* reserved[6]; \
401 UV_REQ_PRIVATE_FIELDS \
402
403/* Abstract base class of all requests. */
404struct uv_req_s {
406};
407
408
409/* Platform-specific request types. */
411
412
414 uv_stream_t* handle,
415 uv_shutdown_cb cb);
416
422};
423
424
425#define UV_HANDLE_FIELDS \
426 /* public */ \
427 void* data; \
428 /* read-only */ \
429 uv_loop_t* loop; \
430 uv_handle_type type; \
431 /* private */ \
432 uv_close_cb close_cb; \
433 void* handle_queue[2]; \
434 union { \
435 int fd; \
436 void* reserved[4]; \
437 } u; \
438 UV_HANDLE_PRIVATE_FIELDS \
439
440/* The abstract base class of all handles. */
443};
444
451
457
459
460UV_EXTERN void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg);
461
462/* Helpers for ad hoc debugging, no API/ABI stability guaranteed. */
463UV_EXTERN void uv_print_all_handles(uv_loop_t* loop, FILE* stream);
465
467
470
472
473UV_EXTERN uv_buf_t uv_buf_init(char* base, unsigned int len);
474
475UV_EXTERN int uv_pipe(uv_file fds[2], int read_flags, int write_flags);
477 int protocol,
478 uv_os_sock_t socket_vector[2],
479 int flags0,
480 int flags1);
481
482#define UV_STREAM_FIELDS \
483 /* number of bytes queued for writing */ \
484 size_t write_queue_size; \
485 uv_alloc_cb alloc_cb; \
486 uv_read_cb read_cb; \
487 /* private */ \
488 UV_STREAM_PRIVATE_FIELDS
489
490/*
491 * uv_stream_t is a subclass of uv_handle_t.
492 *
493 * uv_stream is an abstract class.
494 *
495 * uv_stream_t is the parent class of uv_tcp_t, uv_pipe_t and uv_tty_t.
496 */
500};
501
503
504UV_EXTERN int uv_listen(uv_stream_t* stream, int backlog, uv_connection_cb cb);
506
508 uv_alloc_cb alloc_cb,
509 uv_read_cb read_cb);
511
513 uv_stream_t* handle,
514 const uv_buf_t bufs[],
515 unsigned int nbufs,
516 uv_write_cb cb);
518 uv_stream_t* handle,
519 const uv_buf_t bufs[],
520 unsigned int nbufs,
521 uv_stream_t* send_handle,
522 uv_write_cb cb);
524 const uv_buf_t bufs[],
525 unsigned int nbufs);
527 const uv_buf_t bufs[],
528 unsigned int nbufs,
529 uv_stream_t* send_handle);
530
531/* uv_write_t is a subclass of uv_req_t. */
535 uv_stream_t* send_handle; /* TODO: make private and unix-only in v2.x. */
538};
539
540
543
545
547
548
549/*
550 * uv_tcp_t is a subclass of uv_stream_t.
551 *
552 * Represents a TCP stream or TCP server.
553 */
554struct uv_tcp_s {
558};
559
561UV_EXTERN int uv_tcp_init_ex(uv_loop_t*, uv_tcp_t* handle, unsigned int flags);
563UV_EXTERN int uv_tcp_nodelay(uv_tcp_t* handle, int enable);
565 int enable,
566 unsigned int delay);
568
570 /* Used with uv_tcp_bind, when an IPv6 address is used. */
573
575 const struct sockaddr* addr,
576 unsigned int flags);
578 struct sockaddr* name,
579 int* namelen);
581 struct sockaddr* name,
582 int* namelen);
585 uv_tcp_t* handle,
586 const struct sockaddr* addr,
587 uv_connect_cb cb);
588
589/* uv_connect_t is a subclass of uv_req_t. */
595};
596
597
598/*
599 * UDP support.
600 */
601
603 /* Disables dual stack mode. */
605 /*
606 * Indicates message was truncated because read buffer was too small. The
607 * remainder was discarded by the OS. Used in uv_udp_recv_cb.
608 */
610 /*
611 * Indicates if SO_REUSEADDR will be set when binding the handle.
612 * This sets the SO_REUSEPORT socket flag on the BSDs and OS X. On other
613 * Unix platforms, it sets the SO_REUSEADDR flag. What that means is that
614 * multiple threads or processes can bind to the same address without error
615 * (provided they all set the flag) but only the last one to bind will receive
616 * any traffic, in effect "stealing" the port from the previous listener.
617 */
619 /*
620 * Indicates that the message was received by recvmmsg, so the buffer provided
621 * must not be freed by the recv_cb callback.
622 */
624 /*
625 * Indicates that the buffer provided has been fully utilized by recvmmsg and
626 * that it should now be freed by the recv_cb callback. When this flag is set
627 * in uv_udp_recv_cb, nread will always be 0 and addr will always be NULL.
628 */
630 /*
631 * Indicates if IP_RECVERR/IPV6_RECVERR will be set when binding the handle.
632 * This sets IP_RECVERR for IPv4 and IPV6_RECVERR for IPv6 UDP sockets on
633 * Linux. This stops the Linux kernel from suppressing some ICMP error
634 * messages and enables full ICMP error reporting for faster failover.
635 * This flag is no-op on platforms other than Linux.
636 */
638 /*
639 * Indicates that recvmmsg should be used, if available.
640 */
641 UV_UDP_RECVMMSG = 256
643
644typedef void (*uv_udp_send_cb)(uv_udp_send_t* req, int status);
645typedef void (*uv_udp_recv_cb)(uv_udp_t* handle,
646 ssize_t nread,
647 const uv_buf_t* buf,
648 const struct sockaddr* addr,
649 unsigned flags);
650
651/* uv_udp_t is a subclass of uv_handle_t. */
652struct uv_udp_s {
654 /* read-only */
655 /*
656 * Number of bytes queued for sending. This field strictly shows how much
657 * information is currently queued.
658 */
660 /*
661 * Number of send requests currently in the queue awaiting to be processed.
662 */
665};
666
667/* uv_udp_send_t is a subclass of uv_req_t. */
673};
674
676UV_EXTERN int uv_udp_init_ex(uv_loop_t*, uv_udp_t* handle, unsigned int flags);
679 const struct sockaddr* addr,
680 unsigned int flags);
681UV_EXTERN int uv_udp_connect(uv_udp_t* handle, const struct sockaddr* addr);
682
684 struct sockaddr* name,
685 int* namelen);
687 struct sockaddr* name,
688 int* namelen);
690 const char* multicast_addr,
691 const char* interface_addr,
692 uv_membership membership);
694 const char* multicast_addr,
695 const char* interface_addr,
696 const char* source_addr,
697 uv_membership membership);
701 const char* interface_addr);
703UV_EXTERN int uv_udp_set_ttl(uv_udp_t* handle, int ttl);
705 uv_udp_t* handle,
706 const uv_buf_t bufs[],
707 unsigned int nbufs,
708 const struct sockaddr* addr,
709 uv_udp_send_cb send_cb);
711 const uv_buf_t bufs[],
712 unsigned int nbufs,
713 const struct sockaddr* addr);
715 uv_alloc_cb alloc_cb,
716 uv_udp_recv_cb recv_cb);
721
722
723/*
724 * uv_tty_t is a subclass of uv_stream_t.
725 *
726 * Representing a stream for the console.
727 */
728struct uv_tty_s {
732};
733
734typedef enum {
735 /* Initial/normal terminal mode */
737 /* Raw input mode (On Windows, ENABLE_WINDOW_INPUT is also enabled) */
739 /* Binary-safe I/O mode for IPC (Unix-only) */
742
743typedef enum {
744 /*
745 * The console supports handling of virtual terminal sequences
746 * (Windows10 new console, ConEmu)
747 */
749 /* The console cannot process the virtual terminal sequence. (Legacy
750 * console)
751 */
754
755
759UV_EXTERN int uv_tty_get_winsize(uv_tty_t*, int* width, int* height);
762
763inline int uv_tty_set_mode(uv_tty_t* handle, int mode) {
764 return uv_tty_set_mode(handle, static_cast<uv_tty_mode_t>(mode));
765}
766
768
769/*
770 * uv_pipe_t is a subclass of uv_stream_t.
771 *
772 * Representing a pipe stream or pipe server. On Windows this is a Named
773 * Pipe. On Unix this is a Unix domain socket.
774 */
775struct uv_pipe_s {
778 int ipc; /* non-zero if this pipe is used for passing handles */
780};
781
784UV_EXTERN int uv_pipe_bind(uv_pipe_t* handle, const char* name);
786 uv_pipe_t* handle,
787 const char* name,
788 uv_connect_cb cb);
790 char* buffer,
791 size_t* size);
793 char* buffer,
794 size_t* size);
799
800
801struct uv_poll_s {
805};
806
813
814UV_EXTERN int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd);
816 uv_poll_t* handle,
817 uv_os_sock_t socket);
818UV_EXTERN int uv_poll_start(uv_poll_t* handle, int events, uv_poll_cb cb);
820
821
825};
826
830
831
835};
836
840
841
842struct uv_idle_s {
845};
846
850
851
855};
856
858 uv_async_t* async,
859 uv_async_cb async_cb);
861
862
863/*
864 * uv_timer_t is a subclass of uv_handle_t.
865 *
866 * Used to get woken up at a specified time in the future.
867 */
871};
872
875 uv_timer_cb cb,
876 uint64_t timeout,
877 uint64_t repeat);
883
884
885/*
886 * uv_getaddrinfo_t is a subclass of uv_req_t.
887 *
888 * Request object for uv_getaddrinfo.
889 */
892 /* read-only */
894 /* struct addrinfo* addrinfo is marked as private, but it really isn't. */
896};
897
898
900 uv_getaddrinfo_t* req,
901 uv_getaddrinfo_cb getaddrinfo_cb,
902 const char* node,
903 const char* service,
904 const struct addrinfo* hints);
905UV_EXTERN void uv_freeaddrinfo(struct addrinfo* ai);
906
907
908/*
909* uv_getnameinfo_t is a subclass of uv_req_t.
910*
911* Request object for uv_getnameinfo.
912*/
915 /* read-only */
917 /* host and service are marked as private, but they really aren't. */
919};
920
922 uv_getnameinfo_t* req,
923 uv_getnameinfo_cb getnameinfo_cb,
924 const struct sockaddr* addr,
925 int flags);
926
927
928/* uv_spawn() options. */
929typedef enum {
930 UV_IGNORE = 0x00,
934
935 /*
936 * When UV_CREATE_PIPE is specified, UV_READABLE_PIPE and UV_WRITABLE_PIPE
937 * determine the direction of flow, from the child process' perspective. Both
938 * flags may be specified to create a duplex data stream.
939 */
942
943 /*
944 * When UV_CREATE_PIPE is specified, specifying UV_NONBLOCK_PIPE opens the
945 * handle in non-blocking mode in the child. This may cause loss of data,
946 * if the child is not designed to handle to encounter this mode,
947 * but can also be significantly more efficient.
948 */
950 UV_OVERLAPPED_PIPE = 0x40 /* old name, for compatibility */
952
953typedef struct uv_stdio_container_s {
955
956 union {
958 int fd;
961
962typedef struct uv_process_options_s {
963 uv_exit_cb exit_cb; /* Called after the process exits. */
964 const char* file; /* Path to program to execute. */
965 /*
966 * Command line arguments. args[0] should be the path to the program. On
967 * Windows this uses CreateProcess which concatenates the arguments into a
968 * string this can cause some strange errors. See the note at
969 * windows_verbatim_arguments.
970 */
971 char** args;
972 /*
973 * This will be set as the environ variable in the subprocess. If this is
974 * NULL then the parents environ will be used.
975 */
976 char** env;
977 /*
978 * If non-null this represents a directory the subprocess should execute
979 * in. Stands for current working directory.
980 */
981 const char* cwd;
982 /*
983 * Various flags that control how uv_spawn() behaves. See the definition of
984 * `enum uv_process_flags` below.
985 */
986 unsigned int flags;
987 /*
988 * The `stdio` field points to an array of uv_stdio_container_t structs that
989 * describe the file descriptors that will be made available to the child
990 * process. The convention is that stdio[0] points to stdin, fd 1 is used for
991 * stdout, and fd 2 is stderr.
992 *
993 * Note that on windows file descriptors greater than 2 are available to the
994 * child process only if the child processes uses the MSVCRT runtime.
995 */
998 /*
999 * Libuv can change the child process' user/group id. This happens only when
1000 * the appropriate bits are set in the flags fields. This is not supported on
1001 * windows; uv_spawn() will fail and set the error to UV_ENOTSUP.
1002 */
1006
1007/*
1008 * These are the flags that can be used for the uv_process_options.flags field.
1009 */
1011 /*
1012 * Set the child process' user id. The user id is supplied in the `uid` field
1013 * of the options struct. This does not work on windows; setting this flag
1014 * will cause uv_spawn() to fail.
1015 */
1017 /*
1018 * Set the child process' group id. The user id is supplied in the `gid`
1019 * field of the options struct. This does not work on windows; setting this
1020 * flag will cause uv_spawn() to fail.
1021 */
1023 /*
1024 * Do not wrap any arguments in quotes, or perform any other escaping, when
1025 * converting the argument list into a command line string. This option is
1026 * only meaningful on Windows systems. On Unix it is silently ignored.
1027 */
1029 /*
1030 * Spawn the child process in a detached state - this will make it a process
1031 * group leader, and will effectively enable the child to keep running after
1032 * the parent exits. Note that the child process will still keep the
1033 * parent's event loop alive unless the parent process calls uv_unref() on
1034 * the child's process handle.
1035 */
1037 /*
1038 * Hide the subprocess window that would normally be created. This option is
1039 * only meaningful on Windows systems. On Unix it is silently ignored.
1040 */
1042 /*
1043 * Hide the subprocess console window that would normally be created. This
1044 * option is only meaningful on Windows systems. On Unix it is silently
1045 * ignored.
1046 */
1048 /*
1049 * Hide the subprocess GUI window that would normally be created. This
1050 * option is only meaningful on Windows systems. On Unix it is silently
1051 * ignored.
1052 */
1055
1056/*
1057 * uv_process_t is a subclass of uv_handle_t.
1058 */
1062 int pid;
1064};
1065
1067 uv_process_t* handle,
1068 const uv_process_options_t* options);
1070UV_EXTERN int uv_kill(int pid, int signum);
1072
1073
1074/*
1075 * uv_work_t is a subclass of uv_req_t.
1076 */
1083};
1084
1086 uv_work_t* req,
1087 uv_work_cb work_cb,
1088 uv_after_work_cb after_work_cb);
1089
1091
1092
1094 uint64_t user; /* milliseconds */
1095 uint64_t nice; /* milliseconds */
1096 uint64_t sys; /* milliseconds */
1097 uint64_t idle; /* milliseconds */
1098 uint64_t irq; /* milliseconds */
1099};
1100
1102 char* model;
1105};
1106
1108 char* name;
1109 char phys_addr[6];
1111 union {
1112 struct sockaddr_in address4;
1113 struct sockaddr_in6 address6;
1115 union {
1116 struct sockaddr_in netmask4;
1117 struct sockaddr_in6 netmask6;
1119};
1120
1123 unsigned long uid;
1124 unsigned long gid;
1125 char* shell;
1126 char* homedir;
1127};
1128
1130 char sysname[256];
1131 char release[256];
1132 char version[256];
1133 char machine[256];
1134 /* This struct does not contain the nodename and domainname fields present in
1135 the utsname type. domainname is a GNU extension. Both fields are referred
1136 to as meaningless in the docs. */
1137};
1138
1148};
1149
1150typedef enum {
1160
1162 const char* name;
1164};
1165
1166UV_EXTERN char** uv_setup_args(int argc, char** argv);
1168UV_EXTERN int uv_set_process_title(const char* title);
1170UV_EXTERN int uv_uptime(double* uptime);
1173
1174typedef struct {
1177} uv_timeval_t;
1178
1179typedef struct {
1183
1184typedef struct {
1185 uv_timeval_t ru_utime; /* user CPU time used */
1186 uv_timeval_t ru_stime; /* system CPU time used */
1187 uint64_t ru_maxrss; /* maximum resident set size */
1188 uint64_t ru_ixrss; /* integral shared memory size */
1189 uint64_t ru_idrss; /* integral unshared data size */
1190 uint64_t ru_isrss; /* integral unshared stack size */
1191 uint64_t ru_minflt; /* page reclaims (soft page faults) */
1192 uint64_t ru_majflt; /* page faults (hard page faults) */
1193 uint64_t ru_nswap; /* swaps */
1194 uint64_t ru_inblock; /* block input operations */
1195 uint64_t ru_oublock; /* block output operations */
1196 uint64_t ru_msgsnd; /* IPC messages sent */
1197 uint64_t ru_msgrcv; /* IPC messages received */
1198 uint64_t ru_nsignals; /* signals received */
1199 uint64_t ru_nvcsw; /* voluntary context switches */
1200 uint64_t ru_nivcsw; /* involuntary context switches */
1201} uv_rusage_t;
1202
1204
1206UV_EXTERN int uv_os_tmpdir(char* buffer, size_t* size);
1211
1212#if defined(__PASE__)
1213/* On IBM i PASE, the highest process priority is -10 */
1214# define UV_PRIORITY_LOW 39 /* RUNPTY(99) */
1215# define UV_PRIORITY_BELOW_NORMAL 15 /* RUNPTY(50) */
1216# define UV_PRIORITY_NORMAL 0 /* RUNPTY(20) */
1217# define UV_PRIORITY_ABOVE_NORMAL -4 /* RUNTY(12) */
1218# define UV_PRIORITY_HIGH -7 /* RUNPTY(6) */
1219# define UV_PRIORITY_HIGHEST -10 /* RUNPTY(1) */
1220#else
1221# define UV_PRIORITY_LOW 19
1222# define UV_PRIORITY_BELOW_NORMAL 10
1223# define UV_PRIORITY_NORMAL 0
1224# define UV_PRIORITY_ABOVE_NORMAL -7
1225# define UV_PRIORITY_HIGH -14
1226# define UV_PRIORITY_HIGHEST -20
1227#endif
1228
1229UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int* priority);
1230UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority);
1231
1235
1237 int* count);
1239 int count);
1240
1242 char* name;
1243 char* value;
1244};
1245
1248UV_EXTERN int uv_os_getenv(const char* name, char* buffer, size_t* size);
1249UV_EXTERN int uv_os_setenv(const char* name, const char* value);
1250UV_EXTERN int uv_os_unsetenv(const char* name);
1251
1252#ifdef MAXHOSTNAMELEN
1253# define UV_MAXHOSTNAMESIZE (MAXHOSTNAMELEN + 1)
1254#else
1255 /*
1256 Fallback for the maximum hostname size, including the null terminator. The
1257 Windows gethostname() documentation states that 256 bytes will always be
1258 large enough to hold the null-terminated hostname.
1259 */
1260# define UV_MAXHOSTNAMESIZE 256
1261#endif
1262
1264
1266
1268
1269typedef enum {
1309
1310struct uv_dir_s {
1312 size_t nentries;
1313 void* reserved[4];
1315};
1316
1317/* uv_fs_t is a subclass of uv_req_t. */
1318struct uv_fs_s {
1324 void* ptr;
1325 const char* path;
1326 uv_stat_t statbuf; /* Stores the result of uv_fs_stat() and uv_fs_fstat(). */
1328};
1329
1336
1339 uv_fs_t* req,
1340 uv_file file,
1341 uv_fs_cb cb);
1343 uv_fs_t* req,
1344 const char* path,
1345 int flags,
1346 int mode,
1347 uv_fs_cb cb);
1349 uv_fs_t* req,
1350 uv_file file,
1351 const uv_buf_t bufs[],
1352 unsigned int nbufs,
1353 int64_t offset,
1354 uv_fs_cb cb);
1356 uv_fs_t* req,
1357 const char* path,
1358 uv_fs_cb cb);
1360 uv_fs_t* req,
1361 uv_file file,
1362 const uv_buf_t bufs[],
1363 unsigned int nbufs,
1364 int64_t offset,
1365 uv_fs_cb cb);
1366/*
1367 * This flag can be used with uv_fs_copyfile() to return an error if the
1368 * destination already exists.
1369 */
1370#define UV_FS_COPYFILE_EXCL 0x0001
1371
1372/*
1373 * This flag can be used with uv_fs_copyfile() to attempt to create a reflink.
1374 * If copy-on-write is not supported, a fallback copy mechanism is used.
1375 */
1376#define UV_FS_COPYFILE_FICLONE 0x0002
1377
1378/*
1379 * This flag can be used with uv_fs_copyfile() to attempt to create a reflink.
1380 * If copy-on-write is not supported, an error is returned.
1381 */
1382#define UV_FS_COPYFILE_FICLONE_FORCE 0x0004
1383
1385 uv_fs_t* req,
1386 const char* path,
1387 const char* new_path,
1388 int flags,
1389 uv_fs_cb cb);
1391 uv_fs_t* req,
1392 const char* path,
1393 int mode,
1394 uv_fs_cb cb);
1396 uv_fs_t* req,
1397 const char* tpl,
1398 uv_fs_cb cb);
1400 uv_fs_t* req,
1401 const char* tpl,
1402 uv_fs_cb cb);
1404 uv_fs_t* req,
1405 const char* path,
1406 uv_fs_cb cb);
1408 uv_fs_t* req,
1409 const char* path,
1410 int flags,
1411 uv_fs_cb cb);
1413 uv_dirent_t* ent);
1415 uv_fs_t* req,
1416 const char* path,
1417 uv_fs_cb cb);
1419 uv_fs_t* req,
1420 uv_dir_t* dir,
1421 uv_fs_cb cb);
1423 uv_fs_t* req,
1424 uv_dir_t* dir,
1425 uv_fs_cb cb);
1427 uv_fs_t* req,
1428 const char* path,
1429 uv_fs_cb cb);
1431 uv_fs_t* req,
1432 uv_file file,
1433 uv_fs_cb cb);
1435 uv_fs_t* req,
1436 const char* path,
1437 const char* new_path,
1438 uv_fs_cb cb);
1440 uv_fs_t* req,
1441 uv_file file,
1442 uv_fs_cb cb);
1444 uv_fs_t* req,
1445 uv_file file,
1446 uv_fs_cb cb);
1448 uv_fs_t* req,
1449 uv_file file,
1450 int64_t offset,
1451 uv_fs_cb cb);
1453 uv_fs_t* req,
1454 uv_file out_fd,
1455 uv_file in_fd,
1456 int64_t in_offset,
1457 size_t length,
1458 uv_fs_cb cb);
1460 uv_fs_t* req,
1461 const char* path,
1462 int mode,
1463 uv_fs_cb cb);
1465 uv_fs_t* req,
1466 const char* path,
1467 int mode,
1468 uv_fs_cb cb);
1470 uv_fs_t* req,
1471 const char* path,
1472 double atime,
1473 double mtime,
1474 uv_fs_cb cb);
1476 uv_fs_t* req,
1477 uv_file file,
1478 double atime,
1479 double mtime,
1480 uv_fs_cb cb);
1482 uv_fs_t* req,
1483 const char* path,
1484 double atime,
1485 double mtime,
1486 uv_fs_cb cb);
1488 uv_fs_t* req,
1489 const char* path,
1490 uv_fs_cb cb);
1492 uv_fs_t* req,
1493 const char* path,
1494 const char* new_path,
1495 uv_fs_cb cb);
1496
1497/*
1498 * This flag can be used with uv_fs_symlink() on Windows to specify whether
1499 * path argument points to a directory.
1500 */
1501#define UV_FS_SYMLINK_DIR 0x0001
1502
1503/*
1504 * This flag can be used with uv_fs_symlink() on Windows to specify whether
1505 * the symlink is to be created using junction points.
1506 */
1507#define UV_FS_SYMLINK_JUNCTION 0x0002
1508
1510 uv_fs_t* req,
1511 const char* path,
1512 const char* new_path,
1513 int flags,
1514 uv_fs_cb cb);
1516 uv_fs_t* req,
1517 const char* path,
1518 uv_fs_cb cb);
1520 uv_fs_t* req,
1521 const char* path,
1522 uv_fs_cb cb);
1524 uv_fs_t* req,
1525 uv_file file,
1526 int mode,
1527 uv_fs_cb cb);
1529 uv_fs_t* req,
1530 const char* path,
1531 uv_uid_t uid,
1532 uv_gid_t gid,
1533 uv_fs_cb cb);
1535 uv_fs_t* req,
1536 uv_file file,
1537 uv_uid_t uid,
1538 uv_gid_t gid,
1539 uv_fs_cb cb);
1541 uv_fs_t* req,
1542 const char* path,
1543 uv_uid_t uid,
1544 uv_gid_t gid,
1545 uv_fs_cb cb);
1547 uv_fs_t* req,
1548 const char* path,
1549 uv_fs_cb cb);
1550
1551
1554 UV_CHANGE = 2
1556
1557
1560 /* private */
1561 char* path;
1563};
1564
1565
1566/*
1567 * uv_fs_stat() based polling file watcher.
1568 */
1571 /* Private, don't touch. */
1573};
1574
1577 uv_fs_poll_cb poll_cb,
1578 const char* path,
1579 unsigned int interval);
1582 char* buffer,
1583 size_t* size);
1584
1585
1591};
1592
1595 uv_signal_cb signal_cb,
1596 int signum);
1598 uv_signal_cb signal_cb,
1599 int signum);
1601
1602UV_EXTERN void uv_loadavg(double avg[3]);
1603
1604
1605/*
1606 * Flags to be passed to uv_fs_event_start().
1607 */
1609 /*
1610 * By default, if the fs event watcher is given a directory name, we will
1611 * watch for all events in that directory. This flags overrides this behavior
1612 * and makes fs_event report only changes to the directory entry itself. This
1613 * flag does not affect individual files watched.
1614 * This flag is currently not implemented yet on any backend.
1615 */
1617
1618 /*
1619 * By default uv_fs_event will try to use a kernel interface such as inotify
1620 * or kqueue to detect events. This may not work on remote filesystems such
1621 * as NFS mounts. This flag makes fs_event fall back to calling stat() on a
1622 * regular interval.
1623 * This flag is currently not implemented yet on any backend.
1624 */
1626
1627 /*
1628 * By default, event watcher, when watching directory, is not registering
1629 * (is ignoring) changes in it's subdirectories.
1630 * This flag will override this behaviour on platforms that support it.
1631 */
1634
1635
1638 uv_fs_event_cb cb,
1639 const char* path,
1640 unsigned int flags);
1643 char* buffer,
1644 size_t* size);
1645
1646UV_EXTERN int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr);
1647UV_EXTERN int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr);
1648
1649UV_EXTERN int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size);
1650UV_EXTERN int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size);
1651UV_EXTERN int uv_ip_name(const struct sockaddr* src, char* dst, size_t size);
1652
1653UV_EXTERN int uv_inet_ntop(int af, const void* src, char* dst, size_t size);
1654UV_EXTERN int uv_inet_pton(int af, const char* src, void* dst);
1655
1656
1659 /* read-only */
1661 /* private */
1663 void* buf;
1664 size_t buflen;
1667};
1668
1670 uv_random_t* req,
1671 void *buf,
1672 size_t buflen,
1673 unsigned flags, /* For future extension; must be 0. */
1674 uv_random_cb cb);
1675
1676#if defined(IF_NAMESIZE)
1677# define UV_IF_NAMESIZE (IF_NAMESIZE + 1)
1678#elif defined(IFNAMSIZ)
1679# define UV_IF_NAMESIZE (IFNAMSIZ + 1)
1680#else
1681# define UV_IF_NAMESIZE (16 + 1)
1682#endif
1683
1684UV_EXTERN int uv_if_indextoname(unsigned int ifindex,
1685 char* buffer,
1686 size_t* size);
1687UV_EXTERN int uv_if_indextoiid(unsigned int ifindex,
1688 char* buffer,
1689 size_t* size);
1690
1691UV_EXTERN int uv_exepath(char* buffer, size_t* size);
1692
1693UV_EXTERN int uv_cwd(char* buffer, size_t* size);
1694
1695UV_EXTERN int uv_chdir(const char* dir);
1696
1700
1702UV_EXTERN void uv_sleep(unsigned int msec);
1703
1705
1706UV_EXTERN int uv_dlopen(const char* filename, uv_lib_t* lib);
1708UV_EXTERN int uv_dlsym(uv_lib_t* lib, const char* name, void** ptr);
1709UV_EXTERN const char* uv_dlerror(const uv_lib_t* lib);
1710
1717
1726
1727UV_EXTERN int uv_sem_init(uv_sem_t* sem, unsigned int value);
1732
1737
1738UV_EXTERN int uv_barrier_init(uv_barrier_t* barrier, unsigned int count);
1741
1745 uint64_t timeout);
1746
1747UV_EXTERN void uv_once(uv_once_t* guard, void (*callback)(void));
1748
1753
1755
1756typedef void (*uv_thread_cb)(void* arg);
1757
1759
1760typedef enum {
1764
1766 unsigned int flags;
1768 /* More fields may be added at any time. */
1769};
1770
1772
1774 const uv_thread_options_t* params,
1775 uv_thread_cb entry,
1776 void* arg);
1780
1781/* The presence of these unions force similar struct layout. */
1782#define XX(_, name) uv_ ## name ## _t name;
1785};
1786
1789};
1790#undef XX
1791
1792
1794 /* User data - use this for whatever. */
1795 void* data;
1796 /* Loop reference counting. */
1797 unsigned int active_handles;
1799 union {
1800 void* unused;
1801 unsigned int count;
1803 /* Internal storage for future extensions. */
1805 /* Internal flag to signal loop stop. */
1806 unsigned int stop_flag;
1808};
1809
1812
1813/* Don't export the private CPP symbols. */
1814#undef UV_HANDLE_TYPE_PRIVATE
1815#undef UV_REQ_TYPE_PRIVATE
1816#undef UV_REQ_PRIVATE_FIELDS
1817#undef UV_STREAM_PRIVATE_FIELDS
1818#undef UV_TCP_PRIVATE_FIELDS
1819#undef UV_PREPARE_PRIVATE_FIELDS
1820#undef UV_CHECK_PRIVATE_FIELDS
1821#undef UV_IDLE_PRIVATE_FIELDS
1822#undef UV_ASYNC_PRIVATE_FIELDS
1823#undef UV_TIMER_PRIVATE_FIELDS
1824#undef UV_GETADDRINFO_PRIVATE_FIELDS
1825#undef UV_GETNAMEINFO_PRIVATE_FIELDS
1826#undef UV_FS_REQ_PRIVATE_FIELDS
1827#undef UV_WORK_PRIVATE_FIELDS
1828#undef UV_FS_EVENT_PRIVATE_FIELDS
1829#undef UV_SIGNAL_PRIVATE_FIELDS
1830#undef UV_LOOP_PRIVATE_FIELDS
1831#undef UV_LOOP_PRIVATE_PLATFORM_FIELDS
1832#undef UV__ERR
1833
1834#endif /* UV_H */
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
Definition: ArrayCwiseUnaryOps.h:66
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
\rst A contiguous memory buffer with an optional growing ability.
Definition: core.h:862
Definition: core.h:1240
constexpr auto count() -> size_t
Definition: core.h:1204
type
Definition: core.h:575
auto ptr(T p) -> const void *
\rst Converts p to const void* for pointer formatting.
Definition: format.h:3823
EIGEN_CONSTEXPR Index size(const T &x)
Definition: Meta.h:479
::uint64_t uint64_t
Definition: Meta.h:58
::int32_t int32_t
Definition: Meta.h:57
::int64_t int64_t
Definition: Meta.h:59
::std::mutex mutex
Definition: mutex.h:17
flags
Definition: http_parser.h:206
Definition: format.h:1552
Definition: threadpool.h:30
struct uv_loop_s * loop
Definition: threadpool.h:33
Definition: uv.h:852
Definition: unix.h:146
It should be possible to cast uv_buf_t[] to WSABUF[] see http://msdn.microsoft.com/en-us/library/ms74...
Definition: unix.h:113
Definition: uv.h:832
Definition: uv.h:590
uv_stream_t * handle
Definition: uv.h:593
UV_REQ_FIELDS uv_connect_cb cb
Definition: uv.h:592
Definition: uv.h:1101
struct uv_cpu_times_s cpu_times
Definition: uv.h:1104
char * model
Definition: uv.h:1102
int speed
Definition: uv.h:1103
Definition: uv.h:1093
uint64_t nice
Definition: uv.h:1095
uint64_t sys
Definition: uv.h:1096
uint64_t idle
Definition: uv.h:1097
uint64_t user
Definition: uv.h:1094
uint64_t irq
Definition: uv.h:1098
Definition: uv.h:1310
uv_dirent_t * dirents
Definition: uv.h:1311
void * reserved[4]
Definition: uv.h:1313
size_t nentries
Definition: uv.h:1312
Definition: uv.h:1161
uv_dirent_type_t type
Definition: uv.h:1163
const char * name
Definition: uv.h:1162
Definition: uv.h:1241
char * value
Definition: uv.h:1243
char * name
Definition: uv.h:1242
Definition: uv.h:1558
UV_HANDLE_FIELDS char * path
Definition: uv.h:1561
Definition: uv.h:1569
UV_HANDLE_FIELDS void * poll_ctx
Definition: uv.h:1572
Definition: uv.h:1318
uv_stat_t statbuf
Definition: uv.h:1326
const char * path
Definition: uv.h:1325
void * ptr
Definition: uv.h:1324
ssize_t result
Definition: uv.h:1323
UV_REQ_FIELDS uv_fs_type fs_type
Definition: uv.h:1320
uv_loop_t * loop
Definition: uv.h:1321
uv_fs_cb cb
Definition: uv.h:1322
Definition: uv.h:890
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:893
Definition: uv.h:913
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:916
Definition: uv.h:441
Definition: uv.h:842
Definition: uv.h:1107
int is_internal
Definition: uv.h:1110
struct sockaddr_in6 netmask6
Definition: uv.h:1117
struct sockaddr_in6 address6
Definition: uv.h:1113
struct sockaddr_in netmask4
Definition: uv.h:1116
struct sockaddr_in address4
Definition: uv.h:1112
char * name
Definition: uv.h:1108
union uv_interface_address_s::@764 netmask
union uv_interface_address_s::@763 address
char phys_addr[6]
Definition: uv.h:1109
Definition: win.h:285
Definition: unix.h:208
Definition: uv.h:1793
unsigned int stop_flag
Definition: uv.h:1806
void * internal_fields
Definition: uv.h:1804
void * data
Definition: uv.h:1795
void * handle_queue[2]
Definition: uv.h:1798
unsigned int count
Definition: uv.h:1801
union uv_loop_s::@765 active_reqs
unsigned int active_handles
Definition: uv.h:1797
void * unused
Definition: uv.h:1800
Definition: uv.h:1121
char * username
Definition: uv.h:1122
char * homedir
Definition: uv.h:1126
unsigned long uid
Definition: uv.h:1123
unsigned long gid
Definition: uv.h:1124
char * shell
Definition: uv.h:1125
Definition: uv.h:775
UV_HANDLE_FIELDS UV_STREAM_FIELDS int ipc
Definition: uv.h:778
Definition: uv.h:801
UV_HANDLE_FIELDS uv_poll_cb poll_cb
Definition: uv.h:803
Definition: uv.h:822
Definition: uv.h:962
uv_uid_t uid
Definition: uv.h:1003
const char * file
Definition: uv.h:964
char ** env
Definition: uv.h:976
uv_stdio_container_t * stdio
Definition: uv.h:997
unsigned int flags
Definition: uv.h:986
char ** args
Definition: uv.h:971
int stdio_count
Definition: uv.h:996
uv_exit_cb exit_cb
Definition: uv.h:963
uv_gid_t gid
Definition: uv.h:1004
const char * cwd
Definition: uv.h:981
Definition: uv.h:1059
int pid
Definition: uv.h:1062
UV_HANDLE_FIELDS uv_exit_cb exit_cb
Definition: uv.h:1061
Definition: uv.h:1657
void * buf
Definition: uv.h:1663
struct uv__work work_req
Definition: uv.h:1666
size_t buflen
Definition: uv.h:1664
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:1660
int status
Definition: uv.h:1662
uv_random_cb cb
Definition: uv.h:1665
Definition: uv.h:404
Definition: uv.h:1184
uint64_t ru_msgrcv
Definition: uv.h:1197
uv_timeval_t ru_utime
Definition: uv.h:1185
uint64_t ru_nsignals
Definition: uv.h:1198
uint64_t ru_ixrss
Definition: uv.h:1188
uint64_t ru_idrss
Definition: uv.h:1189
uv_timeval_t ru_stime
Definition: uv.h:1186
uint64_t ru_isrss
Definition: uv.h:1190
uint64_t ru_minflt
Definition: uv.h:1191
uint64_t ru_majflt
Definition: uv.h:1192
uint64_t ru_nivcsw
Definition: uv.h:1200
uint64_t ru_oublock
Definition: uv.h:1195
uint64_t ru_nswap
Definition: uv.h:1193
uint64_t ru_maxrss
Definition: uv.h:1187
uint64_t ru_inblock
Definition: uv.h:1194
uint64_t ru_msgsnd
Definition: uv.h:1196
uint64_t ru_nvcsw
Definition: uv.h:1199
Definition: win.h:267
Definition: uv.h:417
UV_REQ_FIELDS uv_stream_t * handle
Definition: uv.h:419
uv_shutdown_cb cb
Definition: uv.h:420
Definition: uv.h:1586
int signum
Definition: uv.h:1589
UV_HANDLE_FIELDS uv_signal_cb signal_cb
Definition: uv.h:1588
Definition: uv.h:346
uint64_t st_nlink
Definition: uv.h:349
uint64_t st_ino
Definition: uv.h:353
uint64_t st_flags
Definition: uv.h:357
uint64_t st_mode
Definition: uv.h:348
uv_timespec_t st_birthtim
Definition: uv.h:362
uint64_t st_size
Definition: uv.h:354
uv_timespec_t st_ctim
Definition: uv.h:361
uint64_t st_blocks
Definition: uv.h:356
uv_timespec_t st_mtim
Definition: uv.h:360
uv_timespec_t st_atim
Definition: uv.h:359
uint64_t st_gid
Definition: uv.h:351
uint64_t st_gen
Definition: uv.h:358
uint64_t st_dev
Definition: uv.h:347
uint64_t st_uid
Definition: uv.h:350
uint64_t st_rdev
Definition: uv.h:352
uint64_t st_blksize
Definition: uv.h:355
Definition: uv.h:1139
uint64_t f_files
Definition: uv.h:1145
uint64_t f_type
Definition: uv.h:1140
uint64_t f_bsize
Definition: uv.h:1141
uint64_t f_bfree
Definition: uv.h:1143
uint64_t f_ffree
Definition: uv.h:1146
uint64_t f_bavail
Definition: uv.h:1144
uint64_t f_spare[4]
Definition: uv.h:1147
uint64_t f_blocks
Definition: uv.h:1142
Definition: uv.h:953
uv_stream_t * stream
Definition: uv.h:957
union uv_stdio_container_s::@762 data
int fd
Definition: uv.h:958
uv_stdio_flags flags
Definition: uv.h:954
Definition: uv.h:497
Definition: uv.h:554
Definition: uv.h:1765
unsigned int flags
Definition: uv.h:1766
size_t stack_size
Definition: uv.h:1767
Definition: uv.h:868
Definition: uv.h:340
long tv_sec
Definition: uv.h:341
long tv_nsec
Definition: uv.h:342
Definition: uv.h:1179
int64_t tv_sec
Definition: uv.h:1180
int32_t tv_usec
Definition: uv.h:1181
Definition: uv.h:1174
long tv_usec
Definition: uv.h:1176
long tv_sec
Definition: uv.h:1175
Definition: uv.h:728
Definition: uv.h:652
size_t send_queue_count
Definition: uv.h:663
UV_HANDLE_FIELDS size_t send_queue_size
Definition: uv.h:659
Definition: uv.h:668
UV_REQ_FIELDS uv_udp_t * handle
Definition: uv.h:670
uv_udp_send_cb cb
Definition: uv.h:671
Definition: uv.h:1129
char version[256]
Definition: uv.h:1132
char machine[256]
Definition: uv.h:1133
char release[256]
Definition: uv.h:1131
char sysname[256]
Definition: uv.h:1130
Definition: uv.h:1077
uv_after_work_cb after_work_cb
Definition: uv.h:1081
uv_work_cb work_cb
Definition: uv.h:1080
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:1079
Definition: uv.h:532
uv_stream_t * send_handle
Definition: uv.h:535
uv_stream_t * handle
Definition: uv.h:536
UV_REQ_FIELDS uv_write_cb cb
Definition: uv.h:534
Definition: uv.h:1783
Definition: uv.h:1787
Definition: win.h:257
#define UV_WORK_PRIVATE_FIELDS
Definition: unix.h:366
#define UV_FS_PRIVATE_FIELDS
Definition: unix.h:351
uid_t uv_uid_t
Definition: unix.h:159
UV_PLATFORM_SEM_T uv_sem_t
Definition: unix.h:129
#define UV_POLL_PRIVATE_FIELDS
Definition: unix.h:302
#define UV_SHUTDOWN_PRIVATE_FIELDS
Definition: unix.h:263
#define UV_TIMER_PRIVATE_FIELDS
Definition: unix.h:322
#define UV_UDP_SEND_PRIVATE_FIELDS
Definition: unix.h:265
#define UV_DIR_PRIVATE_FIELDS
Definition: unix.h:163
int uv_file
Definition: unix.h:118
pid_t uv_pid_t
Definition: unix.h:121
#define UV_WRITE_PRIVATE_FIELDS
Definition: unix.h:252
#define UV_PROCESS_PRIVATE_FIELDS
Definition: unix.h:347
#define UV_IDLE_PRIVATE_FIELDS
Definition: unix.h:313
#define UV_PREPARE_PRIVATE_FIELDS
Definition: unix.h:305
#define UV_SIGNAL_PRIVATE_FIELDS
Definition: unix.h:373
#define UV_GETNAMEINFO_PRIVATE_FIELDS
Definition: unix.h:338
#define UV_CHECK_PRIVATE_FIELDS
Definition: unix.h:309
pthread_mutex_t uv_mutex_t
Definition: unix.h:127
pthread_t uv_thread_t
Definition: unix.h:126
#define UV_UDP_PRIVATE_FIELDS
Definition: unix.h:292
#define UV_TTY_PRIVATE_FIELDS
Definition: unix.h:369
#define UV_FS_EVENT_PRIVATE_FIELDS
Definition: unix.h:385
pthread_once_t uv_once_t
Definition: unix.h:125
#define UV_GETADDRINFO_PRIVATE_FIELDS
Definition: unix.h:329
#define UV_TCP_PRIVATE_FIELDS
Definition: unix.h:290
int uv_os_fd_t
Definition: unix.h:120
#define UV_CONNECT_PRIVATE_FIELDS
Definition: unix.h:260
#define UV_ASYNC_PRIVATE_FIELDS
Definition: unix.h:317
#define UV_LOOP_PRIVATE_FIELDS
Definition: unix.h:213
#define UV_PIPE_PRIVATE_FIELDS
Definition: unix.h:299
#define UV_REQ_TYPE_PRIVATE
Definition: unix.h:246
gid_t uv_gid_t
Definition: unix.h:158
int uv_os_sock_t
Definition: unix.h:119
#define UV_PRIVATE_REQ_TYPES
Definition: unix.h:250
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:335
uv_thread_create_flags
Definition: uv.h:1760
@ UV_THREAD_HAS_STACK_SIZE
Definition: uv.h:1762
@ UV_THREAD_NO_FLAGS
Definition: uv.h:1761
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)
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:929
@ UV_INHERIT_FD
Definition: uv.h:932
@ UV_CREATE_PIPE
Definition: uv.h:931
@ UV_WRITABLE_PIPE
Definition: uv.h:941
@ UV_IGNORE
Definition: uv.h:930
@ UV_OVERLAPPED_PIPE
Definition: uv.h:950
@ UV_INHERIT_STREAM
Definition: uv.h:933
@ UV_READABLE_PIPE
Definition: uv.h:940
@ UV_NONBLOCK_PIPE
Definition: uv.h:949
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:425
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:251
@ UV_RUN_NOWAIT
Definition: uv.h:254
@ UV_RUN_ONCE
Definition: uv.h:253
@ UV_RUN_DEFAULT
Definition: uv.h:252
void(* uv_write_cb)(uv_write_t *req, int status)
Definition: uv.h:312
uv_process_flags
Definition: uv.h:1010
@ UV_PROCESS_WINDOWS_HIDE_CONSOLE
Definition: uv.h:1047
@ UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS
Definition: uv.h:1028
@ UV_PROCESS_WINDOWS_HIDE
Definition: uv.h:1041
@ UV_PROCESS_SETUID
Definition: uv.h:1016
@ UV_PROCESS_SETGID
Definition: uv.h:1022
@ UV_PROCESS_DETACHED
Definition: uv.h:1036
@ UV_PROCESS_WINDOWS_HIDE_GUI
Definition: uv.h:1053
void(* uv_connection_cb)(uv_stream_t *server, int status)
Definition: uv.h:315
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:328
void *(* uv_malloc_func)(size_t size)
Definition: uv.h:261
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:734
@ UV_TTY_MODE_IO
Definition: uv.h:740
@ UV_TTY_MODE_NORMAL
Definition: uv.h:736
@ UV_TTY_MODE_RAW
Definition: uv.h:738
void(* uv_fs_event_cb)(uv_fs_event_t *handle, const char *filename, int events, int status)
Definition: uv.h:366
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:371
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:186
@ UV_FILE
Definition: uv.h:191
@ UV_HANDLE_TYPE_MAX
Definition: uv.h:192
@ UV_UNKNOWN_HANDLE
Definition: uv.h:187
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:264
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:602
@ UV_UDP_LINUX_RECVERR
Definition: uv.h:637
@ UV_UDP_PARTIAL
Definition: uv.h:609
@ UV_UDP_MMSG_FREE
Definition: uv.h:629
@ UV_UDP_MMSG_CHUNK
Definition: uv.h:623
@ UV_UDP_IPV6ONLY
Definition: uv.h:604
@ UV_UDP_RECVMMSG
Definition: uv.h:641
@ UV_UDP_REUSEADDR
Definition: uv.h:618
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_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:569
@ UV_TCP_IPV6ONLY
Definition: uv.h:571
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_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:320
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:327
UV_EXTERN int uv_tcp_close_reset(uv_tcp_t *handle, uv_close_cb close_cb)
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_is_writable(const uv_stream_t *handle)
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:1269
@ UV_FS_STATFS
Definition: uv.h:1305
@ UV_FS_CUSTOM
Definition: uv.h:1271
@ UV_FS_SYMLINK
Definition: uv.h:1295
@ UV_FS_FDATASYNC
Definition: uv.h:1287
@ UV_FS_FCHMOD
Definition: uv.h:1285
@ UV_FS_SCANDIR
Definition: uv.h:1293
@ UV_FS_FTRUNCATE
Definition: uv.h:1280
@ UV_FS_READDIR
Definition: uv.h:1303
@ UV_FS_SENDFILE
Definition: uv.h:1276
@ UV_FS_OPENDIR
Definition: uv.h:1302
@ UV_FS_RENAME
Definition: uv.h:1292
@ UV_FS_READLINK
Definition: uv.h:1296
@ UV_FS_LUTIME
Definition: uv.h:1307
@ UV_FS_STAT
Definition: uv.h:1277
@ UV_FS_CHOWN
Definition: uv.h:1297
@ UV_FS_FUTIME
Definition: uv.h:1282
@ UV_FS_CHMOD
Definition: uv.h:1284
@ UV_FS_REALPATH
Definition: uv.h:1299
@ UV_FS_UNKNOWN
Definition: uv.h:1270
@ UV_FS_UNLINK
Definition: uv.h:1288
@ UV_FS_MKSTEMP
Definition: uv.h:1306
@ UV_FS_RMDIR
Definition: uv.h:1289
@ UV_FS_CLOSEDIR
Definition: uv.h:1304
@ UV_FS_MKDTEMP
Definition: uv.h:1291
@ UV_FS_CLOSE
Definition: uv.h:1273
@ UV_FS_FSYNC
Definition: uv.h:1286
@ UV_FS_FCHOWN
Definition: uv.h:1298
@ UV_FS_READ
Definition: uv.h:1274
@ UV_FS_COPYFILE
Definition: uv.h:1300
@ UV_FS_MKDIR
Definition: uv.h:1290
@ UV_FS_UTIME
Definition: uv.h:1281
@ UV_FS_ACCESS
Definition: uv.h:1283
@ UV_FS_FSTAT
Definition: uv.h:1279
@ UV_FS_LCHOWN
Definition: uv.h:1301
@ UV_FS_LSTAT
Definition: uv.h:1278
@ UV_FS_OPEN
Definition: uv.h:1272
@ UV_FS_WRITE
Definition: uv.h:1275
@ UV_FS_LINK
Definition: uv.h:1294
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 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:1756
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:379
@ UV_JOIN_GROUP
Definition: uv.h:381
@ UV_LEAVE_GROUP
Definition: uv.h:380
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:65
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:317
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:263
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)
#define UV_REQ_FIELDS
Definition: uv.h:394
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:743
@ UV_TTY_UNSUPPORTED
Definition: uv.h:752
@ UV_TTY_SUPPORTED
Definition: uv.h:748
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)
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)
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:331
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:1608
@ UV_FS_EVENT_RECURSIVE
Definition: uv.h:1632
@ UV_FS_EVENT_STAT
Definition: uv.h:1625
@ UV_FS_EVENT_WATCH_ENTRY
Definition: uv.h:1616
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:1552
@ UV_CHANGE
Definition: uv.h:1554
@ UV_RENAME
Definition: uv.h:1553
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:1782
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:321
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:645
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:318
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:309
void(* uv_udp_send_cb)(uv_udp_send_t *req, int status)
Definition: uv.h:644
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:306
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:262
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_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:48
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:167
void(* uv_signal_cb)(uv_signal_t *handle, int signum)
Definition: uv.h:376
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:1150
@ UV_DIRENT_FIFO
Definition: uv.h:1155
@ UV_DIRENT_CHAR
Definition: uv.h:1157
@ UV_DIRENT_DIR
Definition: uv.h:1153
@ UV_DIRENT_UNKNOWN
Definition: uv.h:1151
@ UV_DIRENT_BLOCK
Definition: uv.h:1158
@ UV_DIRENT_LINK
Definition: uv.h:1154
@ UV_DIRENT_FILE
Definition: uv.h:1152
@ UV_DIRENT_SOCKET
Definition: uv.h:1156
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:313
UV_EXTERN int uv_uptime(double *uptime)
uv_errno_t
Definition: uv.h:179
@ UV_ERRNO_MAX
Definition: uv.h:183
void(* uv_idle_cb)(uv_idle_t *handle)
Definition: uv.h:322
void(* uv_exit_cb)(uv_process_t *, int64_t exit_status, int term_signal)
Definition: uv.h:323
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:319
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_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:324
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)
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:195
@ UV_REQ_TYPE_MAX
Definition: uv.h:201
@ UV_UNKNOWN_REQ
Definition: uv.h:196
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:325
#define UV_HANDLE_TYPE_MAP(XX)
Definition: uv.h:149
UV_EXTERN uv_pid_t uv_os_getppid(void)
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:807
@ UV_WRITABLE
Definition: uv.h:809
@ UV_DISCONNECT
Definition: uv.h:810
@ UV_PRIORITIZED
Definition: uv.h:811
@ UV_READABLE
Definition: uv.h:808
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 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_pipe_open(uv_pipe_t *, uv_file file)
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:316
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:482
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:326
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_EXTERN int uv_fs_event_getpath(uv_fs_event_t *handle, char *buffer, size_t *size)
uv_loop_option
Definition: uv.h:246
@ UV_LOOP_BLOCK_SIGNAL
Definition: uv.h:247
@ UV_METRICS_IDLE_TIME
Definition: uv.h:248
void(* uv_shutdown_cb)(uv_shutdown_t *req, int status)
Definition: uv.h:314
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