summaryrefslogtreecommitdiffstats
path: root/include/fds.h
blob: cc213fe9297326de4bfbf52b54e14673fee7dcb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _FDS_H_
#define _FDS_H_

struct fds {
	int	maxfd;
	int	fd_array_len;
	int	fd_array_cur;
	int	*fd_array;
	fd_set	readfds;
};

struct fds *create_fds(void);
void destroy_fds(struct fds *);
int register_fd(int fd, struct fds *fds);

#endif