Home
last modified time | relevance | path

Searched refs:cfd (Results 1 – 25 of 32) sorted by relevance

12

/src/usr.sbin/bhyve/
H A Drfb.c119 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 Dmsg.h34 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 Dserver.c295 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 Dfaccessat.h40 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 Dunlinkat.h41 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 Drenameat.h39 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 Dfstatat.h42 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 Dopenat.h40 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 De_devcrypto.c53 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 Dserver_basic.c315 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 Dbio_tfo_test.c207 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 Dssltestlib.c1051 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 Dssltestlib.h34 SSL **cssl, int sfd, int cfd);
H A Dquictestlib.c203 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 Dipft_hx.c48 int cfd = tfd; in hex_close() local
51 return (close(cfd)); in hex_close()
H A Dipft_tx.c104 int cfd = tfd; in text_close() local
107 return (close(cfd)); in text_close()
/src/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c86 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 Dlibpmcstat_logging.c428 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 Dni916 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
H A Dni814 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
H A Dni1216 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
H A Dni1116 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
H A Dni1019 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
/src/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetItinerary.td159 class ComboFuncUnits<list<ComboFuncData> cfd> {
160 list<ComboFuncData> CFD = cfd;
/src/contrib/ldns/
H A Dacx_nlnetlabs.m4961 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);

12