| /freebsd-13.1/contrib/blacklist/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()
|
| /freebsd-13.1/sbin/ggate/ggatec/ |
| H A D | ggatec.c | 296 int sfd; in handshake() local 310 if (sfd == -1) { in handshake() 321 close(sfd); in handshake() 339 close(sfd); in handshake() 346 close(sfd); in handshake() 352 close(sfd); in handshake() 363 close(sfd); in handshake() 373 close(sfd); in handshake() 385 close(sfd); in handshake() 392 close(sfd); in handshake() [all …]
|
| /freebsd-13.1/sbin/ggate/ggated/ |
| H A D | ggated.c | 471 conn->c_sendfd = sfd; in connection_new() 473 conn->c_recvfd = sfd; in connection_new() 498 conn->c_sendfd = sfd; in connection_add() 506 conn->c_recvfd = sfd; in connection_add() 929 sendfail(sfd, ENOMEM, in handshake() 939 sendfail(sfd, errno, NULL); in handshake() 985 int ch, sfd, tmpsfd; in main() local 1058 if (sfd == -1) in main() 1065 g_gate_socket_settings(sfd); in main() 1069 if (listen(sfd, 5) == -1) in main() [all …]
|
| /freebsd-13.1/contrib/ofed/librdmacm/ |
| H A D | preload.c | 482 int sfd, dfd, param, ret; in transpose_socket() local 485 sfd = fd_getd(socket); in transpose_socket() 630 int sfd, dfd, ret; in fork_active() local 635 sfd = fd_getd(socket); in fork_active() 638 real.fcntl(sfd, F_SETFL, 0); in fork_active() 659 real.shutdown(sfd, SHUT_RDWR); in fork_active() 660 real.close(sfd); in fork_active() 680 int lfd, sfd, dfd, ret, param; in fork_passive() local 684 sfd = fd_getd(socket); in fork_passive() 732 real.shutdown(sfd, SHUT_RDWR); in fork_passive() [all …]
|
| /freebsd-13.1/crypto/openssl/engines/ |
| H A D | e_afalg.c | 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() 451 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk() 478 sbytes = sendmsg(actx->sfd, &msg, 0); in afalg_start_cipher_sk() 561 close(actx->sfd); in afalg_cipher_init() [all …]
|
| H A D | e_afalg.h | 86 int sfd; member
|
| /freebsd-13.1/sbin/ggate/shared/ |
| H A D | ggate.c | 278 g_gate_socket_settings(int sfd) in g_gate_socket_settings() argument 286 if (setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, &on, in g_gate_socket_settings() 291 if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1) in g_gate_socket_settings() 294 if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bsize, sizeof(bsize)) == -1) in g_gate_socket_settings() 297 if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bsize, sizeof(bsize)) == -1) in g_gate_socket_settings() 301 if (setsockopt(sfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) { in g_gate_socket_settings() 305 if (setsockopt(sfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) { in g_gate_socket_settings()
|
| H A D | ggate.h | 112 void g_gate_socket_settings(int sfd);
|
| /freebsd-13.1/sbin/ipf/ipsend/ |
| H A D | arp.c | 66 static int sfd = -1; local 94 if (sfd == -1) 95 if ((sfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) 101 if (ioctl(sfd, SIOCGARP, (caddr_t)&ar) == -1)
|
| /freebsd-13.1/crypto/heimdal/kadmin/ |
| H A D | kadmind.c | 97 krb5_socket_t sfd = rk_INVALID_SOCKET; in main() local 175 mini_inetd(debug_port, &sfd); in main() 196 sfd = STDIN_FILENO; in main() 202 kadmind_loop(context, keytab, sfd); in main()
|
| /freebsd-13.1/sbin/swapon/ |
| H A D | swapon.c | 486 FILE *sfd; in swap_on_off_md() local 495 sfd = NULL; in swap_on_off_md() 545 sfd = fdopen(fd, "r"); in swap_on_off_md() 546 if (sfd == NULL) { in swap_on_off_md() 551 p = fgetln(sfd, &linelen); in swap_on_off_md() 606 sfd = fdopen(fd, "r"); in swap_on_off_md() 607 if (sfd == NULL) { in swap_on_off_md() 612 p = fgetln(sfd, &linelen); in swap_on_off_md() 665 if (sfd != NULL) in swap_on_off_md() 666 fclose(sfd); in swap_on_off_md()
|
| /freebsd-13.1/usr.sbin/bhyve/ |
| H A D | rfb.c | 109 int sfd; member 1035 cfd = accept(rc->sfd, NULL, NULL); in rfb_thr() 1084 rc->sfd = -1; in rfb_init() 1107 rc->sfd = socket(ai->ai_family, ai->ai_socktype, 0); in rfb_init() 1108 if (rc->sfd < 0) { in rfb_init() 1113 setsockopt(rc->sfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in rfb_init() 1115 if (bind(rc->sfd, ai->ai_addr, ai->ai_addrlen) < 0) { in rfb_init() 1120 if (listen(rc->sfd, 1) < 0) { in rfb_init() 1127 if (caph_rights_limit(rc->sfd, &rights) == -1) in rfb_init() 1156 if (rc->sfd != -1) in rfb_init() [all …]
|
| /freebsd-13.1/sbin/ipf/ipfs/ |
| H A D | ipfs.c | 426 int sfd = -1, i; in readstate() local 432 sfd = open(file, O_RDONLY, 0600); in readstate() 433 if (sfd == -1) { in readstate() 445 i = read(sfd, &ips, sizeof(ips)); in readstate() 492 close(sfd); in readstate() 532 if (sfd != -1) in readstate() 533 close(sfd); in readstate()
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/net/ieee802154/ |
| H A D | cc2520.txt | 12 - sfd-gpio: GPIO spec for the SFD pin 29 sfd-gpio = <&gpio1 13 0>;
|
| /freebsd-13.1/sbin/mdmfs/ |
| H A D | mdmfs.c | 458 FILE *sfd; in do_mdconfig_attach_au() local 487 sfd = fdopen(fd, "r"); in do_mdconfig_attach_au() 488 if (sfd == NULL) in do_mdconfig_attach_au() 490 linep = fgetln(sfd, &linelen); in do_mdconfig_attach_au() 506 fclose(sfd); in do_mdconfig_attach_au()
|
| /freebsd-13.1/contrib/netbsd-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()
|
| /freebsd-13.1/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 1010 int copycnt, filtstat, narg, resp, sfd, sfres, sizerr, statrc; in sendfile() local 1021 sfd = open(file, O_RDONLY); in sendfile() 1022 if (sfd < 0) { in sendfile() 1034 close(sfd); in sendfile() 1108 filtstat = execfilter(pp, filtcmd, av, sfd, tfd); in sendfile() 1135 close(sfd); in sendfile() 1136 sfd = tfd; in sendfile() 1137 lseek(sfd, 0, SEEK_SET); in sendfile() 1178 if (sizerr == 0 && read(sfd, buf, amt) != amt) in sendfile() 1217 lseek(sfd, 0, SEEK_SET); in sendfile() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/fs/ptyfs/ |
| H A D | t_nullpts.c | 114 rump_sys_close(ptg.sfd); in ATF_TC_BODY()
|
| /freebsd-13.1/contrib/unbound/ |
| H A D | acx_nlnetlabs.m4 | 985 int sfd, cfd; 998 sfd = socket(PF_INET, SOCK_DGRAM, 0); 999 if(sfd == -1) { 1007 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 1011 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 1049 FD_SET(sfd, &rset); 1050 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 1056 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 1066 recv(sfd, &x, sizeof(x), 0); 1074 close(sfd);
|
| /freebsd-13.1/contrib/ldns/ |
| H A D | acx_nlnetlabs.m4 | 951 int sfd, cfd; 964 sfd = socket(PF_INET, SOCK_DGRAM, 0); 965 if(sfd == -1) { 973 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) { 977 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) { 1015 FD_SET(sfd, &rset); 1016 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) { 1022 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) { 1032 recv(sfd, &x, sizeof(x), 0); 1040 close(sfd);
|
| /freebsd-13.1/usr.bin/tip/tip/ |
| H A D | tip.h | 257 EXTERN int sfd; /* for ~< operation */ variable
|
| H A D | cmds.c | 91 if ((sfd = creat(cp, 0666)) < 0) { in getfl() 103 transfer(buf, sfd, value(EOFREAD)); in getfl()
|
| /freebsd-13.1/contrib/file/magic/Magdir/ |
| H A D | fonts | 361 !:mime application/vnd.font-fontforge-sfd
|
| /freebsd-13.1/contrib/sendmail/src/ |
| H A D | map.c | 4837 SM_FILE_T *sfd; local 4861 sfd = safefopen(ldapmap_dequote(lmap->ldap_secret), 4863 if (sfd == NULL) 4870 sfd, TimeOuts.to_fileopen, 4872 (void) sm_io_close(sfd, SM_TIME_DEFAULT);
|