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