Home
last modified time | relevance | path

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

/freebsd-13.1/usr.sbin/bhyve/
H A Drfb.c112 int cfd; member
749 int cfd; in rfb_wr_thr() local
753 cfd = rc->cfd; in rfb_wr_thr()
757 while (rc->cfd >= 0) { in rfb_wr_thr()
759 FD_SET(cfd, &rfds); in rfb_wr_thr()
815 rc->cfd = cfd; in rfb_handle()
975 len = read(cfd, buf, 1); in rfb_handle()
1006 rc->cfd = -1; in rfb_handle()
1019 int cfd; in rfb_thr() local
1042 rfb_handle(rc, cfd); in rfb_thr()
[all …]
/freebsd-13.1/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()
124 CLOSEFD(fds->cfd[1]); in msg_read_child()
[all …]
/freebsd-13.1/usr.sbin/bluetooth/sdpd/
H A Dserver.c296 int32_t cfd, priv; in server_accept_client() local
304 if (cfd < 0) { in server_accept_client()
322 close(cfd); in server_accept_client()
331 close(cfd); in server_accept_client()
345 close(cfd); in server_accept_client()
359 close(cfd); in server_accept_client()
385 close(cfd); in server_accept_client()
390 FD_SET(cfd, &srv->fdset); in server_accept_client()
391 if (srv->maxfd < cfd) in server_accept_client()
392 srv->maxfd = cfd; in server_accept_client()
[all …]
/freebsd-13.1/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()
/freebsd-13.1/crypto/openssl/crypto/engine/
H A Deng_devcrypto.c38 static int cfd; variable
41 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session()
220 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher()
553 return ioctl(cfd, CIOCCRYPT, &cryp); in digest_op()
635 if (ioctl(cfd, CIOCGSESSION, &sess1) < 0) in devcrypto_test_digest()
646 ioctl(cfd, CIOCFSESSION, &sess1.ses); in devcrypto_test_digest()
750 close(cfd); in devcrypto_unload()
772 if (ioctl(fd, CRIOGET, &cfd) < 0) { in engine_load_devcrypto_int()
775 cfd = -1; in engine_load_devcrypto_int()
780 cfd = fd; in engine_load_devcrypto_int()
[all …]
/freebsd-13.1/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()
/freebsd-13.1/sbin/ipf/libipf/
H A Dipft_hx.c53 int cfd = tfd; in hex_close() local
56 return (close(cfd)); in hex_close()
H A Dipft_tx.c109 int cfd = tfd; in text_close() local
112 return (close(cfd)); in text_close()
/freebsd-13.1/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()
/freebsd-13.1/lib/libpmcstat/
H A Dlibpmcstat_logging.c431 int error, fd, cfd; in pmcstat_open_log() local
489 cfd = accept(fd, NULL, NULL); in pmcstat_open_log()
491 if (cfd < 0) { in pmcstat_open_log()
496 fd = cfd; in pmcstat_open_log()
/freebsd-13.1/contrib/netbsd-tests/ipf/input/
H A Dni1116 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 Dni916 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
H A Dni1019 4500 0058 809a 0000 ff01 2cfd 0303 0303 0404 0404
/freebsd-13.1/usr.sbin/moused/
H A Dmoused.c398 int cfd; /* /dev/consolectl file descriptor */ member
425 .cfd = -1,
919 if (rodent.cfd != -1) in main()
920 close(rodent.cfd); in main()
921 rodent.mfd = rodent.cfd = -1; in main()
1006 if ((rodent.cfd = open("/dev/consolectl", O_RDWR, 0)) == -1) in moused()
1046 extioctl = (ioctl(rodent.cfd, CONS_MOUSECTL, &mouse) == 0); in moused()
1278 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
1294 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
1317 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetItinerary.td159 class ComboFuncUnits<list<ComboFuncData> cfd> {
160 list<ComboFuncData> CFD = cfd;
/freebsd-13.1/contrib/unbound/
H A Dacx_nlnetlabs.m4985 int sfd, cfd;
1016 cfd = socket(PF_INET, SOCK_DGRAM, 0);
1017 if(cfd == -1) {
1022 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
1034 if(sendto(cfd, &i, sizeof(i), 0,
1075 close(cfd);
/freebsd-13.1/contrib/ldns/
H A Dacx_nlnetlabs.m4951 int sfd, cfd;
982 cfd = socket(PF_INET, SOCK_DGRAM, 0);
983 if(cfd == -1) {
988 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
1000 if(sendto(cfd, &i, sizeof(i), 0,
1041 close(cfd);
/freebsd-13.1/tests/sys/kern/
H A Dptrace_test.c3454 int cfd; in ATF_TC_BODY() local
3460 cfd = open(tmpfile, O_RDONLY); in ATF_TC_BODY()
3461 if (cfd < 0) in ATF_TC_BODY()
3469 if (pthread_create(&t[0], NULL, flock_thread, &cfd) != 0) in ATF_TC_BODY()
3471 if (pthread_create(&t[1], NULL, flock_thread, &cfd) != 0) in ATF_TC_BODY()
/freebsd-13.1/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/
H A Dtest_libzfs_core.py2555 with cleanup_fd() as cfd:
2556 lzc.lzc_hold({dst3: b'tag'}, cfd)