/src/sys/compat/sys/ |
ttycom.h | 51 int cfd; member in struct:compat_60_ptmget
|
/src/tests/lib/libc/sys/ |
msg.h | 34 int cfd[2]; member in struct:msg_fds 49 if (pipe(fds->cfd) == -1) { 62 CLOSEFD(fds->cfd[0]); 63 CLOSEFD(fds->cfd[1]); 70 CLOSEFD(fds->cfd[1]); 78 rv = read(fds->cfd[0], msg, len); 89 CLOSEFD(fds->cfd[0]); 92 rv = write(fds->cfd[1], msg, len); 107 CLOSEFD(fds->cfd[0]); 114 rv = write(fds->cfd[1], msg, len) [all...] |
/src/tests/net/net/ |
t_mapped.c | 168 int sfd = -1, cfd = -1, afd = -1; local in function:test 199 cfd = mksocket(cfam); 202 if (connect(cfd, (const struct sockaddr *)&caddr, clen) == -1) 216 if (write(cfd, mymsg, sizeof(mymsg)) != sizeof(mymsg)) 218 (void)close(cfd); 234 (void)close(cfd); 243 (void)close(cfd);
|
/src/usr.sbin/sdpd/ |
server.c | 350 int cfd; local in function:server_accept_client 354 cfd = accept(fd, NULL, NULL); 355 } while (cfd == -1 && errno == EINTR); 357 if (cfd == -1) { 365 if (cfd >= FD_SETSIZE) { 367 close(cfd); 371 assert(!FD_ISSET(cfd, &srv->fdset)); 372 assert(!srv->fdidx[cfd].valid); 379 if (getsockname(cfd, (struct sockaddr *)&sa, &len) == -1) 383 if (getsockopt(cfd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &omtu, &len) == -1 [all...] |
/src/sys/kern/ |
tty_ptm.c | 304 pty_fill_ptmget(struct lwp *l, dev_t dev, int cfd, int sfd, void *data, struct mount *mp) 312 ptmg->cfd = cfd == -1 ? minor(dev) : cfd; 390 int cfd, sfd; local in function:ptmioctl 400 if ((error = pty_alloc_master(l, &cfd, &newdev, mp, 0)) != 0) 410 if ((error = pty_fill_ptmget(l, newdev, cfd, sfd, data, mp)) != 0) 427 fp = fd_getfile(cfd); 429 fd_close(cfd);
|
/src/sys/sys/ |
ttycom.h | 81 int cfd; member in struct:ptmget
|
/src/usr.bin/config/ |
main.c | 440 int cfd; local in function:main 451 cfd = mkstemp(cname); 452 if (cfd == -1) 456 if (!extract_config(conffile, cname, cfd)) { 463 close(cfd); 1820 extract_config(const char *kname, const char *cname, int cfd) 1865 if (write(cfd, uline, (size_t)j + 1) == -1)
|
/src/usr.sbin/moused/ |
moused.c | 351 int cfd; /* /dev/wsmousectl file descriptor */ member in struct:rodentparam 371 .cfd = -1, 823 if (rodent.cfd != -1) 824 close(rodent.cfd); 825 rodent.mfd = rodent.cfd = -1; 841 if (ioctl(rodent.cfd, WSMUXIO_INJECTEVENT, &ev) < 0) 860 if ((rodent.cfd = open(wsm, O_WRONLY, 0)) == -1) 998 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse);
|