| /src/usr.sbin/bhyve/ |
| H A D | rfb.c | 119 int cfd; member 269 rfb_send_server_init_msg(struct rfb_softc *rc, int cfd) in rfb_send_server_init_msg() argument 292 if (stream_write(cfd, &sinfo, sizeof(sinfo)) <= 0) in rfb_send_server_init_msg() 294 if (stream_write(cfd, rc->fbname, rc->fbnamelen) <= 0) in rfb_send_server_init_msg() 300 rfb_send_resize_update_msg(struct rfb_softc *rc, int cfd) in rfb_send_resize_update_msg() argument 309 if (stream_write(cfd, &supdt_msg, sizeof(struct rfb_srvr_updt_msg)) <= 0) in rfb_send_resize_update_msg() 318 if (stream_write(cfd, &srect_hdr, sizeof(struct rfb_srvr_rect_hdr)) <= 0) in rfb_send_resize_update_msg() 324 rfb_send_extended_keyevent_update_msg(struct rfb_softc *rc, int cfd) in rfb_send_extended_keyevent_update_msg() argument 333 if (stream_write(cfd, &supdt_msg, sizeof(struct rfb_srvr_updt_msg)) <= 0) in rfb_send_extended_keyevent_update_msg() 342 if (stream_write(cfd, &srect_hdr, sizeof(struct rfb_srvr_rect_hdr)) <= 0) in rfb_send_extended_keyevent_update_msg() [all …]
|
| /src/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() 114 rv = write(fds->cfd[1], msg, len); in msg_read_parent() [all …]
|
| /src/usr.sbin/bluetooth/sdpd/ |
| H A D | server.c | 295 int32_t cfd, priv; in server_accept_client() local 300 cfd = accept(fd, NULL, NULL); in server_accept_client() 301 } while (cfd < 0 && errno == EINTR); in server_accept_client() 303 if (cfd < 0) { in server_accept_client() 310 assert(!FD_ISSET(cfd, &srv->fdset)); in server_accept_client() 311 assert(!srv->fdidx[cfd].valid); in server_accept_client() 318 if (getsockname(cfd,(struct sockaddr*)&srv->req_sa,&size) < 0) { in server_accept_client() 321 close(cfd); in server_accept_client() 327 if (getsockopt(cfd,SOL_L2CAP,SO_L2CAP_OMTU,&omtu,&size) < 0) { in server_accept_client() 330 close(cfd); in server_accept_client() [all …]
|
| /src/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 | 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 | 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 | 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()
|
| /src/crypto/openssl/engines/ |
| H A D | e_devcrypto.c | 53 static int cfd = -1; variable 89 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session() 225 ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess); in cipher_init() 227 ret = ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess); in cipher_init() 280 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher() 452 if (ioctl(cfd, CIOCGSESSION2, &sess) == 0) { in prepare_cipher_methods() 456 if (ioctl(cfd, CIOCGSESSION2, &sess) < 0) { in prepare_cipher_methods() 463 if (ioctl(cfd, CIOCGSESSION, &sess) < 0) { in prepare_cipher_methods() 498 if (ioctl(cfd, CIOCFINDDEV, &fop) == 0) { in prepare_cipher_methods() 503 if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0) { in prepare_cipher_methods() [all …]
|
| /src/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()
|
| /src/crypto/openssl/test/ |
| H A D | bio_tfo_test.c | 207 int cfd = -1; /* client socket */ in test_fd_tfo() local 296 if (!TEST_int_ge(cfd = BIO_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol, 0), 0)) in test_fd_tfo() 314 if (!BIO_connect(cfd, baddr, client_flags)) { in test_fd_tfo() 358 if (!TEST_int_ge(sendto(cfd, SOCKET_DATA, SOCKET_DATA_LEN, OSSL_TFO_SENDTO, in test_fd_tfo() 365 if (!TEST_int_ge(writesocket(cfd, SOCKET_DATA, SOCKET_DATA_LEN), 0)) { in test_fd_tfo() 407 BIO_closesocket(cfd); in test_fd_tfo()
|
| /src/crypto/openssl/test/helpers/ |
| H A D | ssltestlib.c | 1051 int afd = -1, cfd = -1, sfd = -1; in create_test_sockets() local 1076 cfd = BIO_socket(AF_INET, socktype, in create_test_sockets() 1078 if (cfd == INVALID_SOCKET) in create_test_sockets() 1099 if (!cfd_connected && connect(cfd, (struct sockaddr *)&sin, sizeof(sin)) < 0) in create_test_sockets() 1105 if (!BIO_socket_nbio(cfd, 1) || !BIO_socket_nbio(sfd, 1)) in create_test_sockets() 1108 *cfdp = cfd; in create_test_sockets() 1113 if (cfd != -1) in create_test_sockets() 1114 close(cfd); in create_test_sockets() 1124 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() argument 1140 || !TEST_ptr(c_to_s_bio = BIO_new_socket(cfd, BIO_NOCLOSE))) in create_ssl_objects2() [all …]
|
| H A D | ssltestlib.h | 34 SSL **cssl, int sfd, int cfd);
|
| H A D | quictestlib.c | 203 int cfd, sfd; in qtest_create_quic_objects() local 209 if (!TEST_true(create_test_sockets(&cfd, &sfd, SOCK_DGRAM, peeraddr))) in qtest_create_quic_objects() 211 cbio = BIO_new_dgram(cfd, 1); in qtest_create_quic_objects() 213 close(cfd); in qtest_create_quic_objects()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/contrib/netbsd-tests/ipf/input/ |
| H A D | ni9 | 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 | ni12 | 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
|
| /src/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetItinerary.td | 159 class ComboFuncUnits<list<ComboFuncData> cfd> { 160 list<ComboFuncData> CFD = cfd;
|
| /src/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);
|