/asus-wl-520gu-7.0.1.45/src/router/e2fsprogs-1.40.8/lib/ |
H A D | fpopen.c | 42 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 D | select.c | 14 * 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 D | test_rw_pipe.c | 9 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 D | smbfilter.c | 132 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 D | text.c | 302 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 D | readline.c | 56 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 D | util_sock.c | 202 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 D | tail.c | 67 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 D | syslogd.c | 546 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 D | traceroute.c | 291 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 D | logsave.c | 107 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 D | winbindd_dual.c | 57 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 D | upnp.c | 40 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 D | gena.c | 32 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 D | oplock.c | 53 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 D | oplock_irix.c | 89 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 D | oplock_linux.c | 126 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 D | process.c | 172 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 D | poll.h | 86 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 D | poll.h | 86 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 D | server.c | 347 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 D | osf_sys.c | 1038 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 D | ntpclient.c | 336 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 D | readinode.c | 468 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 D | sys_ia32.c | 298 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...] |