/freebsd/usr.sbin/bhyve/ |
H A D | rfb.c | 110 int cfd; member 812 int cfd; in rfb_wr_thr() local 816 cfd = rc->cfd; in rfb_wr_thr() 820 while (rc->cfd >= 0) { in rfb_wr_thr() 822 FD_SET(cfd, &rfds); in rfb_wr_thr() 878 rc->cfd = cfd; in rfb_handle() 1041 len = read(cfd, buf, 1); in rfb_handle() 1075 rc->cfd = -1; in rfb_handle() 1088 int cfd; in rfb_thr() local 1114 rfb_handle(rc, cfd); in rfb_thr() [all …]
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | msg.h | 34 int cfd[2]; member 49 if (pipe(fds->cfd) == -1) { in msg_open() 62 CLOSEFD(fds->cfd[0]); in msg_close() 63 CLOSEFD(fds->cfd[1]); in msg_close() 70 CLOSEFD(fds->cfd[1]); in msg_write_child() 78 rv = read(fds->cfd[0], msg, len); in msg_write_child() 89 CLOSEFD(fds->cfd[0]); in msg_write_parent() 92 rv = write(fds->cfd[1], msg, len); in msg_write_parent() 107 CLOSEFD(fds->cfd[0]); in msg_read_parent() 124 CLOSEFD(fds->cfd[1]); in msg_read_child() [all …]
|
/freebsd/usr.sbin/bluetooth/sdpd/ |
H A D | server.c | 295 int32_t cfd, priv; in server_accept_client() local 303 if (cfd < 0) { in server_accept_client() 321 close(cfd); in server_accept_client() 330 close(cfd); in server_accept_client() 344 close(cfd); in server_accept_client() 358 close(cfd); in server_accept_client() 384 close(cfd); in server_accept_client() 389 FD_SET(cfd, &srv->fdset); in server_accept_client() 390 if (srv->maxfd < cfd) in server_accept_client() 391 srv->maxfd = cfd; in server_accept_client() [all …]
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | faccessat.h | 40 int cfd, error, ret; in faccessat() local 47 cfd = open(".", O_RDONLY | O_DIRECTORY); in faccessat() 48 if (cfd == -1) in faccessat() 53 (void)close(cfd); in faccessat() 61 (void)fchdir(cfd); in faccessat() 62 (void)close(cfd); in faccessat()
|
H A D | renameat.h | 39 int cfd, error, ret; in renameat() local 46 cfd = open(".", O_RDONLY | O_DIRECTORY); in renameat() 47 if (cfd == -1) in renameat() 52 (void)close(cfd); in renameat() 60 (void)fchdir(cfd); in renameat() 61 (void)close(cfd); in renameat()
|
H A D | unlinkat.h | 41 int cfd, error, ret; in unlinkat() local 43 cfd = open(".", O_RDONLY | O_DIRECTORY); in unlinkat() 44 if (cfd == -1) in unlinkat() 49 (void)close(cfd); in unlinkat() 60 (void)fchdir(cfd); in unlinkat() 61 (void)close(cfd); in unlinkat()
|
H A D | fstatat.h | 42 int cfd, error, ret; in fstatat() local 44 cfd = open(".", O_RDONLY | O_DIRECTORY); in fstatat() 45 if (cfd == -1) in fstatat() 50 (void)close(cfd); in fstatat() 61 (void)fchdir(cfd); in fstatat() 62 (void)close(cfd); in fstatat()
|
H A D | openat.h | 40 int cfd, ffd, error; in openat() local 42 cfd = open(".", O_RDONLY | O_DIRECTORY); in openat() 43 if (cfd == -1) in openat() 48 (void)close(cfd); in openat() 67 (void)fchdir(cfd); in openat() 68 (void)close(cfd); in openat()
|
/freebsd/crypto/openssl/engines/ |
H A D | e_devcrypto.c | 52 static int cfd = -1; variable 284 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher() 526 ioctl(cfd, CIOCFSESSION, &sess.ses); in prepare_cipher_methods() 776 return ioctl(cfd, CIOCCRYPT, &cryp); in digest_op() 1225 if (cfd >= 0) in open_devcrypto() 1237 if (ioctl(fd, CRIOGET, &cfd) < 0) { in open_devcrypto() 1240 cfd = -1; in open_devcrypto() 1245 cfd = fd; in open_devcrypto() 1255 if (cfd < 0) in close_devcrypto() 1257 ret = close(cfd); in close_devcrypto() [all …]
|
/freebsd/contrib/bearssl/samples/ |
H A D | server_basic.c | 315 int cfd; in main() local 321 cfd = accept_client(fd); in main() 322 if (cfd < 0) { in main() 396 br_sslio_init(&ioc, &sc.eng, sock_read, &cfd, sock_write, &cfd); in main() 434 close(cfd); in main()
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | ssltestlib.h | 24 SSL **cssl, int sfd, int cfd); 25 int create_test_sockets(int *cfd, int *sfd);
|
H A D | ssltestlib.c | 910 int afd = -1, cfd = -1, sfd = -1; in create_test_sockets() local 929 cfd = socket(AF_INET, SOCK_STREAM, 0); in create_test_sockets() 930 if (cfd < 0) in create_test_sockets() 941 if (!cfd_connected && connect(cfd, (struct sockaddr*)&sin, sizeof(sin)) < 0) in create_test_sockets() 947 if (set_nb(cfd) == -1 || set_nb(sfd) == -1) in create_test_sockets() 950 *cfdp = cfd; in create_test_sockets() 955 if (cfd != -1) in create_test_sockets() 956 close(cfd); in create_test_sockets() 966 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() argument 981 || !TEST_ptr(c_to_s_bio = BIO_new_socket(cfd, BIO_NOCLOSE))) in create_ssl_objects2()
|
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_hx.c | 48 int cfd = tfd; in hex_close() local 51 return (close(cfd)); in hex_close()
|
H A D | ipft_tx.c | 104 int cfd = tfd; in text_close() local 107 return (close(cfd)); in text_close()
|
/freebsd/contrib/netbsd-tests/lib/libc/ttyio/ |
H A D | t_ptm.c | 86 REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1); in ATF_TC_BODY() 102 (void)close(ptm.cfd); in ATF_TC_BODY()
|
/freebsd/lib/libpmcstat/ |
H A D | libpmcstat_logging.c | 428 int error, fd, cfd; in pmcstat_open_log() local 486 cfd = accept(fd, NULL, NULL); in pmcstat_open_log() 488 if (cfd < 0) { in pmcstat_open_log() 493 fd = cfd; in pmcstat_open_log()
|
/freebsd/contrib/netbsd-tests/ipf/input/ |
H A D | ni12 | 16 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
|
H A D | ni8 | 14 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
|
H A D | ni9 | 16 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
|
H A D | ni11 | 16 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
|
H A D | ni10 | 19 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
|
/freebsd/usr.sbin/moused/ |
H A D | moused.c | 395 int cfd; /* /dev/consolectl file descriptor */ member 422 .cfd = -1, 916 if (rodent.cfd != -1) in main() 917 close(rodent.cfd); in main() 918 rodent.mfd = rodent.cfd = -1; in main() 1003 if ((rodent.cfd = open("/dev/consolectl", O_RDWR, 0)) == -1) in moused() 1043 extioctl = (ioctl(rodent.cfd, CONS_MOUSECTL, &mouse) == 0); in moused() 1275 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused() 1291 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused() 1314 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
H A D | TargetItinerary.td | 159 class ComboFuncUnits<list<ComboFuncData> cfd> { 160 list<ComboFuncData> CFD = cfd;
|
/freebsd/contrib/ldns/ |
H A D | acx_nlnetlabs.m4 | 961 int sfd, cfd; 992 cfd = socket(PF_INET, SOCK_DGRAM, 0); 993 if(cfd == -1) { 998 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 1010 if(sendto(cfd, &i, sizeof(i), 0, 1051 close(cfd);
|
/freebsd/contrib/unbound/ |
H A D | acx_nlnetlabs.m4 | 1046 int sfd, cfd; 1077 cfd = socket(PF_INET, SOCK_DGRAM, 0); 1078 if(cfd == -1) { 1083 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 1095 if(sendto(cfd, &i, sizeof(i), 0, 1136 close(cfd);
|