xref: /unit/src/nxt_test_build.c (revision 0:a63ceefd6ab0)
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) NGINX, Inc.
5  */
6 
7 
8 #include <nxt_main.h>
9 
10 
11 #if (NXT_TEST_BUILD_EPOLL)
12 
13 int
epoll_create(int size)14 epoll_create(int size)
15 {
16     return -1;
17 }
18 
19 
20 int
epoll_ctl(int epfd,int op,int fd,struct epoll_event * event)21 epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
22 {
23     return -1;
24 }
25 
26 
27 int
epoll_wait(int epfd,struct epoll_event * events,int nevents,int timeout)28 epoll_wait(int epfd, struct epoll_event *events, int nevents, int timeout)
29 {
30     return -1;
31 }
32 
33 int
eventfd(u_int initval,int flags)34 eventfd(u_int initval, int flags)
35 {
36     return -1;
37 }
38 
39 
40 int
signalfd(int fd,const sigset_t * mask,int flags)41 signalfd(int fd, const sigset_t *mask, int flags)
42 {
43     return -1;
44 }
45 
46 
47 int
accept4(int sockfd,struct sockaddr * addr,socklen_t * addrlen,int flags)48 accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
49 {
50     return -1;
51 }
52 
53 #endif
54 
55 
56 #if (NXT_TEST_BUILD_EVENTPORT)
57 
58 int
port_create(void)59 port_create(void)
60 {
61     return -1;
62 }
63 
64 
65 int
port_associate(int port,int source,uintptr_t object,int events,void * user)66 port_associate(int port, int source, uintptr_t object, int events, void *user)
67 {
68     return -1;
69 }
70 
71 
72 int
port_dissociate(int port,int source,uintptr_t object)73 port_dissociate(int port, int source, uintptr_t object)
74 {
75     return -1;
76 }
77 
78 
79 int
port_send(int port,int events,void * user)80 port_send(int port, int events, void *user)
81 {
82     return -1;
83 }
84 
85 
port_getn(int port,port_event_t list[],uint_t max,uint_t * nget,const timespec_t * timeout)86 int port_getn(int port, port_event_t list[], uint_t max, uint_t *nget,
87     const timespec_t *timeout)
88 {
89     return -1;
90 }
91 
92 #endif
93 
94 
95 #if (NXT_TEST_BUILD_POLLSET)
96 
97 pollset_t
pollset_create(int maxfd)98 pollset_create(int maxfd)
99 {
100     return -1;
101 }
102 
103 
104 int
pollset_destroy(pollset_t ps)105 pollset_destroy(pollset_t ps)
106 {
107     return -1;
108 }
109 
110 
111 int
pollset_query(pollset_t ps,struct pollfd * pollfd_query)112 pollset_query(pollset_t ps, struct pollfd *pollfd_query)
113 {
114     return -1;
115 }
116 
117 
118 int
pollset_ctl(pollset_t ps,struct poll_ctl * pollctl_array,int array_length)119 pollset_ctl(pollset_t ps, struct poll_ctl *pollctl_array, int array_length)
120 {
121     return -1;
122 }
123 
124 
125 int
pollset_poll(pollset_t ps,struct pollfd * polldata_array,int array_length,int timeout)126 pollset_poll(pollset_t ps, struct pollfd *polldata_array, int array_length,
127     int timeout)
128 {
129     return -1;
130 }
131 
132 #endif
133 
134 
135 #if (NXT_TEST_BUILD_SOLARIS_SENDFILEV)
136 
sendfilev(int fd,const struct sendfilevec * vec,int sfvcnt,size_t * xferred)137 ssize_t sendfilev(int fd, const struct sendfilevec *vec,
138     int sfvcnt, size_t *xferred)
139 {
140     return -1;
141 }
142 
143 #endif
144 
145 
146 #if (NXT_TEST_BUILD_AIX_SEND_FILE)
147 
send_file(int * s,struct sf_parms * sf_iobuf,uint_t flags)148 ssize_t send_file(int *s, struct sf_parms *sf_iobuf, uint_t flags)
149 {
150     return -1;
151 }
152 
153 #endif
154