| /netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
| H A D | proxyp.c | 66 proxyp( ber_socket_t sfd, Sockaddr *from ) { in proxyp() argument 79 ret = tcp_read( SLAP_FD2SOCK( sfd ), &pph, sizeof(pph) ); in proxyp() 87 (long)sfd, save_errno, in proxyp() 93 (long)sfd, ret ); in proxyp() 99 "invalid header signature\n", (long)sfd ); in proxyp() 106 (long)sfd, pph.ver_cmd & 0xF0 ); in proxyp() 123 (long)sfd, pph.fam ); in proxyp() 130 (long)sfd, pph_len, addr_len ); in proxyp() 135 ret = tcp_read( SLAP_FD2SOCK (sfd), &ppa, addr_len ); in proxyp() 143 (long)sfd, save_errno, in proxyp() [all …]
|
| H A D | daemon.c | 2103 ber_socket_t s, sfd; in slap_listener() local 2178 sfd = SLAP_SOCKNEW( s ); in slap_listener() 2181 if ( sfd >= dtblsize ) { in slap_listener() 2184 (long) sfd, (long) dtblsize ); in slap_listener() 2190 tid = DAEMON_ID(sfd); in slap_listener() 2195 assert( SLAP_SOCK_NOT_ACTIVE( tid, sfd )); in slap_listener() 2216 "errno=%d (%s)\n", (long) sfd, err, sock_errstr(err, ebuf, sizeof(ebuf)) ); in slap_listener() 2217 slapd_close(sfd); in slap_listener() 2230 "errno=%d (%s)\n", (long) sfd, err, sock_errstr(err, ebuf, sizeof(ebuf)) ); in slap_listener() 2231 slapd_close(sfd); in slap_listener() [all …]
|
| /netbsd-src/external/bsd/blocklist/test/ |
| H A D | srvtest.c | 104 int sfd; in cr() local 107 sfd = socket(af == AF_INET ? PF_INET : PF_INET6, type, 0); in cr() 108 if (sfd == -1) in cr() 128 if (bind(sfd, (const void *)&ss, slen) == -1) in cr() 132 if (listen(sfd, 5) == -1) in cr() 134 return sfd; in cr() 138 handle(int type, int sfd) in handle() argument 145 if ((afd = accept(sfd, (void *)&ss, &alen)) == -1) in handle() 148 afd = sfd; in handle()
|
| H A D | cltest.c | 93 int sfd; in main() local 124 if ((sfd = socket(AF_INET, type, 0)) == -1) in main() 129 if (connect(sfd, (const void *)&ss, slen) == -1) in main() 133 if (write(sfd, msg, len) != (ssize_t)len) in main()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/engines/ |
| H A D | 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, in afalg_fin_cipher_aio() argument 239 cb->aio_fildes = sfd; in afalg_fin_cipher_aio() 367 actx->bfd = actx->sfd = -1; in afalg_create_sk() 388 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk() 389 if (actx->sfd < 0) { in afalg_create_sk() 400 if (actx->sfd >= 0) in afalg_create_sk() 401 close(actx->sfd); in afalg_create_sk() 402 actx->bfd = actx->sfd = -1; in afalg_create_sk() 450 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk() [all …]
|
| H A D | e_afalg.h | 86 int sfd; member
|
| /netbsd-src/tests/net/net/ |
| H A D | t_mapped.c | 168 int sfd = -1, cfd = -1, afd = -1; in test() local 175 sfd = mksocket(sfam); in test() 178 if (bind(sfd, (struct sockaddr *)&saddr, slen) == -1) { in test() 182 if (listen(sfd, SOMAXCONN) == -1) in test() 208 afd = accept(sfd, (struct sockaddr *)&paddr, &plen); in test() 230 (void)close(sfd); in test() 240 (void)close(sfd); in test()
|
| H A D | t_bind.c | 125 int sfd = -1; in test() local 129 sfd = mksocket(sfam); in test() 132 if (bind(sfd, (struct sockaddr *)&saddr, slen) == -1) { in test()
|
| /netbsd-src/sys/kern/ |
| H A D | tty_ptm.c | 303 pty_fill_ptmget(struct lwp *l, dev_t dev, int cfd, int sfd, void *data, struct mount *mp) in pty_fill_ptmget() argument 312 ptmg->sfd = sfd == -1 ? minor(dev) : sfd; in pty_fill_ptmget() 389 int cfd, sfd; in ptmioctl() local 405 if ((error = pty_alloc_slave(l, &sfd, newdev, mp)) != 0) in ptmioctl() 409 if ((error = pty_fill_ptmget(l, newdev, cfd, sfd, data, mp)) != 0) in ptmioctl() 421 fp = fd_getfile(sfd); in ptmioctl() 423 fd_close(sfd); in ptmioctl()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/engines/ |
| H A D | 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, in afalg_fin_cipher_aio() argument 287 cb->aio_fildes = sfd; in afalg_fin_cipher_aio() 424 actx->bfd = actx->sfd = -1; in afalg_create_sk() 445 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk() 446 if (actx->sfd < 0) { in afalg_create_sk() 457 if (actx->sfd >= 0) in afalg_create_sk() 458 close(actx->sfd); in afalg_create_sk() 459 actx->bfd = actx->sfd = -1; in afalg_create_sk() 508 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk() [all …]
|
| H A D | e_afalg.h | 86 int sfd; member
|
| /netbsd-src/external/bsd/ipf/dist/ipsend/ |
| H A D | 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)
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/kadmin/ |
| H A D | kadmind.c | 110 krb5_socket_t sfd = rk_INVALID_SOCKET; in main() local 193 mini_inetd(debug_port, &sfd); in main() 212 sfd = STDIN_FILENO; in main() 218 kadmind_loop(context, keytab, sfd); in main()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/helpers/ |
| H A D | ssltestlib.c | 919 int afd = -1, cfd = -1, sfd = -1; in create_test_sockets() local 945 while (sfd == -1 || !cfd_connected ) { in create_test_sockets() 946 sfd = accept(afd, NULL, 0); in create_test_sockets() 947 if (sfd == -1 && errno != EAGAIN) in create_test_sockets() 956 if (set_nb(cfd) == -1 || set_nb(sfd) == -1) in create_test_sockets() 960 *sfdp = sfd; in create_test_sockets() 966 if (sfd != -1) in create_test_sockets() 967 close(sfd); in create_test_sockets() 975 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() argument 989 if (!TEST_ptr(s_to_c_bio = BIO_new_socket(sfd, BIO_NOCLOSE)) in create_ssl_objects2()
|
| H A D | ssltestlib.h | 24 SSL **cssl, int sfd, int cfd); 25 int create_test_sockets(int *cfd, int *sfd);
|
| /netbsd-src/sys/arch/hp300/stand/inst/ |
| H A D | inst.c | 548 int sfd, dfd, i, nblks; in miniroot() local 584 if ((sfd = open(minirootname, 0)) < 0) { in miniroot() 594 if (fstat(sfd, &st) < 0) { in miniroot() 651 if ((sfd = open(minirootname, 0)) < 0) { in miniroot() 675 if ((len = read(sfd, block, sizeof(block))) < 0) { in miniroot() 704 close(sfd); in miniroot()
|
| /netbsd-src/external/bsd/ipf/dist/tools/ |
| H A D | 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);
|
| /netbsd-src/sys/compat/common/ |
| H A D | tty_60.c | 59 pg60->sfd = pg->sfd; in ptmget_to_ptmget60()
|
| /netbsd-src/tests/lib/libc/ttyio/ |
| H A D | t_ptm.c | 91 REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1); in ATF_TC_BODY() 101 (void)close(ptm.sfd); in ATF_TC_BODY()
|
| /netbsd-src/sys/compat/sys/ |
| H A D | ttycom.h | 52 int sfd; member
|
| /netbsd-src/external/gpl2/groff/dist/font/devps/generate/ |
| H A D | sfdtopfa.pe | 8 Open($1:r + ".sfd");
|
| H A D | Makefile | 204 freeeuro.afm freeeuro.pfa: generate/freeeuro.sfd 205 pfaedit -script generate/sfdtopfa.pe generate/freeeuro.sfd
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_termios.c | 343 error = copyout(&ptm.sfd, SCARG(uap, data), in linux_ioctl_termios() 344 sizeof(ptm.sfd)); in linux_ioctl_termios()
|
| /netbsd-src/sys/compat/linux32/common/ |
| H A D | linux32_termios.c | 352 error = copyout(&ptm.sfd, SCARG_P32(uap, data), in linux32_ioctl_termios() 353 sizeof(ptm.sfd)); in linux32_ioctl_termios()
|
| /netbsd-src/tests/fs/ptyfs/ |
| H A D | t_nullpts.c | 114 rump_sys_close(ptg.sfd); in ATF_TC_BODY()
|