summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_test_build.c
blob: aefd8c13d464337be141743fe6d69b046d9db2a3 (plain) (blame)
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
147
148
149
150
151
152
153

/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) NGINX, Inc.
 */


#include <nxt_main.h>


#if (NXT_TEST_BUILD_EPOLL)

int
epoll_create(int size)
{
    return -1;
}


int
epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
{
    return -1;
}


int
epoll_wait(int epfd, struct epoll_event *events, int nevents, int timeout)
{
    return -1;
}

int
eventfd(u_int initval, int flags)
{
    return -1;
}


int
signalfd(int fd, const sigset_t *mask, int flags)
{
    return -1;
}


int
accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
{
    return -1;
}

#endif


#if (NXT_TEST_BUILD_EVENTPORT)

int
port_create(void)
{
    return -1;
}


int
port_associate(int port, int source, uintptr_t object, int events, void *user)
{
    return -1;
}


int
port_dissociate(int port, int source, uintptr_t object)
{
    return -1;
}


int
port_send(int port, int events, void *user)
{
    return -1;
}


int port_getn(int port, port_event_t list[], uint_t max, uint_t *nget,
    const timespec_t *timeout)
{
    return -1;
}

#endif


#if (NXT_TEST_BUILD_POLLSET)

pollset_t
pollset_create(int maxfd)
{
    return -1;
}


int
pollset_destroy(pollset_t ps)
{
    return -1;
}


int
pollset_query(pollset_t ps, struct pollfd *pollfd_query)
{
    return -1;
}


int
pollset_ctl(pollset_t ps, struct poll_ctl *pollctl_array, int array_length)
{
    return -1;
}


int
pollset_poll(pollset_t ps, struct pollfd *polldata_array, int array_length,
    int timeout)
{
    return -1;
}

#endif


#if (NXT_TEST_BUILD_SOLARIS_SENDFILEV)

ssize_t sendfilev(int fd, const struct sendfilevec *vec,
    int sfvcnt, size_t *xferred)
{
    return -1;
}

#endif


#if (NXT_TEST_BUILD_AIX_SEND_FILE)

ssize_t send_file(int *s, struct sf_parms *sf_iobuf, uint_t flags)
{
    return -1;
}

#endif