Searched refs:pollfd (Results 1 - 25 of 129) sorted by relevance

123456

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dnapms.c79 struct pollfd pollfd; local
81 if (poll(&pollfd, 0L, ms) == -1)
/illumos-gate/usr/src/cmd/ptools/pwait/
H A Dpwait.c53 struct pollfd *pollfd; local
54 struct pollfd *pfd;
98 pollfd = (struct pollfd *)malloc(argc*sizeof (struct pollfd));
99 if (pollfd == NULL) {
117 pfd = &pollfd[i];
136 while (poll(pollfd, argc, INFTIM) < 0) {
144 pfd = &pollfd[
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpoll.c34 ppoll(struct pollfd *_RESTRICT_KYWD fds, nfds_t nfd,
42 poll(struct pollfd *fds, nfds_t nfd, int timeout)
H A Dselect_large_fdset.c70 static struct pollfd *realloc_fds(int *, struct pollfd **, struct pollfd *);
85 * Rather than have a mammoth pollfd (65K) list on the stack
90 struct pollfd pfd[DEFAULT_POLL_SIZE];
91 struct pollfd *p;
92 struct pollfd *pfd_list;
134 * the appropriate pollfd struct.
141 * nused reflects the number of pollfd structs currently used
372 struct pollfd *
[all...]
H A Dselect.c66 struct pollfd *pfd;
67 struct pollfd *p;
83 p = pfd = (struct pollfd *)alloca(nfds * sizeof (struct pollfd));
107 * the appropriate pollfd struct.
137 n = (int)(p - pfd); /* number of pollfd's */
/illumos-gate/usr/src/head/
H A Dpoll.h50 extern int ppoll(struct pollfd *_RESTRICT_KYWD, nfds_t,
/illumos-gate/usr/src/test/os-tests/tests/poll/
H A Dpoll_test.c181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed) argument
193 ret = ioctl(pollfd, DP_POLL, &arg);
204 clear_fd(const char *testName, int pollfd, int testfd) argument
213 ret = write(pollfd, &fd, sizeof (pollfd_t));
291 dev_poll_no_fd_test(int pollfd) argument
300 ret = dppoll(pollfd, NULL, 0, timeout * 1000, &elapsed);
319 dev_poll_with_fds_test(int pollfd, int testfd) argument
332 clear_fd(testName, pollfd, testfd);
341 ret = write(pollfd, fds, sizeof (pollfd_t));
352 ret = dppoll(pollfd, fd
372 int pollfd; local
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dpoll.h48 typedef struct pollfd { struct
76 #define POLLNVAL 0x0020 /* invalid pollfd entry */
152 int poll(struct pollfd *, nfds_t, int);
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dpoll_solaris.c310 struct pollfd *pollfd = alloca(sizeof(struct pollfd)*(numpollfd+1)); local
313 struct pollfd pollfd[numpollfd+1]; local
326 errormsg(SH_DICT, ERROR_system(1), "missing pollfd %s[%s].fd", varname, subname);
329 errormsg(SH_DICT, ERROR_system(1), "invalid pollfd fd %d", fd);
331 pollfd[i].fd = fd;
335 errormsg(SH_DICT, ERROR_system(1), "missing pollfd %s[%s].events", varname, subname);
339 errormsg(SH_DICT, ERROR_system(1), "missing pollfd event
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dutil.c47 /* number of pollfd we grow the pollfd array by at a time in set_pollfd() */
71 struct pollfd *poll_fds = NULL;
172 struct pollfd *
187 struct pollfd *p;
194 sizeof (struct pollfd)))) == NULL) {
216 struct pollfd *p;
228 struct pollfd *p = find_pollfd(fd);
H A Dinetd_impl.h243 extern struct pollfd *poll_fds;
265 extern struct pollfd *find_pollfd(int);
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_sel2poll.c43 * initialize the supplied pollfd array for RPC's use (RPC only
44 * polls for input events). We return the number of pollfd slots
51 struct pollfd *p0) /* target pollfd array */
55 struct pollfd *p = p0;
59 * the appropriate pollfd struct.
81 * elements. This function scans the source pollfd array
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmlisten.c53 static struct pollfd * PollFdList = NULL;
72 PollFdList = (struct pollfd*) Malloc(ConsSize * sizeof(struct pollfd));
90 struct pollfd * fdp;
104 PollFdList = (struct pollfd*) Realloc(PollFdList, ConsSize * sizeof(struct pollfd));
116 PollFdList = (struct pollfd*) Realloc(PollFdList, ConsSize * sizeof(struct pollfd));
176 struct pollfd * fdp;
H A Dmdestroy.c43 struct pollfd pfd;
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c51 struct pollfd pfd;
/illumos-gate/usr/src/lib/libinetutil/common/
H A Dlibinetutil_impl.h103 struct pollfd *iueh_pollfds; /* array of pollfds */
105 iu_event_node_t *iueh_events; /* corresponding pollfd info */
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Datomicio.c49 struct pollfd pfd;
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmglobal.c64 struct pollfd *Pollp; /* ptr to an array of poll struct */
65 int Npollfd; /* size of the pollfd array */
H A Dtmhandler.c227 struct pollfd *fdp;
385 extern struct pollfd *Pollp;
406 /* need to malloc more pollfd structure */
411 if ((Pollp = (struct pollfd *)
412 malloc((unsigned)(Npollfd * sizeof(struct pollfd))))
413 == (struct pollfd *)NULL)
527 struct pollfd pfd[2];
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Dglobal.h80 extern struct pollfd *fdarray;
H A Dmain.c51 struct pollfd *fdarray;
172 if ((fdarray = malloc(FDOFFSET * sizeof (struct pollfd))) == NULL) {
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Dutil.c51 struct pollfd pfd = { fd, POLLIN, 0 };
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c93 static void cvcd_connect(int fd, struct pollfd *);
95 static void cvcd_read(struct pollfd *);
126 struct pollfd *cvcd_pfd;
249 cvcd_pfd = (struct pollfd *)malloc(3*sizeof (struct pollfd));
250 if (cvcd_pfd == (struct pollfd *)NULL) {
254 (void) memset((void *)cvcd_pfd, 0, 3*sizeof (struct pollfd));
581 cvcd_connect(int fd, struct pollfd *pfd)
690 cvcd_read(struct pollfd *pd)
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_net.c94 struct pollfd **, nfds_t *, struct bc_ifs *);
97 static SLPError mc_sendmsg(struct pollfd *, struct msghdr *,
99 static SLPError bc_sendmsg(struct pollfd *, struct msghdr *, struct bc_ifs *);
100 static void mc_recvmsg(struct pollfd *, nfds_t, slp_handle_impl_t *,
104 static void free_pfds(struct pollfd *, nfds_t);
110 struct pollfd [], nfds_t);
200 struct pollfd pfd[1];
341 struct pollfd *pfd;
701 struct pollfd **fds, nfds_t *nfds,
760 /* allocate a pollfd arra
[all...]
/illumos-gate/usr/src/lib/librsm/inc/
H A Drsmapi.h276 int rsm_memseg_get_pollfd(void *, struct pollfd *);
291 int rsm_intr_signal_wait_pollfd(struct pollfd [], nfds_t, int, int *);

Completed in 172 milliseconds

123456