Home
last modified time | relevance | path

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

12

/netbsd-src/tests/lib/libc/sys/
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 …]
/netbsd-src/usr.sbin/sdpd/
H A Dserver.c350 int cfd; in server_accept_client() local
354 cfd = accept(fd, NULL, NULL); in server_accept_client()
355 } while (cfd == -1 && errno == EINTR); in server_accept_client()
357 if (cfd == -1) { in server_accept_client()
365 if (cfd >= FD_SETSIZE) { in server_accept_client()
367 close(cfd); in server_accept_client()
371 assert(!FD_ISSET(cfd, &srv->fdset)); in server_accept_client()
372 assert(!srv->fdidx[cfd].valid); in server_accept_client()
379 if (getsockname(cfd, (struct sockaddr *)&sa, &len) == -1) in server_accept_client()
383 if (getsockopt(cfd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &omtu, &len) == -1) in server_accept_client()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/engine/
H A Deng_devcrypto.c38 static int cfd; variable
41 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session()
168 if (ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess) < 0) { in cipher_init()
220 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher()
362 if (ioctl(cfd, CIOCGSESSION, &sess) < 0 in prepare_cipher_methods()
363 || ioctl(cfd, CIOCFSESSION, &sess.ses) < 0) in prepare_cipher_methods()
533 if (ioctl(cfd, CIOCGSESSION, &digest_ctx->sess) < 0) { in digest_init()
553 return ioctl(cfd, CIOCCRYPT, &cryp); in digest_op()
608 if (ioctl(cfd, CIOCCPHASH, &cphash) < 0) { in digest_copy()
635 if (ioctl(cfd, CIOCGSESSION, &sess1) < 0) in devcrypto_test_digest()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/engines/
H A De_devcrypto.c52 static int cfd = -1; variable
87 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session()
228 ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess); in cipher_init()
230 ret = ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess); in cipher_init()
284 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher()
458 if (ioctl(cfd, CIOCGSESSION2, &sess) == 0) { in prepare_cipher_methods()
462 if (ioctl(cfd, CIOCGSESSION2, &sess) < 0) { in prepare_cipher_methods()
469 if (ioctl(cfd, CIOCGSESSION, &sess) < 0) { in prepare_cipher_methods()
507 if (ioctl(cfd, CIOCFINDDEV, &fop) == 0) { in prepare_cipher_methods()
513 if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0) { in prepare_cipher_methods()
[all …]
/netbsd-src/tests/net/net/
H A Dt_mapped.c168 int sfd = -1, cfd = -1, afd = -1; in test() local
199 cfd = mksocket(cfam); in test()
202 if (connect(cfd, (const struct sockaddr *)&caddr, clen) == -1) in test()
216 if (write(cfd, mymsg, sizeof(mymsg)) != sizeof(mymsg)) in test()
218 (void)close(cfd); in test()
234 (void)close(cfd); in test()
243 (void)close(cfd); in test()
/netbsd-src/sys/kern/
H A Dtty_ptm.c303 pty_fill_ptmget(struct lwp *l, dev_t dev, int cfd, int sfd, void *data, struct mount *mp) in pty_fill_ptmget() argument
311 ptmg->cfd = cfd == -1 ? minor(dev) : cfd; in pty_fill_ptmget()
389 int cfd, sfd; in ptmioctl() local
399 if ((error = pty_alloc_master(l, &cfd, &newdev, mp, 0)) != 0) in ptmioctl()
409 if ((error = pty_fill_ptmget(l, newdev, cfd, sfd, data, mp)) != 0) in ptmioctl()
426 fp = fd_getfile(cfd); in ptmioctl()
428 fd_close(cfd); in ptmioctl()
/netbsd-src/crypto/external/bsd/openssl/dist/test/helpers/
H A Dssltestlib.c919 int afd = -1, cfd = -1, sfd = -1; in create_test_sockets() local
938 cfd = socket(AF_INET, SOCK_STREAM, 0); in create_test_sockets()
939 if (cfd < 0) in create_test_sockets()
950 if (!cfd_connected && connect(cfd, (struct sockaddr*)&sin, sizeof(sin)) < 0) in create_test_sockets()
956 if (set_nb(cfd) == -1 || set_nb(sfd) == -1) in create_test_sockets()
959 *cfdp = cfd; in create_test_sockets()
964 if (cfd != -1) in create_test_sockets()
965 close(cfd); in create_test_sockets()
975 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() argument
990 || !TEST_ptr(c_to_s_bio = BIO_new_socket(cfd, BIO_NOCLOSE))) in create_ssl_objects2()
H A Dssltestlib.h24 SSL **cssl, int sfd, int cfd);
25 int create_test_sockets(int *cfd, int *sfd);
/netbsd-src/sys/compat/common/
H A Dtty_60.c58 pg60->cfd = pg->cfd; in ptmget_to_ptmget60()
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dipft_hx.c52 int cfd = tfd; in hex_close() local
55 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()
/netbsd-src/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()
/netbsd-src/sys/compat/sys/
H A Dttycom.h51 int cfd; member
/netbsd-src/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
/netbsd-src/usr.bin/config/
H A Dmain.c440 int cfd; in main() local
451 cfd = mkstemp(cname); in main()
452 if (cfd == -1) in main()
456 if (!extract_config(conffile, cname, cfd)) { in main()
463 close(cfd); in main()
1820 extract_config(const char *kname, const char *cname, int cfd) in extract_config() argument
1865 if (write(cfd, uline, (size_t)j + 1) == -1) in extract_config()
/netbsd-src/sys/sys/
H A Dttycom.h81 int cfd;
75 int cfd; global() member
/netbsd-src/lib/libutil/
H A Dpty.c84 master = pt.cfd; in openpty()
/netbsd-src/usr.sbin/moused/
H A Dmoused.c351 int cfd; /* /dev/wsmousectl file descriptor */ member
371 .cfd = -1,
823 if (rodent.cfd != -1) in main()
824 close(rodent.cfd); in main()
825 rodent.mfd = rodent.cfd = -1; in main()
841 if (ioctl(rodent.cfd, WSMUXIO_INJECTEVENT, &ev) < 0) in wsev()
860 if ((rodent.cfd = open(wsm, O_WRONLY, 0)) == -1) in moused()
998 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Target/
H A DTargetItinerary.td159 class ComboFuncUnits<list<ComboFuncData> cfd> {
160 list<ComboFuncData> CFD = cfd;
/netbsd-src/external/bsd/nsd/dist/
H A Dacx_nlnetlabs.m4991 int sfd, cfd;
1022 cfd = socket(PF_INET, SOCK_DGRAM, 0);
1023 if(cfd == -1) {
1028 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
1040 if(sendto(cfd, &i, sizeof(i), 0,
1081 close(cfd);
/netbsd-src/external/bsd/unbound/dist/
H A Dacx_nlnetlabs.m4991 int sfd, cfd;
1022 cfd = socket(PF_INET, SOCK_DGRAM, 0);
1023 if(cfd == -1) {
1028 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
1040 if(sendto(cfd, &i, sizeof(i), 0,
1081 close(cfd);

12