/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/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/test/os-tests/tests/file-locking/ |
H A D | runtests.c | 281 pid_t *pid, int fds[]) in flock_run() argument 286 int ret = pipe(fds); in flock_run() 296 ret = dup2(fds[1], 0); in flock_run() 300 ret = dup2(fds[1], 1); in flock_run() 335 flock_cleanup_child(pid_t pid, int fds[]) in flock_cleanup_child() argument 338 (void) close(fds[0]); in flock_cleanup_child() 339 (void) close(fds[1]); in flock_cleanup_child() 348 int fds[2]; in flock_test_upgrade_downgrade() local 379 flock_block(fds[0]); in flock_test_upgrade_downgrade() 384 flock_alert(fds[0]); in flock_test_upgrade_downgrade() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_nicmon.c | 230 int fds[2]; in smbd_nicmon_setup_eventpipe() local 232 if ((pipe(fds)) < 0) { in smbd_nicmon_setup_eventpipe() 238 *read_pipe = fds[0]; in smbd_nicmon_setup_eventpipe() 239 *write_pipe = fds[1]; in smbd_nicmon_setup_eventpipe()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | pipe.c | 32 pipe(int *fds) in pipe() argument 34 return (pipe2(fds, 0)); in pipe()
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
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()
|
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()
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_utils.c | 151 int *fds; in _z_close_file_descriptors() local 172 fds = (int *)a_fds; in _z_close_file_descriptors() 174 for (i = 0; fds[i] != -1; i++) { in _z_close_file_descriptors() 175 if (fds[i] == a_fd) { in _z_close_file_descriptors()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/prldap/ |
H A D | ldappr-io.c | 51 static int LDAP_CALLBACK prldap_poll( LDAP_X_PollFD fds[], int nfds, 227 prldap_poll( LDAP_X_PollFD fds[], int nfds, int timeout, in prldap_poll() argument 256 if ( NULL == fds[i].lpoll_socketarg ) { in prldap_poll() 259 pds[i].fd = PRLDAP_GET_PRFD( fds[i].lpoll_socketarg ); in prldap_poll() 262 if ( fds[i].lpoll_fd >= 0 ) { in prldap_poll() 264 if (( fds[i].lpoll_events & prldap_eventmap[j].evm_ldap ) in prldap_poll() 270 fds[i].lpoll_revents = 0; /* clear revents */ in prldap_poll() 283 fds[i].lpoll_revents |= prldap_eventmap[j].evm_ldap; in prldap_poll()
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prstat.c | 929 fds_t *fds; in prstat_scandir() local 964 fd_close(fds->fds_psinfo); in prstat_scandir() 974 fd_close(fds->fds_psinfo); in prstat_scandir() 983 fd_close(fds->fds_lpsinfo); in prstat_scandir() 984 fd_close(fds->fds_psinfo); in prstat_scandir() 1023 fd_close(fds->fds_psinfo); in prstat_scandir() 1030 fd_close(fds->fds_psinfo); in prstat_scandir() 1049 fd_close(fds->fds_psinfo); in prstat_scandir() 1057 fd_close(fds->fds_lusage); in prstat_scandir() 1059 fd_close(fds->fds_psinfo); in prstat_scandir() [all …]
|
H A D | prfile.h | 45 typedef struct fds { struct 51 struct fds *fds_next; argument
|
/illumos-gate/usr/src/uts/common/io/comstar/port/fcoet/ |
H A D | fcoet.c | 113 static void fcoet_dbuf_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf); 439 fct_dbuf_store_t *fds; in fcoet_attach_init() local 483 fds = (fct_dbuf_store_t *)fct_alloc(FCT_STRUCT_DBUF_STORE, 0, 0); in fcoet_attach_init() 484 if (fds == NULL) { in fcoet_attach_init() 487 fds->fds_alloc_data_buf = fcoet_dbuf_alloc; in fcoet_attach_init() 488 fds->fds_free_data_buf = fcoet_dbuf_free; in fcoet_attach_init() 489 fds->fds_fca_private = (void *)ss; in fcoet_attach_init() 568 port->port_fds = fds; in fcoet_attach_init() 630 fct_free(fds); in fcoet_attach_init() 976 fcoet_dbuf_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf) in fcoet_dbuf_free() argument [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | os-ip.c | 1550 if ( fds[ i ].lpoll_fd < 0 ) { 1554 if ( fds[ i ].lpoll_fd >= FD_SETSIZE ) { 1560 FD_SET( fds[i].lpoll_fd, &readfds ); 1564 FD_SET( fds[i].lpoll_fd, &writefds ); 1567 fds[i].lpoll_revents = 0; /* clear revents */ 1569 if ( fds[i].lpoll_fd >= maxfd ) { 1570 maxfd = fds[i].lpoll_fd; 1594 if ( fds[ i ].lpoll_fd < 0 ) { 1599 && FD_ISSET( fds[i].lpoll_fd, &readfds )) { 1600 fds[i].lpoll_revents |= LDAP_X_POLLIN; [all …]
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | misc.c | 76 struct pollfd fds; /* array of fds to poll */ in sigpoll() local 93 fds.fd = Cfd; in sigpoll() 94 fds.events = POLLIN; in sigpoll() 95 fds.revents = 0; in sigpoll() 96 if (poll(&fds, 1, 0) < 0) in sigpoll() 98 switch (fds.revents) { in sigpoll()
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_lock.c | 1337 struct pollfd *fds; member 1374 polllist.fds = s_calloc(n_max, sizeof (struct pollfd)); in get_pid_index() 1381 polllist.fds = s_realloc(polllist.fds, in get_pid_index() 1445 polllist.fds[index].fd = fd; in add_to_polling_list() 1446 polllist.fds[index].events = 0; in add_to_polling_list() 1447 polllist.fds[index].revents = 0; in add_to_polling_list() 1510 (void) close(polllist.fds[index].fd); in remove_from_polling_list() 1516 bcopy(&polllist.fds[i + 1], &polllist.fds[i], in remove_from_polling_list() 1561 (void) poll(polllist.fds, polllist.n_pids, (time_t)-1); in pollfunc()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socksubr.c | 791 int *fds; in fdbuf_create() local 806 fds = (int *)rights; in fdbuf_create() 830 releasef(fds[i]); in fdbuf_create() 832 audit_fdsend(fds[i], fp, 0); in fdbuf_create() 906 int *fds = (int *)fdbuf; in close_fds() local 1010 void *fds; in so_getfdopt() local 1029 fds = NULL; in so_getfdopt() 1037 if (fds != NULL) in so_getfdopt() 1039 fds = CMSG_CONTENT(cmsg); in so_getfdopt() 1045 if (fds == NULL) { in so_getfdopt() [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/uts/common/io/comstar/port/qlt/ |
H A D | qlt_dma.h | 122 void qlt_dmem_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf); 126 void qlt_dma_teardown_dbuf(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf);
|
/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/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/dtrace/demo/agg/ |
H A D | lquantize.d | 29 @fds[execname] = lquantize(arg0, 0, 100, 1);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/ |
H A D | main.c | 1238 int fds[MAX_FDS]; in pkgZoneCheckInstall() local 1377 fds[maxfds++] = fd; in pkgZoneCheckInstall() 1450 fds[maxfds++] = fd; in pkgZoneCheckInstall() 1478 fds[maxfds] = -1; in pkgZoneCheckInstall() 1494 (void) close(fds[maxfds-1]); in pkgZoneCheckInstall() 1547 int fds[MAX_FDS]; in pkgZoneInstall() local 1690 fds[maxfds++] = fd; in pkgZoneInstall() 1732 fds[maxfds++] = fd; in pkgZoneInstall() 1788 fds[maxfds++] = fd; in pkgZoneInstall() 1816 fds[maxfds] = -1; in pkgZoneInstall() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/ |
H A D | main.c | 1183 int fds[MAX_FDS]; in pkgZoneCheckRemove() local 1288 fds[maxfds++] = fd; in pkgZoneCheckRemove() 1374 fds[maxfds] = -1; in pkgZoneCheckRemove() 1378 n = z_zone_exec(a_zoneName, path, arg, a_stdoutPath, (char *)NULL, fds); in pkgZoneCheckRemove() 1390 (void) close(fds[maxfds-1]); in pkgZoneCheckRemove() 1406 int fds[MAX_FDS]; in pkgZoneRemove() local 1517 fds[maxfds++] = fd; in pkgZoneRemove() 1600 fds[maxfds] = -1; in pkgZoneRemove() 1604 n = z_zone_exec(a_zoneName, path, arg, (char *)NULL, (char *)NULL, fds); in pkgZoneRemove() 1613 (void) close(fds[maxfds-1]); in pkgZoneRemove()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | lib | 118 tst lib_poll_notimer note{ poll with no fds ignores timeout }end execute{ 391 int fds[2]; 399 pipe(fds); 400 return ioctl(fds[0],I_PEEK,&peek) < 0; 412 int fds[2]; 417 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) 419 if (write(fds[1], msg, sizeof(msg)) != sizeof(msg)) 421 if (recv(fds[0], buf, sizeof(buf), MSG_PEEK) != sizeof(msg)) 426 if (read(fds[0], buf, sizeof(msg)) != sizeof(msg))
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | subshell.c | 139 int fds[3]; in sh_subtmpfile() local 141 fds[2] = 0; in sh_subtmpfile() 142 sh_pipe(fds); in sh_subtmpfile() 143 sp->pipefd = fds[0]; in sh_subtmpfile() 147 write(fds[1],sfsetbuf(sfstdout,(Void_t*)sfstdout,0),(size_t)off); in sh_subtmpfile() 149 if((sh_fcntl(fds[1],F_DUPFD, 1)) != 1) in sh_subtmpfile() 151 sh_close(fds[1]); in sh_subtmpfile()
|