Home
last modified time | relevance | path

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

12

/netbsd/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()
124 CLOSEFD(fds->cfd[1]); in msg_read_child()
[all …]
/netbsd/usr.sbin/sdpd/
H A Dserver.c350 int cfd; in server_accept_client() local
357 if (cfd == -1) { in server_accept_client()
365 if (cfd >= FD_SETSIZE) { in server_accept_client()
367 close(cfd); in server_accept_client()
390 if (cfd > srv->fdmax) in server_accept_client()
391 srv->fdmax = cfd; in server_accept_client()
393 FD_SET(cfd, &srv->fdset); in server_accept_client()
394 srv->fdidx[cfd].valid = true; in server_accept_client()
397 srv->fdidx[cfd].priv = false; in server_accept_client()
399 srv->fdidx[cfd].offset = 0; in server_accept_client()
[all …]
/netbsd/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()
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 …]
/netbsd/crypto/external/bsd/openssl/dist/engines/
H A De_devcrypto.c52 static int cfd = -1; variable
284 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) { in cipher_do_cipher()
526 ioctl(cfd, CIOCFSESSION, &sess.ses); in prepare_cipher_methods()
776 return ioctl(cfd, CIOCCRYPT, &cryp); in digest_op()
1225 if (cfd >= 0) in open_devcrypto()
1237 if (ioctl(fd, CRIOGET, &cfd) < 0) { in open_devcrypto()
1240 cfd = -1; in open_devcrypto()
1245 cfd = fd; in open_devcrypto()
1255 if (cfd < 0) in close_devcrypto()
1257 ret = close(cfd); in close_devcrypto()
[all …]
/netbsd/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/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/crypto/external/bsd/openssl/dist/test/helpers/
H A Dssltestlib.c904 int afd = -1, cfd = -1, sfd = -1; in create_test_sockets() local
923 cfd = socket(AF_INET, SOCK_STREAM, 0); in create_test_sockets()
924 if (cfd < 0) in create_test_sockets()
935 if (!cfd_connected && connect(cfd, (struct sockaddr*)&sin, sizeof(sin)) < 0) in create_test_sockets()
941 if (set_nb(cfd) == -1 || set_nb(sfd) == -1) in create_test_sockets()
944 *cfdp = cfd; in create_test_sockets()
949 if (cfd != -1) in create_test_sockets()
950 close(cfd); in create_test_sockets()
960 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() argument
975 || !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/sys/compat/common/
H A Dtty_60.c58 pg60->cfd = pg->cfd; in ptmget_to_ptmget60()
/netbsd/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/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/sys/compat/sys/
H A Dttycom.h51 int cfd; member
/netbsd/tests/ipf/input/
H A Dni1116 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 Dni814 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
/netbsd/usr.bin/config/
H A Dmain.c441 int cfd; in main() local
452 cfd = mkstemp(cname); in main()
453 if (cfd == -1) in main()
457 if (!extract_config(conffile, cname, cfd)) { in main()
464 close(cfd); in main()
1790 extract_config(const char *kname, const char *cname, int cfd) in extract_config() argument
1835 if (write(cfd, uline, (size_t)j + 1) == -1) in extract_config()
/netbsd/sys/sys/
H A Dttycom.h75 int cfd; member
/netbsd/lib/libutil/
H A Dpty.c84 master = pt.cfd; in openpty()
/netbsd/usr.sbin/moused/
H A Dmoused.c351 int cfd; /* /dev/wsmousectl file descriptor */ member
371 .cfd = -1,
832 if (rodent.cfd != -1) in main()
833 close(rodent.cfd); in main()
834 rodent.mfd = rodent.cfd = -1; in main()
850 if (ioctl(rodent.cfd, WSMUXIO_INJECTEVENT, &ev) < 0) in wsev()
869 if ((rodent.cfd = open(wsm, O_WRONLY, 0)) == -1) in moused()
1007 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Target/
H A DTargetItinerary.td159 class ComboFuncUnits<list<ComboFuncData> cfd> {
160 list<ComboFuncData> CFD = cfd;
/netbsd/external/bsd/nsd/dist/
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);
/netbsd/external/bsd/unbound/dist/
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);

12