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

12

/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/
H A Dfpopen.c42 int fds[2]; local
92 if (pipe(fds) < 0)
101 close(fds[1]);
102 dup2(fds[0], 0);
104 close(fds[0]);
105 dup2(fds[1], 1);
107 dup2(fds[1], 2);
113 return fdopen(do_stdin ? fds[1] : fds[0], mode);
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/
H A Dselect.c14 * of fds to overcome nfds < 16390 descriptors limit (Tigran Aivazian).
106 #define __IN(fds, n) (fds->in + n)
107 #define __OUT(fds, n) (fds->out + n)
108 #define __EX(fds, n) (fds->ex + n)
109 #define __RES_IN(fds, n) (fds->res_in + n)
110 #define __RES_OUT(fds,
115 max_select_fd(unsigned long n, fd_set_bits *fds) argument
164 do_select(int n, fd_set_bits *fds, long *timeout) argument
261 fd_set_bits fds; local
385 do_poll(unsigned int nfds, unsigned int nchunks, unsigned int nleft, struct pollfd *fds[], poll_table *wait, long timeout) argument
415 struct pollfd **fds; local
[all...]
/asus-wl-520gu-7.0.1.45/src/router/LPRng/UTILS/
H A Dtest_rw_pipe.c9 int fds[2], i; local
15 i = socketpair( AF_UNIX, SOCK_STREAM, 0, fds);
17 i = pipe( fds );
26 if( write( fds[0], m1, strlen(m1) ) < 0 ) exit(1);
28 i = read( fds[0], line, sizeof(line) );
37 i = read( fds[1], line, sizeof(line) );
42 if( write( fds[1], m2, strlen(m2) ) < 0 ) exit(1);
/asus-wl-520gu-7.0.1.45/src/router/samba/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...]
/asus-wl-520gu-7.0.1.45/src/router/rcamdmips/
H A Dtext.c302 int fds[2], ret, pid; local
315 ret = pipe(fds);
325 close(fds[0]);
326 close(fds[1]);
333 close(fds[0]);
334 dup2(fds[1], STDOUT_FILENO);
335 close(fds[1]);
347 close(fds[1]);
351 ret = read(fds[0], p, 1);
355 close(fds[
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/lib/
H A Dreadline.c56 fd_set fds; local
69 FD_ZERO(&fds);
70 FD_SET(fd,&fds);
72 if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) {
H A Dutil_sock.c202 fd_set fds; local
248 FD_ZERO(&fds);
249 FD_SET(fd,&fds);
251 selrtn = sys_select_intr(fd+1,&fds,NULL,NULL,&timeout);
/asus-wl-520gu-7.0.1.45/src/router/busybox/
H A Dtail.c67 int *fds, nfiles = 0, status = EXIT_SUCCESS, nread, nwrite, seen = 0; local
105 fds = (int *)xmalloc(sizeof(int) * (argc - optind + 1));
107 fds[nfiles++] = STDIN_FILENO;
112 fds[nfiles++] = STDIN_FILENO;
114 } else if ((fds[nfiles++] = open(argv[i], O_RDONLY)) < 0) {
128 if (fds[i] == -1)
131 lseek(fds[i], 0, SEEK_END);
137 while ((nread = safe_read(fds[i], buf, sizeof(buf))) > 0) {
231 if (fds[i] == -1)
234 if ((nread = safe_read(fds[
[all...]
H A Dsyslogd.c546 fd_set fds; local
577 FD_ZERO (&fds);
578 FD_SET (sock_fd, &fds);
602 memcpy (&readfds, &fds, sizeof (fds));
622 FD_SET(conn, &fds);
628 FD_CLR(fd, &fds);
H A Dtraceroute.c291 fd_set fds; local
296 FD_ZERO(&fds);
297 FD_SET(sock, &fds);
315 if (select(sock+1, &fds, (fd_set *)0, (fd_set *)0, &wait) > 0)
/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/misc/
H A Dlogsave.c107 int fds[2]; local
111 if (pipe(fds) < 0) {
122 dup2(fds[1],1); /* fds[1] replaces stdout */
123 dup2(fds[1],2); /* fds[1] replaces stderr */
124 close(fds[0]); /* don't need this here */
130 close(fds[1]);
133 do_read(fds[0]);
135 do_read(fds[
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/nsswitch/
H A Dwinbindd_dual.c57 int dual_select_setup(fd_set *fds, int maxfd) argument
64 FD_SET(dual_daemon_pipe, fds);
76 void dual_select(fd_set *fds) argument
82 !FD_ISSET(dual_daemon_pipe, fds)) {
/asus-wl-520gu-7.0.1.45/src/tools/upnp/upnp/
H A Dupnp.c40 static int fd_net_set(fd_set *fds);
41 static void process_receive_fds(fd_set *fds);
247 static int fd_net_set(fd_set *fds) argument
255 FD_SET(net->fd, fds);
261 static void process_receive_fds(fd_set *fds) argument
267 if (FD_ISSET(net->fd, fds)) {
H A Dgena.c32 static void service_notify_replies(PService psvc, fd_set *fds);
695 void receive_notify_replies(fd_set *fds) argument
702 service_notify_replies(psvc, fds);
711 static void service_notify_replies(PService psvc, fd_set *fds) argument
726 if (FD_ISSET((*psr)->sock, fds)) {
727 FD_CLR((*psr)->sock, fds);
/asus-wl-520gu-7.0.1.45/src/router/samba/source/smbd/
H A Doplock.c53 BOOL oplock_message_waiting(fd_set *fds) argument
55 if (koplocks && koplocks->msg_waiting(fds))
58 if (FD_ISSET(oplock_sock, fds))
68 If timeout is zero then *fds contains the file descriptors that
70 *fds contains the file descriptors to be selected on for read.
80 fd_set fds; local
83 FD_ZERO(&fds);
92 if (koplocks && koplocks->msg_waiting(&fds)) {
93 return koplocks->receive_message(&fds, buffer, buffer_len);
101 FD_ZERO(&fds);
311 setup_oplock_select_set( fd_set *fds) argument
[all...]
H A Doplock_irix.c89 static BOOL irix_oplock_receive_message(fd_set *fds, char *buffer, int buffer_len) argument
245 static BOOL irix_oplock_msg_waiting(fd_set *fds) argument
250 return FD_ISSET(oplock_pipe_read,fds);
H A Doplock_linux.c126 static BOOL linux_oplock_receive_message(fd_set *fds, char *buffer, int buffer_len) argument
248 static BOOL linux_oplock_msg_waiting(fd_set *fds) argument
H A Dprocess.c172 fd_set fds; local
209 FD_ZERO(&fds);
220 if (oplock_message_waiting(&fds)) {
225 * the state of the flag in fds for the server file descriptor is
231 FD_SET(smbd_server_fd(),&fds); local
232 maxfd = setup_oplock_select_set(&fds);
237 selrtn = sys_select(MAX(maxfd,smbd_server_fd())+1,&fds,NULL,NULL,timeout>0?&to:NULL);
247 * the state of the flag in fds for the server file descriptor is
272 if (oplock_message_waiting(&fds)) {
276 * the state of the flag in fds fo
[all...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dpoll.h86 extern int do_select(int n, fd_set_bits *fds, long *timeout);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dpoll.h86 extern int do_select(int n, fd_set_bits *fds, long *timeout);
/asus-wl-520gu-7.0.1.45/src/router/samba/source/wrepld/
H A Dserver.c347 fd_set fds; local
358 memcpy((char *)&fds, (char *)listen_set, sizeof(fd_set));
367 num = sys_select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
383 if(FD_ISSET(sock_array[i], &fds)) {
386 FD_CLR(sock_array[i], &fds);
409 if(FD_ISSET(sock_array[i], &fds)) {
416 FD_CLR(sock_array[i], &fds);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/alpha/kernel/
H A Dosf_sys.c1038 fd_set_bits fds; local
1077 fds.in = (unsigned long *) bits;
1078 fds.out = (unsigned long *) (bits + size);
1079 fds.ex = (unsigned long *) (bits + 2*size);
1080 fds.res_in = (unsigned long *) (bits + 3*size);
1081 fds.res_out = (unsigned long *) (bits + 4*size);
1082 fds.res_ex = (unsigned long *) (bits + 5*size);
1084 if ((ret = get_fd_set(n, inp->fds_bits, fds.in)) ||
1085 (ret = get_fd_set(n, outp->fds_bits, fds.out)) ||
1086 (ret = get_fd_set(n, exp->fds_bits, fds
[all...]
/asus-wl-520gu-7.0.1.45/src/router/ntpclient/
H A Dntpclient.c336 fd_set fds; local
348 FD_ZERO(&fds);
349 FD_SET(usd,&fds);
350 i=select(usd+1,&fds,NULL,NULL,&to); /* Wait on read or error */
351 if ((i!=1)||(!FD_ISSET(usd,&fds))) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/jffs2/
H A Dreadinode.c468 struct jffs2_full_dirent *fd, *fds; local
489 fds = f->dents;
510 while(fds) {
511 fd = fds;
512 fds = fd->next;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/x86_64/ia32/
H A Dsys_ia32.c298 int fds[2]; local
300 retval = do_pipe(fds);
303 if (copy_to_user(fd, fds, sizeof(fds)))
797 fd_set_bits fds; local
836 fds.in = (unsigned long *) bits;
837 fds.out = (unsigned long *) (bits + size);
838 fds.ex = (unsigned long *) (bits + 2*size);
839 fds.res_in = (unsigned long *) (bits + 3*size);
840 fds
[all...]

Completed in 281 milliseconds

12