1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
#include "uv.h"
#include "internal.h"
void uv__process_title_cleanup(void) {
}
void uv__threadpool_cleanup(void) {
}
int uv_udp_open(uv_udp_t* handle, uv_os_sock_t sock) {
return -EINVAL;
}
void uv__udp_close(uv_udp_t* handle) {
}
void uv__udp_finish_close(uv_udp_t* handle) {
}
void uv__fs_poll_close(uv_fs_poll_t* handle) {
}
int uv_async_init(uv_loop_t* loop, uv_async_t* handle, uv_async_cb async_cb) {
return 0;
}
void uv__async_close(uv_async_t* handle) {
}
int uv__async_fork(uv_loop_t* loop) {
return 0;
}
void uv__async_stop(uv_loop_t* loop) {
}
void uv__work_submit(uv_loop_t* loop, struct uv__work* w,
enum uv__work_kind kind,
void (*work)(struct uv__work* w),
void (*done)(struct uv__work* w, int status)) {
abort();
}
void uv__work_done(uv_async_t* handle) {
}
int uv__pthread_atfork(void (*prepare)(void), void (*parent)(void),
void (*child)(void)) {
return 0;
}
int uv__pthread_sigmask(int how, const sigset_t* set, sigset_t* oset) {
return 0;
}
int uv_mutex_init(uv_mutex_t* mutex) {
return 0;
}
void uv_mutex_destroy(uv_mutex_t* mutex) {
}
void uv_mutex_lock(uv_mutex_t* mutex) {
}
void uv_mutex_unlock(uv_mutex_t* mutex) {
}
int uv_rwlock_init(uv_rwlock_t* rwlock) {
return 0;
}
void uv_rwlock_destroy(uv_rwlock_t* rwlock) {
}
void uv_rwlock_wrlock(uv_rwlock_t* rwlock) {
}
void uv_rwlock_wrunlock(uv_rwlock_t* rwlock) {
}
void uv_rwlock_rdlock(uv_rwlock_t* rwlock) {
}
void uv_rwlock_rdunlock(uv_rwlock_t* rwlock) {
}
void uv_once(uv_once_t* guard, void (*callback)(void)) {
if (*guard) {
return;
}
*guard = 1;
callback();
}
#if defined(__linux__)
int uv__accept4(int fd, struct sockaddr* addr, socklen_t* addrlen, int flags) {
errno = ENOSYS;
return -1;
}
int uv__dup3(int oldfd, int newfd, int flags) {
errno = ENOSYS;
return -1;
}
int uv__pipe2(int pipefd[2], int flags) {
errno = ENOSYS;
return -1;
}
ssize_t uv__preadv(int fd, const struct iovec *iov, int iovcnt,
int64_t offset) {
errno = ENOSYS;
return -1;
}
ssize_t uv__pwritev(int fd, const struct iovec *iov, int iovcnt,
int64_t offset) {
errno = ENOSYS;
return -1;
}
int uv__utimesat(int dirfd, const char* path, const struct timespec times[2],
int flags) {
errno = ENOSYS;
return -1;
}
int uv__statx(int dirfd,
const char* path,
int flags,
unsigned int mask,
struct uv__statx* statxbuf) {
errno = ENOSYS;
return -1;
}
ssize_t uv__fs_copy_file_range(int fd_in, off_t* off_in,
int fd_out, off_t* off_out,
size_t len, unsigned int flags)
{
errno = ENOSYS;
return -1;
}
#endif
|