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

1 2

  /src/external/gpl3/gdb.old/dist/gdb/unittests/
scoped_fd-selftests.c 40 ::scoped_fd sfd (fd);
42 SELF_CHECK (sfd.get () == fd);
59 ::scoped_fd sfd (fd);
61 SELF_CHECK (sfd.release () == fd);
73 ::scoped_fd sfd = gdb_mkostemp_cloexec (filename); local
74 SELF_CHECK (sfd.get () >= 0);
78 gdb_file_up file = sfd.to_file ("rw");
80 SELF_CHECK (sfd.get () == -1);
  /src/external/gpl3/gdb/dist/gdb/unittests/
scoped_fd-selftests.c 40 ::scoped_fd sfd (fd);
42 SELF_CHECK (sfd.get () == fd);
59 ::scoped_fd sfd (fd);
61 SELF_CHECK (sfd.release () == fd);
73 ::scoped_fd sfd = gdb_mkostemp_cloexec (filename); local
74 SELF_CHECK (sfd.get () >= 0);
78 gdb_file_up file = sfd.to_file ("rw");
80 SELF_CHECK (sfd.get () == -1);
  /src/external/bsd/openldap/dist/servers/slapd/
proxyp.c 66 proxyp( ber_socket_t sfd, Sockaddr *from ) {
79 ret = tcp_read( SLAP_FD2SOCK( sfd ), &pph, sizeof(pph) );
87 (long)sfd, save_errno,
93 (long)sfd, ret );
99 "invalid header signature\n", (long)sfd );
106 (long)sfd, pph.ver_cmd & 0xF0 );
123 (long)sfd, pph.fam );
130 (long)sfd, pph_len, addr_len );
135 ret = tcp_read( SLAP_FD2SOCK (sfd), &ppa, addr_len );
143 (long)sfd, save_errno
    [all...]
  /src/external/bsd/blocklist/test/
srvtest.c 106 int sfd; local
109 sfd = socket(af == AF_INET ? PF_INET : PF_INET6, type, 0);
110 if (sfd == -1)
130 if (bind(sfd, (const void *)&ss, slen) == -1)
134 if (listen(sfd, 5) == -1)
136 return sfd;
140 handle(int type, int sfd)
147 if ((afd = accept(sfd, (void *)&ss, &alen)) == -1)
150 afd = sfd;
cltest.c 95 int sfd; local
126 if ((sfd = socket(AF_INET, type, 0)) == -1)
131 if (connect(sfd, (const void *)&ss, slen) == -1)
135 if (write(sfd, msg, len) != (ssize_t)len)
  /src/sys/compat/sys/
ttycom.h 52 int sfd; member in struct:compat_60_ptmget
  /src/external/bsd/ipf/dist/ipsend/
arp.c 71 static int sfd = -1; local
101 if (sfd == -1)
102 if ((sfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
108 if (ioctl(sfd, SIOCGARP, (caddr_t)&ar) == -1)
  /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
945 while (sfd == -1 || !cfd_connected ) {
946 sfd = accept(afd, NULL, 0);
947 if (sfd == -1 && errno != EAGAIN)
956 if (set_nb(cfd) == -1 || set_nb(sfd) == -1)
960 *sfdp = sfd;
966 if (sfd != -1)
967 close(sfd);
975 SSL **cssl, int sfd, int cfd)
989 if (!TEST_ptr(s_to_c_bio = BIO_new_socket(sfd, BIO_NOCLOSE)
    [all...]
  /src/tests/net/net/
t_mapped.c 168 int sfd = -1, cfd = -1, afd = -1; local
175 sfd = mksocket(sfam);
178 if (bind(sfd, (struct sockaddr *)&saddr, slen) == -1) {
182 if (listen(sfd, SOMAXCONN) == -1)
208 afd = accept(sfd, (struct sockaddr *)&paddr, &plen);
230 (void)close(sfd);
240 (void)close(sfd);
t_bind.c 125 int sfd = -1; local
129 sfd = mksocket(sfam);
132 if (bind(sfd, (struct sockaddr *)&saddr, slen) == -1) {
  /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)
313 ptmg->sfd = sfd == -1 ? minor(dev) : sfd;
390 int cfd, sfd; local
406 if ((error = pty_alloc_slave(l, &sfd, newdev, mp)) != 0)
410 if ((error = pty_fill_ptmget(l, newdev, cfd, sfd, data, mp)) != 0)
422 fp = fd_getfile(sfd);
424 fd_close(sfd);
  /src/crypto/external/apache2/openssl/dist/test/
bio_tfo_test.c 209 int sfd = -1; /* server accepted socket */ local
300 sfd = BIO_accept_ex(afd, NULL, 0);
301 if (sfd == -1) {
336 sfd = BIO_accept_ex(afd, NULL, 0);
337 if (sfd == -1) {
379 sfd = BIO_accept_ex(afd, NULL, 0);
380 if (sfd == -1) {
386 bytes_read = readsocket(sfd, read_buffer, sizeof(read_buffer));
408 BIO_closesocket(sfd);
  /src/crypto/external/bsd/heimdal/dist/kadmin/
kadmind.c 110 krb5_socket_t sfd = rk_INVALID_SOCKET; local
193 mini_inetd(debug_port, &sfd);
212 sfd = STDIN_FILENO;
218 kadmind_loop(context, keytab, sfd);
  /src/crypto/external/apache2/openssl/dist/engines/
e_afalg.c 76 static int afalg_fin_cipher_aio(afalg_aio *ptr, int sfd,
264 static int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf,
287 cb->aio_fildes = sfd;
446 actx->bfd = actx->sfd = -1;
467 actx->sfd = accept(actx->bfd, NULL, 0);
468 if (actx->sfd < 0) {
479 if (actx->sfd >= 0)
480 close(actx->sfd);
481 actx->bfd = actx->sfd = -1;
530 sbytes = sendmsg(actx->sfd, &msg, 0)
    [all...]
e_afalg.h 85 int sfd; member in struct:afalg_ctx_st
  /src/crypto/external/bsd/openssl/dist/engines/
e_afalg.c 75 static int afalg_fin_cipher_aio(afalg_aio *ptr, int sfd,
264 static int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf,
287 cb->aio_fildes = sfd;
424 actx->bfd = actx->sfd = -1;
445 actx->sfd = accept(actx->bfd, NULL, 0);
446 if (actx->sfd < 0) {
457 if (actx->sfd >= 0)
458 close(actx->sfd);
459 actx->bfd = actx->sfd = -1;
508 sbytes = sendmsg(actx->sfd, &msg, 0)
    [all...]
e_afalg.h 86 int sfd; member in struct:afalg_ctx_st
  /src/crypto/external/bsd/openssl.old/dist/engines/
e_afalg.c 72 static int afalg_fin_cipher_aio(afalg_aio *ptr, int sfd,
216 static int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf,
239 cb->aio_fildes = sfd;
367 actx->bfd = actx->sfd = -1;
388 actx->sfd = accept(actx->bfd, NULL, 0);
389 if (actx->sfd < 0) {
400 if (actx->sfd >= 0)
401 close(actx->sfd);
402 actx->bfd = actx->sfd = -1;
450 sbytes = sendmsg(actx->sfd, &msg, 0)
    [all...]
e_afalg.h 86 int sfd; member in struct:afalg_ctx_st
  /src/sys/compat/common/
tty_60.c 59 pg60->sfd = pg->sfd;
  /src/tests/lib/libc/ttyio/
t_ptm.c 91 REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1);
101 (void)close(ptm.sfd);
  /src/tests/fs/ptyfs/
t_nullpts.c 114 rump_sys_close(ptg.sfd);
  /src/crypto/external/apache2/openssl/dist/test/helpers/
ssltestlib.h 34 SSL **cssl, int sfd, int cfd);
  /src/external/bsd/ipf/dist/tools/
ipfs.c 449 int sfd = -1, i; local
455 sfd = open(file, O_RDONLY, 0600);
456 if (sfd == -1) {
468 i = read(sfd, &ips, sizeof(ips));
515 close(sfd);
555 if (sfd != -1)
556 close(sfd);

Completed in 77 milliseconds

1 2