Searched defs:fds (Results 1 - 25 of 27) sorted by relevance

12

/osnet-11/usr/src/lib/libc/port/gen/
H A Dpoll.c34 ppoll(struct pollfd *_RESTRICT_KYWD fds, nfds_t nfd, argument
38 return (_pollsys(fds, nfd, tsp, sigmask));
42 poll(struct pollfd *fds, nfds_t nfd, int timeout) argument
55 return (_pollsys(fds, nfd, tsp, NULL));
H A Dclosefrom.c59 int *fds; local
65 fds = alloca(FDS_SZ);
78 fds = memcpy(alloca(fds_sz * 2), fds, fds_sz);
81 fds[nfds++] = i;
96 fds = memcpy(alloca(fds_sz * 2), fds, fds_sz);
99 fds[nfds++] = i;
114 if ((rv = func(cd, fds[i])) != 0)
/osnet-11/usr/src/lib/libgen/common/
H A Dp2open.c50 int fds[2]; local
52 if (__p2open(cmd, fds) == -1)
55 fp[0] = fdopen(fds[0], "w");
56 fp[1] = fdopen(fds[1], "r");
67 __p2open(const char *cmd, int fds[2]) argument
102 fds[0] = tocmd[1];
103 fds[1] = fromcmd[0];
110 int fds[2]; local
116 fds[0] = fdp[0];
117 fds[
[all...]
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfpoll.c101 { struct pollfd* fds; local
109 if(!(fds = (struct pollfd*)malloc(m*sizeof(struct pollfd))) )
115 fds[m].fd = f->file;
116 fds[m].events = fds[m].revents = 0;
119 fds[m].events |= POLLOUT;
125 fds[m].fd = f->proc->file;
126 fds[m].revents = 0;
129 fds[m].events |= POLLIN;
133 while((np = SFPOLL(fds,
[all...]
H A Dsfpkrd.c215 int fds[2]; local
219 recv_peek_ok = (!pipe(fds) && write(fds[1], tst, 2) && recv(fds[0], tst, 1, MSG_PEEK) == 1 && tst[0] == 'a' && recv(fds[0], tst, 1, MSG_PEEK) == 1 && tst[0] == 'a') ? 1 : -1;
220 close(fds[0]);
221 close(fds[1]);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/IO/
H A Dpoll.c46 poll(struct pollfd *fds, unsigned long nfds, int timeout) argument
64 int events = fds[i].events;
65 int fd = fds[i].fd;
67 fds[i].revents = 0;
98 if((fstat(fds[i].fd,&buf) < 0) && (errno == EBADF)) {
99 FD_SET(fds[i].fd, &ifd);
111 int revents = (fds[i].events & POLL_EVENTS_MASK);
112 int fd = fds[i].fd;
130 if((fds[i].revents = revents) != 0)
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_lockdmsg.c93 struct pollfd fds; local
95 fds.fd = lock_soc;
96 fds.events = POLLIN;
97 fds.revents = 0;
99 rc = poll(&fds, 1, 500);
/osnet-11/usr/src/lib/libinstzones/common/
H A Dzones_utils.c151 int *fds; local
172 fds = (int *)a_fds;
174 for (i = 0; fds[i] != -1; i++) {
175 if (fds[i] == a_fd) {
/osnet-11/usr/src/cmd/hal/addons/network-devices/
H A Dsnmp.c103 int fds = 0, block = 0; local
108 snmp_select_info(&fds, &fdset, &timeout, &block);
109 fds = select(fds, &fdset, NULL, NULL, block ? NULL : &timeout);
110 if (fds < 0) {
113 } if (fds == 0) {
/osnet-11/usr/src/lib/libldap4/common/
H A Dos-ip.c316 struct pollfd fds[LDAP_DEFAULT_REFHOPLIMIT]; member in struct:selectinfo
329 /* find if sb is in fds */
331 if (sip->fds[i].fd == sb->sb_sd){
332 sip->fds[i].events |= POLLOUT;
337 sip->fds[sip->nbfds].fd = sb->sb_sd;
338 sip->fds[sip->nbfds].events |= POLLOUT;
356 /* find if sb is in fds */
358 if (sip->fds[i].fd == sb->sb_sd) {
359 sip->fds[i].events |= POLLIN;
365 sip->fds[si
[all...]
/osnet-11/usr/src/lib/libcmdutils/common/
H A Ddecompress.c312 int fds[2]; local
314 if (pipe(fds) == -1) {
318 if ((out = fdopen(fds[0], "wE")) == NULL) {
324 return (filter_stream(fds[1], decompressor));
326 return (fds[1]);
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dinuse_mnt.c365 struct pollfd fds[1]; local
368 if ((fds[0].fd = open("/etc/mnttab", O_RDONLY)) != -1) {
373 (void) read(fds[0].fd, buf, (size_t)(sizeof (buf) - 1));
374 (void) lseek(fds[0].fd, 0, SEEK_SET);
376 fds[0].events = POLLRDBAND;
377 while (res = poll(fds, (nfds_t)1, -1)) {
383 (void) read(fds[0].fd, buf, (size_t)(sizeof (buf) - 1));
384 (void) lseek(fds[0].fd, 0, SEEK_SET);
/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c746 struct pollfd *fds; local
779 fds = &(ctx->pollfds[ctx->firstfd]);
782 fds = NULL;
785 n = poll(fds, pnfds, polltimeout);
/osnet-11/usr/src/lib/libldap5/sources/ldap/prldap/
H A Dldappr-io.c51 static int LDAP_CALLBACK prldap_poll( LDAP_X_PollFD fds[], int nfds,
227 prldap_poll( LDAP_X_PollFD fds[], int nfds, int timeout, argument
256 if ( NULL == fds[i].lpoll_socketarg ) {
259 pds[i].fd = PRLDAP_GET_PRFD( fds[i].lpoll_socketarg );
262 if ( fds[i].lpoll_fd >= 0 ) {
264 if (( fds[i].lpoll_events & prldap_eventmap[j].evm_ldap )
270 fds[i].lpoll_revents = 0; /* clear revents */
283 fds[i].lpoll_revents |= prldap_eventmap[j].evm_ldap;
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dsubshell.c132 int fds[3]; local
134 fds[2] = 0;
135 sh_pipe(fds);
136 sp->pipefd = fds[0];
140 write(fds[1],sfsetbuf(sfstdout,(Void_t*)sfstdout,0),(size_t)off);
142 if((sh_fcntl(fds[1],F_DUPFD, 1)) != 1)
144 sh_close(fds[1]);
/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_net.c389 /* close all fds in pfd */
698 struct pollfd **fds, nfds_t *nfds,
715 *fds = NULL;
758 if (!(*fds = calloc(num_givenifs, sizeof (**fds)))) {
774 free_pfds(*fds, *nfds);
779 (*fds)[i].fd = fd;
780 (*fds)[i].events |= POLLRDNORM;
835 if (*fds && !have_valid_if) {
837 free(*fds);
696 make_mc_target(slp_handle_impl_t *hp, struct sockaddr_in *sin, char *header, struct pollfd **fds, nfds_t *nfds, struct bc_ifs *bcifs) argument
921 mc_sendmsg(struct pollfd *fds, struct msghdr *msg, struct bc_ifs *bcifs) argument
962 bc_sendmsg(struct pollfd *fds, struct msghdr *msg, struct bc_ifs *bcifs) argument
[all...]
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Dsasl.c315 LDAP_X_PollFD fds[], int nfds, int timeout,
330 if (fds && nfds > 0) {
332 if (fds[i].lpoll_socketarg ==
334 fds[i].lpoll_socketarg =
341 return ( ld->ld_sasl_io_fns.lextiof_poll( fds, nfds, timeout,
314 nsldapi_sasl_poll( LDAP_X_PollFD fds[], int nfds, int timeout, struct lextiof_session_private *arg ) argument
H A Dos-ip.c143 extern int _poll(struct pollfd *fds, unsigned long nfds, int timeout);
1534 nsldapi_ext_compat_poll( LDAP_X_PollFD fds[], int nfds, int timeout, argument
1549 if ( fds[ i ].lpoll_fd < 0 ) {
1553 if ( fds[ i ].lpoll_fd >= FD_SETSIZE ) {
1558 if ( 0 != ( fds[i].lpoll_events & LDAP_X_POLLIN )) {
1559 FD_SET( fds[i].lpoll_fd, &readfds );
1562 if ( 0 != ( fds[i].lpoll_events & LDAP_X_POLLOUT )) {
1563 FD_SET( fds[i].lpoll_fd, &writefds );
1566 fds[i].lpoll_revents = 0; /* clear revents */
1568 if ( fds[
[all...]
/osnet-11/usr/src/lib/libpcp/common/
H A Dlibpcp.c1420 struct pollfd fds[1]; local
1422 fds[0].events = POLLIN | POLLPRI;
1423 fds[0].revents = 0;
1424 fds[0].fd = fd;
1426 if (poll(fds, 1, glvc_timeout * MILLISEC) <= 0) {
1436 if ((poll(fds, 1, glvc_timeout * MILLISEC)) < 0)
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_open.c715 int *fds = realloc(dfp->df_fds, size * sizeof (int)); local
717 if (fds == NULL)
720 dfp->df_fds = fds;
/osnet-11/usr/src/lib/auditd_plugins/remote/
H A Dtransport.c506 struct pollfd fds; local
523 fds.fd = sockfd;
524 fds.events = POLLOUT;
526 fds.revents = 0;
527 rc = poll(&fds, 1, timeout * 1000);
537 if (fds.revents) {
555 struct pollfd fds; local
558 fds.fd = fd;
559 fds.events = POLLOUT;
562 fds
604 struct pollfd fds; local
953 struct pollfd fds[2]; local
[all...]
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c176 s10_poll(sysret_t *rval, struct pollfd *fds, nfds_t nfd, int timeout) argument
190 fds, nfd, tsp, NULL));
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c1193 int fds; local
1228 switch (fds = poll(pfdp, npfd, poll_time)) {
1266 (*_svc_getreqset_proc)(&pfdp[1], fds);
/osnet-11/usr/src/lib/libipadm/common/
H A Dlibipadm.c447 struct pollfd fds[1]; local
457 fds[0].fd = rtsock;
458 fds[0].events = POLLIN;
459 fds[0].revents = 0;
471 if (poll(fds, 1, DAD_WAIT_TIME - (int)now) <= 0)
/osnet-11/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c1018 fd_set fds; local
1023 FD_ZERO (&fds);
1024 FD_SET (serial_fd, &fds);
1029 if (select (serial_fd + 1, &fds, 0, 0, &to) > 0)

Completed in 131 milliseconds

12