Searched refs:fds (Results 1 - 25 of 122) sorted by relevance

12345

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/conntrack-tools/conntrack-tools-1.4.0/include/
H A Dfds.h6 struct fds { struct
19 struct fds *create_fds(void);
20 void destroy_fds(struct fds *);
21 int register_fd(int fd, void (*cb)(void *data), void *data, struct fds *fds);
22 int unregister_fd(int fd, struct fds *fds);
H A Dsync.h8 struct fds;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/unix/
H A Dprivate.h16 inline void wxFD_ZERO(fd_set *fds) argument
20 FD_ZERO(fds);
24 inline void wxFD_SET(int fd, fd_set *fds) argument
28 FD_SET(fd, fds);
32 inline bool wxFD_ISSET(int fd, fd_set *fds) argument
36 return FD_ISSET(fd, fds);
40 #define wxFD_ZERO(fds) FD_ZERO(fds)
41 #define wxFD_SET(fd, fds) FD_SET(fd, fds)
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/conntrack-tools/conntrack-tools-1.4.0/src/
H A Dfds.c27 #include "fds.h"
29 struct fds *create_fds(void)
31 struct fds *fds; local
33 fds = (struct fds *) calloc(sizeof(struct fds), 1);
34 if (fds == NULL)
37 INIT_LIST_HEAD(&fds->list);
39 return fds;
42 destroy_fds(struct fds *fds) argument
54 register_fd(int fd, void (*cb)(void *data), void *data, struct fds *fds) argument
76 unregister_fd(int fd, struct fds *fds) argument
[all...]
H A Devent.c27 int fds[2]; member in struct:evfd
38 if (pipe(e->fds) == -1) {
42 fcntl(e->fds[0], F_SETFL, O_NONBLOCK);
49 close(e->fds[0]);
50 close(e->fds[1]);
56 return evfd->fds[0];
64 ret = write(evfd->fds[1], &data, sizeof(data));
75 ret = read(evfd->fds[0], &data, sizeof(data));
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/drivers/
H A Dubd_user.c34 int pid, fds[2], err; local
36 err = os_pipe(fds, 1, 1);
42 kernel_fd = fds[0];
43 *fd_out = fds[1];
61 os_close_file(fds[0]);
62 os_close_file(fds[1]);
H A Dslirp_user.c54 int fds[2], pid, err; local
56 err = os_pipe(fds, 1, 1);
60 err = slirp_tramp(pri->argw.argv, fds[1]);
67 pri->slave = fds[1];
72 return fds[0];
74 close(fds[0]);
75 close(fds[1]);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/avahi-0.6.25/avahi-core/
H A Dfdutil.c62 fd_set fds; local
65 FD_ZERO(&fds);
66 FD_SET(fd, &fds);
68 if ((r = select(fd+1, NULL, &fds, NULL, NULL)) < 0)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/bus/
H A Ddir-watch-dnotify.c40 static int fds[MAX_DIRS_TO_WATCH]; variable
70 fds[num_fds++] = fd;
86 if (close (fds[i]) != 0)
88 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
H A Ddir-watch-kqueue.c46 static int fds[MAX_DIRS_TO_WATCH]; variable
171 new_fds[i] = fds[j];
173 fds[j] = -1;
180 /* Any directory we find in "fds" with a nonzero fd must
185 if (fds[j] != -1)
187 close (fds[j]);
189 fds[j] = -1;
244 fds[i] = new_fds[i];
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/
H A Ddbus-socket-set-poll.c37 DBusPollFD *fds; member in struct:__anon1704
66 dbus_free (self->fds);
88 ret->fds = dbus_new0 (DBusPollFD, size_hint);
90 if (ret->fds == NULL)
126 _dbus_assert (self->fds[i].fd != fd);
131 DBusPollFD *new_fds = dbus_realloc (self->fds,
141 self->fds = new_fds;
154 self->fds[self->n_fds].fd = fd;
155 self->fds[self->n_fds].events = watch_flags_to_poll_events (flags);
172 if (self->fds[
[all...]
H A Ddbus-message-internal.h54 const int **fds,
77 int **fds,
80 int *fds,
103 void _dbus_check_fdleaks_leave (DBusInitialFDs *fds);
H A Ddbus-server-unix.c152 int n, *fds; local
155 n = _dbus_listen_systemd_sockets (&fds, error);
164 *server_p = _dbus_server_new_for_socket (fds, n, &address, NULL);
171 _dbus_close_socket (fds[i], NULL);
173 dbus_free (fds);
179 dbus_free (fds);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/avahi-0.6.25/avahi-core/
H A Dfdutil.c62 fd_set fds; local
65 FD_ZERO(&fds);
66 FD_SET(fd, &fds);
68 if ((r = select(fd+1, NULL, &fds, NULL, NULL)) < 0)
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/udhcp/
H A Ddhcprelay.c163 /* Creates listen sockets (in fds) and returns the number allocated. */
165 char *server, int *fds, int *max_socket)
170 fds[0] = listen_socket(/*INADDR_ANY,*/ 67, server);
171 *max_socket = fds[0];
178 fds[i] = listen_socket(/*NADDR_ANY,*/ 67, client[i-1]);
179 if (fds[i] > *max_socket)
180 *max_socket = fds[i];
192 static void pass_on(struct dhcpMessage *p, int packet_len, int client, int *fds, argument
211 res = sendto(fds[0], p, packet_len, 0, (struct sockaddr*)server_addr,
223 static void pass_back(struct dhcpMessage *p, int packet_len, int *fds) argument
164 init_sockets(char **client, int num_clients, char *server, int *fds, int *max_socket) argument
255 dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, struct sockaddr_in *server_addr, uint32_t gw_ip) argument
301 int i, num_sockets, max_socket, fds[MAX_INTERFACES]; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/utils/
H A Dsmbfilter.c132 fd_set fds; local
135 FD_ZERO(&fds);
136 if (s != -1) FD_SET(s, &fds);
137 if (c != -1) FD_SET(c, &fds);
139 num = sys_select_intr(MAX(s+1, c+1),&fds,NULL,NULL,NULL);
142 if (c != -1 && FD_ISSET(c, &fds)) {
153 if (s != -1 && FD_ISSET(s, &fds)) {
195 fd_set fds; local
200 FD_ZERO(&fds);
201 FD_SET(s, &fds);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/third-party/miniupnp/
H A Dreceivedata.c42 struct pollfd fds[1]; /* for the poll */ local
46 fds[0].fd = socket;
47 fds[0].events = POLLIN;
48 n = poll(fds, 1, timeout);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/os-Linux/
H A Dhelper.c48 int pid, fds[2], ret, n; local
54 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
62 ret = os_set_exec_close(fds[1]);
73 data.fd = fds[1];
84 close(fds[1]);
85 fds[1] = -1;
91 n = read(fds[0], &ret, sizeof(ret));
107 if (fds[1] != -1)
108 close(fds[1]);
109 close(fds[
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ncftp-3.2.5/source/sio/
H A DSSelect.c33 MY_FD_SET(fd, &ssp->fds);
53 if ((fd >= 0) && (MY_FD_ISSET(fd, &ssp->fds))) {
54 MY_FD_CLR(fd, &ssp->fds);
74 rc = select(resultssp->maxfd, NULL, SELECT_TYPE_ARG234 &resultssp->fds, NULL, SELECT_TYPE_ARG5 &resultssp->timeout);
88 rc = select(resultssp->maxfd, SELECT_TYPE_ARG234 &resultssp->fds, NULL, NULL, SELECT_TYPE_ARG5 &resultssp->timeout);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/
H A Dos_support.c268 int ff_poll(struct pollfd *fds, nfds_t numfds, int timeout) argument
290 if (fds[i].fd < 0)
293 if (fds[i].fd >= FD_SETSIZE) {
299 if (fds[i].events & POLLIN)
300 FD_SET(fds[i].fd, &read_set);
301 if (fds[i].events & POLLOUT)
302 FD_SET(fds[i].fd, &write_set);
303 if (fds[i].events & POLLERR)
304 FD_SET(fds[i].fd, &exception_set);
306 if (fds[
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavformat/
H A Dos_support.c265 int poll(struct pollfd *fds, nfds_t numfds, int timeout) argument
287 if (fds[i].fd < 0)
290 if (fds[i].fd >= FD_SETSIZE) {
296 if (fds[i].events & POLLIN) FD_SET(fds[i].fd, &read_set);
297 if (fds[i].events & POLLOUT) FD_SET(fds[i].fd, &write_set);
298 if (fds[i].events & POLLERR) FD_SET(fds[i].fd, &exception_set);
300 if (fds[
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/lib/
H A Dreadline.c56 fd_set fds; local
72 FD_ZERO(&fds);
73 FD_SET(fd,&fds);
75 if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) {
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libevent-1.4.14b-stable/
H A Ddevpoll.c63 struct evdevpoll *fds; member in struct:devpollop
162 devpollop->fds = calloc(nfiles, sizeof(struct evdevpoll));
163 if (devpollop->fds == NULL) {
173 free(devpollop->fds);
191 struct evdevpoll *fds; local
198 fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll));
199 if (fds == NULL) {
203 devpollop->fds = fds;
[all...]
H A Depoll.c65 struct evepoll *fds; member in struct:epollop
141 epollop->fds = calloc(INITIAL_NFILES, sizeof(struct evepoll));
142 if (epollop->fds == NULL) {
160 struct evepoll *fds; local
167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
168 if (fds == NULL) {
172 epollop->fds = fds;
173 memset(fds
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/
H A Dselect.c15 * of fds to overcome nfds < 16390 descriptors limit (Tigran Aivazian).
335 #define FDS_IN(fds, n) (fds->in + n)
336 #define FDS_OUT(fds, n) (fds->out + n)
337 #define FDS_EX(fds, n) (fds->ex + n)
339 #define BITS(fds, n) (*FDS_IN(fds, n)|*FDS_OUT(fds,
341 max_select_fd(unsigned long n, fd_set_bits *fds) argument
399 do_select(int n, fd_set_bits *fds, struct timespec *end_time) argument
527 fd_set_bits fds; local
875 struct pollfd *fds = walk->entries; local
[all...]

Completed in 224 milliseconds

12345