HomeSort by relevance Sort by last modified time
    Searched defs:fds (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /onnv/onnv-gate/usr/src/cmd/lp/lib/msgs/
mcreate.c 49 int fds[2]; local
52 if (pipe(fds) != 0)
56 if (ioctl(fds[1], I_PUSH, "connld") != 0)
60 if (fattach(fds[1], path) != 0)
70 md->readfd = fds[0];
75 md->writefd = fds[1];
77 md->writefd = fds[0];
78 close(fds[1]);
mconnect.c 106 int fds[2]; local
108 if (pipe(fds) != 0)
111 if (ioctl(fd, I_SENDFD, fds[1]) != 0)
116 fd = fds[0];
117 (void)_Close(fds[1]);
streamio.c 59 struct pollfd fds; local
61 fds.fd = mdp->writefd;
62 fds.events = POLLOUT;
63 fds.revents = 0;
65 (void) poll(&fds, 1, 1000);
66 if (fds.revents & (POLLHUP | POLLERR | POLLNVAL)) {
71 if (!(fds.revents & POLLOUT)) {
  /onnv/onnv-gate/usr/src/lib/libbc/libc/sys/common/
dup.c 34 int ret, fds; local
39 if ((fds = fd_get(fd)) != -1)
40 fd_add(ret, fds);
dup2.c 44 int fds; /* duplicate files descriptor */ local
74 if ((fds = fd_get(fildes)) != -1)
75 fd_add(fildes2, fds);
fdlist.c 35 int fds[NUM_FD]; member in struct:fd_lst
50 lst->fds[i] = -1;
58 fd_add(int fd, int fds)
69 fdc->fds[i] = fds;
90 fdtail->fds[0] = fds;
105 fdc->fds[i] = -1;
124 return (fdc->fds[i]);
  /onnv/onnv-gate/usr/src/cmd/dtrace/test/tst/common/io/
tst.fds.c 49 int i, n, fds[10]; local
76 * To test the fds[] array, we open /dev/null (a file with reliable
79 fds[n++] = open(file, O_RDONLY);
80 fds[n++] = open(file, O_WRONLY);
81 fds[n++] = open(file, O_RDWR);
83 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC |
87 fds[n++] = open(file, O_RDWR);
88 (void) lseek(fds[n - 1], 123, SEEK_SET);
93 * our DTrace script into recording the content of the fds[] array.
96 (void) ioctl(fds[i], -1, NULL)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libbc/libc/sys/4.2/
read.c 51 int fds, ret, off; local
readv.c 52 int fds, ret, off; local
  /onnv/onnv-gate/usr/src/lib/libgen/common/
p2open.c 53 int fds[2]; local
55 if (__p2open(cmd, fds) == -1)
58 fp[0] = fdopen(fds[0], "w");
59 fp[1] = fdopen(fds[1], "r");
70 __p2open(const char *cmd, int fds[2])
105 fds[0] = tocmd[1];
106 fds[1] = fromcmd[0];
113 int fds[2]; local
119 fds[0] = fdp[0];
120 fds[1] = fdp[1]
    [all...]
  /onnv/onnv-gate/usr/src/cmd/bnu/
unknown.c 96 int fds[2]; local
114 if ( setuid(getuid()) == -1 || pipe(fds) != 0
115 || write(fds[1], ebuf, strlen(ebuf)) != strlen(ebuf)
116 || close(fds[1]) != 0 )
119 if ( fds[0] != 0 ) {
121 if ( dup(fds[0]) != 0 )
  /onnv/onnv-gate/usr/src/cmd/prstat/
prfile.h 47 typedef struct fds { struct
53 struct fds *fds_next;
prfile.c 186 fds_t *fds; local
190 for (fds = fds_tbl[hash]; fds && fds->fds_pid != pid;
191 fds = fds->fds_next) /* finding pid */
192 fds_prev = fds;
194 if (fds) { /* if pid was found */
196 fd_close(fds->fds_psinfo);
197 fd_close(fds->fds_usage)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/wbem/provider/tools/rds/
rdfile.h 47 typedef struct fds { struct
53 struct fds *fds_next;
rdfile.c 204 fds_t *fds; local
208 for (fds = fds_tbl[hash]; fds && fds->fds_pid != pid;
209 fds = fds->fds_next) /* finding pid */
210 fds_prev = fds;
212 if (fds) { /* if pid was found */
214 fd_close(fds->fds_psinfo);
215 fd_close(fds->fds_usage)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libast/common/sfio/
sfpoll.c 101 { 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,m,tm)) < 0
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ttymon/
tmpeek.c 67 struct pollfd fds[1]; local
77 fds[0].fd = 0;
78 fds[0].events = POLLIN;
86 if ((j = poll(fds,1,-1)) == -1) {
95 if (fds[0].revents & POLLHUP) {
99 if (fds[0].revents & POLLIN) {
100 ptr = do_peek(fds[0].fd, 255);
102 return(process(fds[0].fd,ptr));
  /onnv/onnv-gate/usr/src/lib/libc/port/gen/
closefrom.c 62 int *fds; local
68 fds = alloca(FDS_SZ);
81 fds = memcpy(alloca(fds_sz * 2), fds, fds_sz);
84 fds[nfds++] = i;
99 fds = memcpy(alloca(fds_sz * 2), fds, fds_sz);
102 fds[nfds++] = i;
117 if ((rv = func(cd, fds[i])) != 0)
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
script_handler.c 286 int fds[2]; local
308 if (pipe(fds) < 0) {
315 (void) close(fds[0]);
316 (void) close(fds[1]);
325 (void) close(fds[0]);
328 run_script(dsmp, event, fds[1]);
332 (void) close(fds[1]);
335 if (read(fds[0], &dsmp->dsm_script_pid, sizeof (pid_t)) !=
339 (void) close(fds[0]);
344 event_id = iu_register_event(eh, fds[0], POLLIN, script_exit, dsmp)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/isns/isnsd/
server.c 235 struct pollfd fds; local
270 fds.fd = s;
271 fds.events = (POLLIN | POLLRDNORM);
272 fds.revents = 0;
280 poll_ret = poll(&fds, 1, 1000);
  /onnv/onnv-gate/usr/src/cmd/saf/
misc.c 79 struct pollfd fds; /* array of fds to poll */ local
96 fds.fd = Cfd;
97 fds.events = POLLIN;
98 fds.revents = 0;
99 if (poll(&fds, 1, 0) < 0)
101 switch (fds.revents) {
  /onnv/onnv-gate/usr/src/cmd/ssh/ssh-http-proxy-connect/
ssh-http-proxy-connect.c 106 struct pollfd fds[2]; local
248 fds[0].fd = STDIN_FILENO; /* Poll stdin for data. */
249 fds[1].fd = sock; /* Poll the socket for data. */
250 fds[0].events = fds[1].events = POLLIN;
253 if (poll(fds, 2, INFTIM) == -1) {
260 if (fds[0].revents & POLLIN) {
265 } else if (fds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) {
271 if (fds[1].revents & POLLIN) {
276 } else if (fds[1].revents & (POLLERR | POLLHUP | POLLNVAL))
    [all...]
  /onnv/onnv-gate/usr/src/lib/smbsrv/libsmb/common/
smb_nicmon.c 171 int fds[2]; local
173 if ((pipe(fds)) < 0) {
177 *read_pipe = fds[0];
178 *write_pipe = fds[1];
  /onnv/onnv-gate/usr/src/lib/print/libpapi-lpd/common/
lpd-misc.c 128 int ac, rc = -1, fds[2]; local
175 pipe(fds);
177 socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
184 dup2(fds[1], 1);
196 rc = recvfd(fds[0]);
199 close(fds[0]);
200 close(fds[1]);
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/
popen.c 295 int i, fds; local
301 fds = OPEN_MAX;
303 fds = 31;
309 fds = rlp.rlim_cur;
314 fds = i;
317 fds = sysconf(_SC_OPEN_MAX);
322 for (i = startfd; i < fds; i++)

Completed in 780 milliseconds

1 2 3 4