blob: 2b74b04446022f2ccf7a6c1ebe1be90d42ed0670 (
plain)
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
|
#ifndef mksocket_h
#define mksocket_h
#if HAVE_CONFIG_H
#include "soxwrap/soxwrap_config.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern int mksocket(const char *address,
const char *service,
int socktype,
int *fd1,
int *fd2,
int recycle_fd_func( int(*)(int, void *), void *, void *),
void *voidarg);
#if HAVE_SYS_POLL_H
#include <sys/poll.h>
#else
#define POLLIN 1
#define POLLPRI 2
#define POLLOUT 4
#define POLLERR 8
#define POLLHUP 16
#define POLLNVAL 32
struct pollfd {
int fd;
short events, revents;
};
extern int poll(struct pollfd *pfd, unsigned int n, int timeout);
#endif
#ifdef __cplusplus
};
#endif
#endif
|