HomeSort by: relevance | last modified time | path
    Searched refs:cfd (Results 1 - 25 of 27) sorted by relevancy

1 2

  /src/tests/lib/libc/sys/
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[1], msg, len)
    [all...]
  /src/sys/compat/sys/
ttycom.h 51 int cfd; member in struct:compat_60_ptmget
  /src/usr.sbin/sdpd/
server.c 350 int cfd; local
354 cfd = accept(fd, NULL, NULL);
355 } while (cfd == -1 && errno == EINTR);
357 if (cfd == -1) {
365 if (cfd >= FD_SETSIZE) {
367 close(cfd);
371 assert(!FD_ISSET(cfd, &srv->fdset));
372 assert(!srv->fdidx[cfd].valid);
379 if (getsockname(cfd, (struct sockaddr *)&sa, &len) == -1)
383 if (getsockopt(cfd, BTPROTO_L2CAP, SO_L2CAP_OMTU, &omtu, &len) == -1
    [all...]
  /src/crypto/external/bsd/openssl/dist/test/helpers/
ssltestlib.h 24 SSL **cssl, int sfd, int cfd);
25 int create_test_sockets(int *cfd, int *sfd);
ssltestlib.c 919 int afd = -1, cfd = -1, sfd = -1; local
938 cfd = socket(AF_INET, SOCK_STREAM, 0);
939 if (cfd < 0)
950 if (!cfd_connected && connect(cfd, (struct sockaddr*)&sin, sizeof(sin)) < 0)
956 if (set_nb(cfd) == -1 || set_nb(sfd) == -1)
959 *cfdp = cfd;
964 if (cfd != -1)
965 close(cfd);
975 SSL **cssl, int sfd, int cfd)
990 || !TEST_ptr(c_to_s_bio = BIO_new_socket(cfd, BIO_NOCLOSE))
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/crypto/engine/
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, CIOCGSESSION, &sess1) < 0
    [all...]
  /src/tests/net/net/
t_mapped.c 168 int sfd = -1, cfd = -1, afd = -1; local
199 cfd = mksocket(cfam);
202 if (connect(cfd, (const struct sockaddr *)&caddr, clen) == -1)
216 if (write(cfd, mymsg, sizeof(mymsg)) != sizeof(mymsg))
218 (void)close(cfd);
234 (void)close(cfd);
243 (void)close(cfd);
  /src/sys/kern/
tty_ptm.c 304 pty_fill_ptmget(struct lwp *l, dev_t dev, int cfd, int sfd, void *data, struct mount *mp)
312 ptmg->cfd = cfd == -1 ? minor(dev) : cfd;
390 int cfd, sfd; local
400 if ((error = pty_alloc_master(l, &cfd, &newdev, mp, 0)) != 0)
410 if ((error = pty_fill_ptmget(l, newdev, cfd, sfd, data, mp)) != 0)
427 fp = fd_getfile(cfd);
429 fd_close(cfd);
  /src/crypto/external/apache2/openssl/dist/engines/
e_devcrypto.c 53 static int cfd = -1; variable
89 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) {
225 ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess);
227 ret = ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess);
280 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) {
452 if (ioctl(cfd, CIOCGSESSION2, &sess) == 0) {
456 if (ioctl(cfd, CIOCGSESSION2, &sess) < 0) {
463 if (ioctl(cfd, CIOCGSESSION, &sess) < 0) {
498 if (ioctl(cfd, CIOCFINDDEV, &fop) == 0) {
503 if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0)
    [all...]
  /src/crypto/external/bsd/openssl/dist/engines/
e_devcrypto.c 52 static int cfd = -1; variable
87 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) {
228 ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess);
230 ret = ioctl(cfd, CIOCGSESSION, &cipher_ctx->sess);
284 if (ioctl(cfd, CIOCCRYPT, &cryp) < 0) {
458 if (ioctl(cfd, CIOCGSESSION2, &sess) == 0) {
462 if (ioctl(cfd, CIOCGSESSION2, &sess) < 0) {
469 if (ioctl(cfd, CIOCGSESSION, &sess) < 0) {
507 if (ioctl(cfd, CIOCFINDDEV, &fop) == 0) {
513 if (ioctl(cfd, CIOCGSESSINFO, &siop) < 0)
    [all...]
  /src/crypto/external/apache2/openssl/dist/test/
bio_tfo_test.c 207 int cfd = -1; /* client socket */ local
296 if (!TEST_int_ge(cfd = BIO_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol, 0), 0))
314 if (!BIO_connect(cfd, baddr, client_flags)) {
358 if (!TEST_int_ge(sendto(cfd, SOCKET_DATA, SOCKET_DATA_LEN, OSSL_TFO_SENDTO,
365 if (!TEST_int_ge(writesocket(cfd, SOCKET_DATA, SOCKET_DATA_LEN), 0)) {
407 BIO_closesocket(cfd);
sslapitest.c 1145 int cfd = -1, sfd = -1; local
1153 if (!TEST_true(create_test_sockets(&cfd, &sfd, SOCK_STREAM, NULL)))
1157 if (!ktls_chk_platform(cfd)) {
1185 &clientssl, sfd, cfd)))
1300 if (cfd != -1)
1301 close(cfd);
1318 int cfd = -1, sfd = -1, ffd, err; local
1328 || !TEST_true(create_test_sockets(&cfd, &sfd, SOCK_STREAM, NULL)))
1360 &clientssl, sfd, cfd)))
1445 if (cfd != -1
    [all...]
  /src/sys/compat/common/
tty_60.c 58 pg60->cfd = pg->cfd;
  /src/external/bsd/ipf/dist/lib/
ipft_hx.c 52 int cfd = tfd; local
55 return close(cfd);
ipft_tx.c 109 int cfd = tfd; local
112 return close(cfd);
  /src/tests/lib/libc/ttyio/
t_ptm.c 86 REQUIRE_ERRNO(fstat(ptm.cfd, &stm), -1);
102 (void)close(ptm.cfd);
  /src/crypto/external/apache2/openssl/dist/test/helpers/
ssltestlib.h 34 SSL **cssl, int sfd, int cfd);
ssltestlib.c 1051 int afd = -1, cfd = -1, sfd = -1; local
1076 cfd = BIO_socket(AF_INET, socktype,
1078 if (cfd == INVALID_SOCKET)
1099 if (!cfd_connected && connect(cfd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
1105 if (!BIO_socket_nbio(cfd, 1) || !BIO_socket_nbio(sfd, 1))
1108 *cfdp = cfd;
1113 if (cfd != -1)
1114 close(cfd);
1124 SSL **cssl, int sfd, int cfd)
1140 || !TEST_ptr(c_to_s_bio = BIO_new_socket(cfd, BIO_NOCLOSE))
    [all...]
quictestlib.c 203 int cfd, sfd; local
209 if (!TEST_true(create_test_sockets(&cfd, &sfd, SOCK_DGRAM, peeraddr)))
211 cbio = BIO_new_dgram(cfd, 1);
213 close(cfd);
  /src/lib/libutil/
pty.c 84 master = pt.cfd;
  /src/sys/sys/
ttycom.h 81 int cfd; member in struct:ptmget
  /src/usr.bin/config/
main.c 440 int cfd; local
451 cfd = mkstemp(cname);
452 if (cfd == -1)
456 if (!extract_config(conffile, cname, cfd)) {
463 close(cfd);
1820 extract_config(const char *kname, const char *cname, int cfd)
1865 if (write(cfd, uline, (size_t)j + 1) == -1)
  /src/usr.sbin/moused/
moused.c 351 int cfd; /* /dev/wsmousectl file descriptor */ member in struct:rodentparam
371 .cfd = -1,
823 if (rodent.cfd != -1)
824 close(rodent.cfd);
825 rodent.mfd = rodent.cfd = -1;
841 if (ioctl(rodent.cfd, WSMUXIO_INJECTEVENT, &ev) < 0)
860 if ((rodent.cfd = open(wsm, O_WRONLY, 0)) == -1)
998 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse);
  /src/crypto/external/bsd/openssl/dist/test/
sslapitest.c 1170 int cfd = -1, sfd = -1; local
1173 if (!TEST_true(create_test_sockets(&cfd, &sfd)))
1177 if (!ktls_chk_platform(cfd)) {
1205 &clientssl, sfd, cfd)))
1286 if (cfd != -1)
1287 close(cfd);
1303 int cfd = -1, sfd = -1, ffd, err; local
1312 || !TEST_true(create_test_sockets(&cfd, &sfd)))
1344 &clientssl, sfd, cfd)))
1419 if (cfd != -1
    [all...]
  /src/external/bsd/nsd/dist/
configure 7745 int sfd, cfd;
7776 cfd = socket(PF_INET, SOCK_DGRAM, 0);
7777 if(cfd == -1) {
7782 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
7794 if(sendto(cfd, &i, sizeof(i), 0,
7835 close(cfd);

Completed in 39 milliseconds

1 2