/freebsd-13-stable/contrib/openbsm/bin/auditdistd/ |
H A D | faccessat.h | 40 int cfd, error, ret; local 47 cfd = open(".", O_RDONLY | O_DIRECTORY); 48 if (cfd == -1) 53 (void)close(cfd); 61 (void)fchdir(cfd); 62 (void)close(cfd);
|
H A D | fstatat.h | 42 int cfd, error, ret; local 44 cfd = open(".", O_RDONLY | O_DIRECTORY); 45 if (cfd == -1) 50 (void)close(cfd); 61 (void)fchdir(cfd); 62 (void)close(cfd);
|
H A D | renameat.h | 39 int cfd, error, ret; local 46 cfd = open(".", O_RDONLY | O_DIRECTORY); 47 if (cfd == -1) 52 (void)close(cfd); 60 (void)fchdir(cfd); 61 (void)close(cfd);
|
H A D | unlinkat.h | 41 int cfd, error, ret; local 43 cfd = open(".", O_RDONLY | O_DIRECTORY); 44 if (cfd == -1) 49 (void)close(cfd); 60 (void)fchdir(cfd); 61 (void)close(cfd);
|
H A D | openat.h | 40 int cfd, ffd, error; local 42 cfd = open(".", O_RDONLY | O_DIRECTORY); 43 if (cfd == -1) 48 (void)close(cfd); 67 (void)fchdir(cfd); 68 (void)close(cfd);
|
/freebsd-13-stable/contrib/netbsd-tests/kernel/ |
H A D | 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[ [all...] |
/freebsd-13-stable/usr.sbin/bhyve/ |
H A D | rfb.c | 112 int cfd; member in struct:rfb_softc 231 rfb_send_server_init_msg(int cfd) argument 254 (void)stream_write(cfd, &sinfo, sizeof(sinfo)); 255 (void)stream_write(cfd, "bhyve", strlen("bhyve")); 259 rfb_send_resize_update_msg(struct rfb_softc *rc, int cfd) argument 268 stream_write(cfd, &supdt_msg, sizeof(struct rfb_srvr_updt_msg)); 276 stream_write(cfd, &srect_hdr, sizeof(struct rfb_srvr_rect_hdr)); 280 rfb_recv_set_pixfmt_msg(struct rfb_softc *rc, int cfd) argument 284 (void)stream_read(cfd, ((void *)&pixfmt_msg)+1, sizeof(pixfmt_msg)-1); 289 rfb_recv_set_encodings_msg(struct rfb_softc *rc, int cfd) argument 338 rfb_send_update_header(struct rfb_softc *rc, int cfd, int numrects) argument 351 rfb_send_rect(struct rfb_softc *rc, int cfd, struct bhyvegc_image *gc, int x, int y, int w, int h) argument 432 rfb_send_all(struct rfb_softc *rc, int cfd, struct bhyvegc_image *gc) argument 509 rfb_send_screen(struct rfb_softc *rc, int cfd) argument 683 rfb_recv_update_msg(struct rfb_softc *rc, int cfd) argument 695 rfb_recv_key_msg(struct rfb_softc *rc, int cfd) argument 706 rfb_recv_ptr_msg(struct rfb_softc *rc, int cfd) argument 717 rfb_recv_cuttext_msg(struct rfb_softc *rc, int cfd) argument 749 int cfd; local 794 rfb_handle(struct rfb_softc *rc, int cfd) argument 1019 int cfd; local [all...] |
/freebsd-13-stable/usr.sbin/bluetooth/sdpd/ |
H A D | server.c | 296 int32_t cfd, priv; local 301 cfd = accept(fd, NULL, NULL); 302 } while (cfd < 0 && errno == EINTR); 304 if (cfd < 0) { 311 assert(!FD_ISSET(cfd, &srv->fdset)); 312 assert(!srv->fdidx[cfd].valid); 319 if (getsockname(cfd,(struct sockaddr*)&srv->req_sa,&size) < 0) { 322 close(cfd); 328 if (getsockopt(cfd,SOL_L2CAP,SO_L2CAP_OMTU,&omtu,&size) < 0) { 331 close(cfd); [all...] |
/freebsd-13-stable/crypto/openssl/crypto/engine/ |
H A D | eng_devcrypto.c | 38 static int cfd; variable 41 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { 168 if (ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess) < 0) { 220 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { 362 if (ioctl(cfd, CIOCGSESSION, &sess) < 0 363 || ioctl(cfd, CIOCFSESSION, &sess.ses) < 0) 533 if (ioctl(cfd, CIOCGSESSION, &digest_ctx->sess) < 0) { 553 return ioctl(cfd, CIOCCRYPT, &cryp); 608 if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) { 635 if (ioctl(cfd, CIOCGSESSIO [all...] |
/freebsd-13-stable/contrib/bearssl/samples/ |
H A D | server_basic.c | 315 int cfd; local 321 cfd = accept_client(fd); 322 if (cfd < 0) { 396 br_sslio_init(&ioc, &sc.eng, sock_read, &cfd, sock_write, &cfd); 434 close(cfd);
|
/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | ipft_hx.c | 52 int cfd = tfd; local 55 return close(cfd);
|
H A D | ipft_tx.c | 109 int cfd = tfd; local 112 return close(cfd);
|
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/ttyio/ |
H A D | t_ptm.c | 86 REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1); 102 (void)close(ptm.cfd);
|
/freebsd-13-stable/lib/libpmcstat/ |
H A D | libpmcstat_logging.c | 431 int error, fd, cfd; local 489 cfd = accept(fd, NULL, NULL); 491 if (cfd < 0) { 496 fd = cfd;
|
/freebsd-13-stable/usr.sbin/moused/ |
H A D | moused.c | 398 int cfd; /* /dev/consolectl file descriptor */ member in struct:rodentparam 425 .cfd = -1, 919 if (rodent.cfd != -1) 920 close(rodent.cfd); 921 rodent.mfd = rodent.cfd = -1; 1006 if ((rodent.cfd = open("/dev/consolectl", O_RDWR, 0)) == -1) 1046 extioctl = (ioctl(rodent.cfd, CONS_MOUSECTL, &mouse) == 0); 1278 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); 1294 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); 1317 ioctl(rodent.cfd, CONS_MOUSECT [all...] |
/freebsd-13-stable/tests/sys/kern/ |
H A D | ptrace_test.c | 3454 int cfd; local 3460 cfd = open(tmpfile, O_RDONLY); 3461 if (cfd < 0) 3469 if (pthread_create(&t[0], NULL, flock_thread, &cfd) != 0) 3471 if (pthread_create(&t[1], NULL, flock_thread, &cfd) != 0)
|
/freebsd-13-stable/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
H A D | test_libzfs_core.py | 2555 with cleanup_fd() as cfd: 2556 lzc.lzc_hold({dst3: b'tag'}, cfd)
|