/illumos-gate/usr/src/cmd/truss/ |
H A D | print.c | 407 int fds[2]; in prt_pfd() local 413 Pread(Proc, fds, sizeof (fds), (long)val) == sizeof (fds)) { in prt_pfd() 414 (void) snprintf(str, sizeof (str), "[%d,%d]", fds[0], fds[1]); in prt_pfd()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | socktpi.c | 3479 void *fds; in sosend_dgramcmsg() local 3577 !(flags & MSG_XPG4_2), &fds, &fdlen); in sosend_dgramcmsg() 3584 error = fdbuf_create(fds, fdlen, &fdbuf); in sosend_dgramcmsg() 3670 void *fds; in sosend_svccmsg() local 3719 !(flags & MSG_XPG4_2), &fds, &fdlen); in sosend_svccmsg() 3726 error = fdbuf_create(fds, fdlen, &fdbuf); in sosend_svccmsg()
|
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/saf/ |
H A D | sac.c | 1093 int fds[2]; /* pipe endpoints */ in mk_cmd_pipe() local 1102 if (pipe(fds) < 0) in mk_cmd_pipe() 1104 if (fattach(fds[0], CMDPIPE) < 0) in mk_cmd_pipe() 1106 return (fds[1]); in mk_cmd_pipe()
|
/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/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/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_fct.c | 83 static void emlxs_fct_dbuf_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf); 1043 fct_dbuf_store_t *fds; in emlxs_fct_bind_port() local 1203 fds = port->fct_port->port_fds; in emlxs_fct_bind_port() 1204 fds->fds_fca_private = port; in emlxs_fct_bind_port() 1205 fds->fds_alloc_data_buf = emlxs_fct_dbuf_alloc; in emlxs_fct_bind_port() 1206 fds->fds_free_data_buf = emlxs_fct_dbuf_free; in emlxs_fct_bind_port() 5359 emlxs_fct_dbuf_free(fct_dbuf_store_t *fds, stmf_data_buf_t *db) in emlxs_fct_dbuf_free() argument 5361 emlxs_port_t *port = (emlxs_port_t *)fds->fds_fca_private; in emlxs_fct_dbuf_free()
|
/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/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 1413 int fds[2], err; in s10_pipe() local 1414 if ((err = __systemcall(rval, SYS_pipe + 1024, fds, 0)) != 0) in s10_pipe() 1417 rval->sys_rval1 = fds[0]; in s10_pipe() 1418 rval->sys_rval2 = fds[1]; in s10_pipe()
|
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt_dma.c | 395 qlt_dmem_free(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf) in qlt_dmem_free() argument 770 qlt_dma_teardown_dbuf(fct_dbuf_store_t *fds, stmf_data_buf_t *dbuf) in qlt_dma_teardown_dbuf() argument 772 qlt_state_t *qlt = fds->fds_fca_private; in qlt_dma_teardown_dbuf()
|
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);
|
H A D | qlt.c | 1890 fct_dbuf_store_t *fds; in qlt_port_start() local 1904 fds = (fct_dbuf_store_t *)fct_alloc(FCT_STRUCT_DBUF_STORE, 0, 0); in qlt_port_start() 1905 if (fds == NULL) { in qlt_port_start() 1909 fds->fds_alloc_data_buf = qlt_dmem_alloc; in qlt_port_start() 1910 fds->fds_free_data_buf = qlt_dmem_free; in qlt_port_start() 1911 fds->fds_setup_dbuf = qlt_dma_setup_dbuf; in qlt_port_start() 1912 fds->fds_teardown_dbuf = qlt_dma_teardown_dbuf; in qlt_port_start() 1914 fds->fds_copy_threshold = (uint32_t)MMU_PAGESIZE; in qlt_port_start() 1915 fds->fds_fca_private = (void *)qlt; in qlt_port_start() 1929 port->port_fds = fds; in qlt_port_start() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | RELEASE | 53 09-09-09 fds.c: add --unit=fd 113 07-05-09 fds.c: handle ipv6 sockets 143 06-10-26 fds.c: handle sctp 173 05-04-11 fds.c: add from old internal open(1)
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | eventlib.c | 742 struct pollfd *fds; in pselect() local 777 fds = &(ctx->pollfds[ctx->firstfd]); in pselect() 780 fds = NULL; in pselect() 783 n = poll(fds, pnfds, polltimeout); in pselect()
|
/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/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 …]
|
H A D | sasl.c | 315 LDAP_X_PollFD fds[], int nfds, int timeout, in nsldapi_sasl_poll() argument 330 if (fds && nfds > 0) { in nsldapi_sasl_poll() 332 if (fds[i].lpoll_socketarg == in nsldapi_sasl_poll() 334 fds[i].lpoll_socketarg = in nsldapi_sasl_poll() 341 return ( ld->ld_sasl_io_fns.lextiof_poll( fds, nfds, timeout, in nsldapi_sasl_poll()
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-dtrace-tests.p5m | 824 file path=opt/SUNWdtrt/tst/common/io/tst.fds.d mode=0444 825 file path=opt/SUNWdtrt/tst/common/io/tst.fds.d.out mode=0444 826 file path=opt/SUNWdtrt/tst/common/io/tst.fds.exe mode=0555 1302 file path=opt/SUNWdtrt/tst/common/privs/tst.fds.ksh mode=0444
|
/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/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 519 struct pollfd fds; in ses_contract_thread() local 525 fds.fd = efd; in ses_contract_thread() 526 fds.events = POLLIN; in ses_contract_thread() 527 fds.revents = 0; in ses_contract_thread() 540 if ((pollret = poll(&fds, 1, 10000)) <= 0) { in ses_contract_thread()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | poll.c | 330 poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp) in poll_common() argument 439 if (copyin(fds, pollfdp, nfds * sizeof (pollfd_t))) { in poll_common() 444 if (fds == NULL) { in poll_common() 472 error = pcacheset_cache_list(ps, fds, &fdcnt, cacheindex); in poll_common() 485 if (pcset[cacheindex].pcs_usradr == (uintptr_t)fds) { in poll_common() 521 error = pcacheset_cache_list(ps, fds, &fdcnt, in poll_common() 538 pcset[cacheindex].pcs_usradr = (uintptr_t)fds; in poll_common() 629 copyout(pollfdp, fds, nfds * sizeof (pollfd_t))) in poll_common() 665 pollsys(pollfd_t *fds, nfds_t nfds, timespec_t *timeoutp, sigset_t *setp) in pollsys() argument 702 return (poll_common(fds, nfds, tsp, ksetp)); in pollsys() [all …]
|
/illumos-gate/usr/src/lib/librsm/common/ |
H A D | rsmlib.c | 2575 struct pollfd fds; in rsm_intr_signal_wait() local 2587 fds.fd = seg->rsmseg_fd; in rsm_intr_signal_wait() 2588 fds.events = POLLRDNORM; in rsm_intr_signal_wait() 2599 return (__rsm_intr_signal_wait_common(fds, NULL, nfds, timeout, in rsm_intr_signal_wait_pollfd() 2614 __rsm_intr_signal_wait_common(struct pollfd fds[], minor_t rnums[], in __rsm_intr_signal_wait_common() argument 2633 numfd = poll(fds, nfds, timeout); in __rsm_intr_signal_wait_common() 2684 if (fds[i].revents == POLLRDNORM) { in __rsm_intr_signal_wait_common() 2692 segrnum = _rsm_lookup_pollfd_table(fds[i].fd); in __rsm_intr_signal_wait_common() 2702 if ((fds[i].revents) && (++fds_processed == numfd)) { in __rsm_intr_signal_wait_common() 2741 fds[events[i].fdsidx].revents = POLLRDNORM; in __rsm_intr_signal_wait_common() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | clnt_vc.c | 1165 int fds; in read_vc() local 1200 switch (fds = poll(pfdp, npfd, poll_time)) { in read_vc() 1238 (*_svc_getreqset_proc)(&pfdp[1], fds); in read_vc()
|
/illumos-gate/usr/src/lib/libldap5/include/ldap/ |
H A D | solaris-int.h | 250 LDAP_X_PollFD fds[], int nfds, int timeout /* milliseconds */,
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | closefrom.c | 61 int *fds; in fdwalk() local 67 fds = alloca(FDS_SZ); in fdwalk() 80 fds = memcpy(alloca(fds_sz * 2), fds, fds_sz); in fdwalk() 83 fds[nfds++] = i; in fdwalk() 98 fds = memcpy(alloca(fds_sz * 2), fds, fds_sz); in fdwalk() 101 fds[nfds++] = i; in fdwalk() 116 if ((rv = func(cd, fds[i])) != 0) in fdwalk()
|