/illumos-gate/usr/src/cmd/ast/libcmd/ |
H A D | Makefile.defs | 31 cmp.o comm.o cp.o cut.o date.o dirname.o expr.o fds.o \
|
/illumos-gate/usr/src/cmd/ast/libshell/common/ |
H A D | illumos_cmdlist.h | 110 ASTCMDLIST(fds)
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | interactive.c | 721 int fds[2]; in formatf() local 723 if (pipe(fds) < 0) { in formatf() 738 (void) close(fds[0]); in formatf() 739 (void) dup2(fds[1], fileno(stdin)); in formatf() 745 (void) close(fds[1]); in formatf() 746 output = fdopen(fds[0], "w"); in formatf()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | unknown.c | 94 int fds[2]; local 112 if ( setuid(getuid()) == -1 || pipe(fds) != 0 113 || write(fds[1], ebuf, strlen(ebuf)) != strlen(ebuf) 114 || close(fds[1]) != 0 ) 117 if ( fds[0] != 0 ) { 119 if ( dup(fds[0]) != 0 )
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | script_handler.c | 286 int fds[2]; in script_start() local 308 if (pipe(fds) < 0) { in script_start() 315 (void) close(fds[0]); in script_start() 316 (void) close(fds[1]); in script_start() 325 (void) close(fds[0]); in script_start() 328 run_script(dsmp, event, fds[1]); in script_start() 332 (void) close(fds[1]); in script_start() 335 if (read(fds[0], &dsmp->dsm_script_pid, sizeof (pid_t)) != in script_start() 339 (void) close(fds[0]); in script_start() 346 (void) close(fds[0]); in script_start() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | events.c | 181 struct pollfd *fds; in update_port() local 204 fds = realloc(fdarray, in update_port() 206 if (fds != NULL) in update_port() 207 fdarray = fds; in update_port() 217 fds = fdarray + posn + FDOFFSET; in update_port() 247 fds->fd = -1; in update_port() 248 fds->events = 0; in update_port() 291 fds->fd = dlpi_fd(port->dlpi); in update_port() 292 fds->events = POLLIN; in update_port() 303 fds->fd = -1; in update_port() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_hc.c | 1271 int fds[2]; in ilbd_run_probe() local 1285 if (pipe(fds) < 0) { in ilbd_run_probe() 1291 if ((fdflags = fcntl(fds[0], F_GETFL, 0)) == -1) { in ilbd_run_probe() 1295 if (fcntl(fds[0], F_SETFL, fdflags | O_NONBLOCK) == -1) { in ilbd_run_probe() 1310 if (posix_spawn_file_actions_addclose(&fd_actions, fds[0]) != 0) { in ilbd_run_probe() 1314 if (posix_spawn_file_actions_adddup2(&fd_actions, fds[1], in ilbd_run_probe() 1362 (void) close(fds[1]); in ilbd_run_probe() 1364 srv->shc_child_fd = fds[0]; in ilbd_run_probe() 1370 if (port_associate(srv->shc_ev_port, PORT_SOURCE_FD, fds[0], in ilbd_run_probe() 1392 (void) close(fds[0]); in ilbd_run_probe() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/ |
H A D | mpd_main.c | 1264 int fds[2]; in setup_eventpipe() local 1267 if ((pipe(fds)) < 0) { in setup_eventpipe() 1271 eventpipe_read = fds[0]; in setup_eventpipe() 1272 eventpipe_write = fds[1]; in setup_eventpipe()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 1427 int fds[2]; in setup_eventpipe() local 1430 if ((pipe(fds)) < 0) { in setup_eventpipe() 1434 eventpipe_read = fds[0]; in setup_eventpipe() 1435 eventpipe_write = fds[1]; in setup_eventpipe()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping.c | 1935 fd_set fds; in recv_icmp_packet() local 1941 (void) FD_ZERO(&fds); in recv_icmp_packet() 1943 FD_SET(recv_sock6, &fds); in recv_icmp_packet() 1945 FD_SET(recv_sock, &fds); in recv_icmp_packet() 1947 result = select(MAX(recv_sock6, recv_sock) + 1, &fds, in recv_icmp_packet() 1969 (FD_ISSET(recv_sock6, &fds))) { in recv_icmp_packet() 1984 if ((recv_sock != -1) && (FD_ISSET(recv_sock, &fds))) { in recv_icmp_packet()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 1935 fd_set fds; in wait_for_reply() local 1940 (void) FD_ZERO(&fds); in wait_for_reply() 1941 FD_SET(sock, &fds); in wait_for_reply() 1951 result = select(sock + 1, &fds, (fd_set *)NULL, (fd_set *)NULL, &wait); in wait_for_reply()
|
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 656 pollfd_t *fds; in fallbackdaemon() local 729 fds[nfds].fd = fd; in fallbackdaemon() 730 fds[nfds].events = 0; in fallbackdaemon() 758 fds[nfds].fd = fd; in fallbackdaemon() 759 fds[nfds].events = 0; in fallbackdaemon() 779 ret = poll(fds, nfds, INFTIM); in fallbackdaemon() 809 (void) close(fds[index].fd); in fallbackdaemon() 810 fds[index].fd = -1; in fallbackdaemon() 811 fds[index].revents = 0; in fallbackdaemon() 821 fds[index].revents); in fallbackdaemon() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | cron.c | 2745 fd_set fds; in msg_wait() local 2756 FD_ZERO(&fds); in msg_wait() 2757 FD_SET(msgfd, &fds); in msg_wait() 2774 cnt = pselect(msgfd + 1, &fds, NULL, NULL, toutp, &defmask); in msg_wait()
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | dcs.h | 296 int ses_poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
H A D | dcs_ses.c | 475 ses_poll(struct pollfd fds[], nfds_t nfds, int timeout) in ses_poll() argument 482 err = poll(fds, nfds, timeout); in ses_poll()
|
/illumos-gate/usr/src/cmd/dtrace/demo/agg/ |
H A D | lquantize.d | 29 @fds[execname] = lquantize(arg0, 0, 100, 1);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 47 int i, n, fds[10]; in main() local 77 fds[n++] = open(file, O_RDONLY); in main() 78 fds[n++] = open(file, O_WRONLY); in main() 79 fds[n++] = open(file, O_RDWR); in main() 81 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC | in main() 85 fds[n++] = open(file, O_RDWR); in main() 86 (void) lseek(fds[n - 1], 123, SEEK_SET); in main() 94 (void) ioctl(fds[i], -1, NULL); in main() 96 assert(n <= sizeof (fds) / sizeof (fds[0])); in main()
|
H A D | tst.fds.d | 39 printf("fds[%d] fi_name = %s\n", arg0, fds[arg0].fi_name); 40 printf("fds[%d] fi_dirname = %s\n", arg0, fds[arg0].fi_dirname); 41 printf("fds[%d] fi_pathname = %s\n", arg0, fds[arg0].fi_pathname); 42 printf("fds[%d] fi_fs = %s\n", arg0, fds[arg0].fi_fs); 43 printf("fds[%d] fi_mount = %s\n", arg0, fds[arg0].fi_mount); 44 printf("fds[%d] fi_offset = %d\n", arg0, fds[arg0].fi_offset); 45 printf("fds[%d] fi_oflags = 0x%x\n", arg0, fds[arg0].fi_oflags);
|
H A D | tst.fds.d.out | 1 fds[0] fi_name = mm@0:null 4 fds[0] fi_fs = specfs 6 fds[0] fi_offset = 0 7 fds[0] fi_oflags = 0x0 11 fds[1] fi_fs = specfs 13 fds[1] fi_offset = 0 14 fds[1] fi_oflags = 0x1 18 fds[2] fi_fs = specfs 20 fds[2] fi_offset = 0 25 fds[3] fi_fs = specfs [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/ |
H A D | tst.fds.ksh | 26 tmpin=/tmp/tst.fds.$$.d 27 tmpout1=/tmp/tst.fds.$$.out1 28 tmpout2=/tmp/tst.fds.$$.out2 33 printf("%d: field =fmt\n", fd, fds[fd].field);
|
/illumos-gate/usr/src/cmd/hal/addons/network-devices/ |
H A D | snmp.c | 103 int fds = 0, block = 0; in scan_for_devices_using_snmp() local 108 snmp_select_info(&fds, &fdset, &timeout, &block); in scan_for_devices_using_snmp() 109 fds = select(fds, &fdset, NULL, NULL, block ? NULL : &timeout); in scan_for_devices_using_snmp() 110 if (fds < 0) { in scan_for_devices_using_snmp() 113 } if (fds == 0) { in scan_for_devices_using_snmp()
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | pdu.c | 67 struct pollfd fds; in isns_rcv_pdu() local 80 fds.fd = fd; in isns_rcv_pdu() 81 fds.events = (POLLIN | POLLRDNORM); in isns_rcv_pdu() 82 fds.revents = 0; in isns_rcv_pdu() 103 int err = poll(&fds, 1, rcv_timeout * 1000); in isns_rcv_pdu() 150 int err = poll(&fds, 1, rcv_timeout * 1000); in isns_rcv_pdu()
|
H A D | server.c | 235 struct pollfd fds; in isns_port_watcher() local 270 fds.fd = s; in isns_port_watcher() 271 fds.events = (POLLIN | POLLRDNORM); in isns_port_watcher() 272 fds.revents = 0; in isns_port_watcher() 280 poll_ret = poll(&fds, 1, 1000); in isns_port_watcher()
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | exec.c | 1124 int fds[2]; in Fork1() local 1126 if (pipe(fds) == -1) { in Fork1() 1132 ep->md = mconnect((char *)0, fds[0], fds[1]); in Fork1() 1138 close(fds[0]); in Fork1() 1139 close(fds[1]); in Fork1() 1144 ChildMd = mconnect(NULL, fds[1], fds[1]); in Fork1()
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | mconnect.c | 105 int fds[2]; local 107 if (pipe(fds) != 0) 110 if (ioctl(fd, I_SENDFD, fds[1]) != 0) 115 fd = fds[0]; 116 (void)_Close(fds[1]);
|