Searched refs:sfd (Results 1 - 16 of 16) sorted by relevance

/freebsd-10-stable/sbin/ggate/ggatec/
H A Dggatec.c248 int sfd; local
261 sfd = socket(AF_INET, SOCK_STREAM, 0);
262 if (sfd == -1) {
268 g_gate_socket_settings(sfd);
270 if (connect(sfd, (struct sockaddr *)&serv, sizeof(serv)) == -1) {
273 close(sfd);
288 if (g_gate_send(sfd, &ver, sizeof(ver), MSG_NOSIGNAL) == -1) {
291 close(sfd);
295 if (g_gate_recv(sfd, &ver, sizeof(ver), MSG_WAITALL) == -1) {
298 close(sfd);
[all...]
/freebsd-10-stable/contrib/ipfilter/ipsend/
H A Darp.c71 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)
/freebsd-10-stable/sbin/ggate/ggated/
H A Dggated.c432 connection_new(struct g_gate_cinit *cinit, struct sockaddr *s, int sfd) argument
458 conn->c_sendfd = sfd;
460 conn->c_recvfd = sfd;
473 struct sockaddr *s, int sfd)
485 conn->c_sendfd = sfd;
493 conn->c_recvfd = sfd;
502 * connection if sfd == -1.
586 sendfail(int sfd, int error, const char *fmt, ...) argument
594 data = g_gate_send(sfd, &sinit, sizeof(sinit), 0);
833 handshake(struct sockaddr *from, int sfd) argument
472 connection_add(struct ggd_connection *conn, struct g_gate_cinit *cinit, struct sockaddr *s, int sfd) argument
957 int ch, sfd, tmpsfd; local
[all...]
/freebsd-10-stable/crypto/heimdal/kadmin/
H A Dkadmind.c97 krb5_socket_t sfd = rk_INVALID_SOCKET; local
171 mini_inetd(debug_port, &sfd);
192 sfd = STDIN_FILENO;
198 kadmind_loop(context, keytab, sfd);
/freebsd-10-stable/sbin/ggate/shared/
H A Dggate.c276 g_gate_socket_settings(int sfd) argument
284 if (setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, &on,
289 if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1)
292 if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bsize, sizeof(bsize)) == -1)
295 if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bsize, sizeof(bsize)) == -1)
299 if (setsockopt(sfd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)) == -1) {
303 if (setsockopt(sfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) {
H A Dggate.h109 void g_gate_socket_settings(int sfd);
/freebsd-10-stable/sbin/swapon/
H A Dswapon.c450 FILE *sfd; local
459 sfd = NULL;
509 sfd = fdopen(fd, "r");
510 if (sfd == NULL) {
515 p = fgetln(sfd, &linelen);
571 sfd = fdopen(fd, "r");
572 if (sfd == NULL) {
577 p = fgetln(sfd, &linelen);
631 if (sfd != NULL)
632 fclose(sfd);
[all...]
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c91 REQUIRE_ERRNO(fstat(ptm.sfd, &stm), -1);
101 (void)close(ptm.sfd);
/freebsd-10-stable/contrib/netbsd-tests/fs/ptyfs/
H A Dt_nullpts.c114 rump_sys_close(ptg.sfd);
/freebsd-10-stable/sbin/mdmfs/
H A Dmdmfs.c366 FILE *sfd; local
394 sfd = fdopen(fd, "r");
395 if (sfd == NULL)
397 linep = fgetln(sfd, &linelen);
412 fclose(sfd);
/freebsd-10-stable/contrib/ipfilter/tools/
H A Dipfs.c449 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);
/freebsd-10-stable/usr.sbin/lpr/lpd/
H A Dprintjob.c1008 int copycnt, filtstat, narg, resp, sfd, sfres, sizerr, statrc; local
1019 sfd = open(file, O_RDONLY);
1020 if (sfd < 0) {
1030 if ((stb.st_mode & S_IFMT) == S_IFLNK && fstat(sfd, &stb) == 0 &&
1032 close(sfd);
1106 filtstat = execfilter(pp, filtcmd, av, sfd, tfd);
1133 close(sfd);
1134 sfd = tfd;
1135 lseek(sfd, 0, SEEK_SET);
1176 if (sizerr == 0 && read(sfd, bu
[all...]
/freebsd-10-stable/contrib/groff/font/devps/generate/
H A DMakefile204 freeeuro.afm freeeuro.pfa: generate/freeeuro.sfd
205 pfaedit -script generate/sfdtopfa.pe generate/freeeuro.sfd
/freebsd-10-stable/usr.bin/tip/tip/
H A Dtip.h251 int sfd; /* for ~< operation */ variable
H A Dcmds.c89 if ((sfd = creat(cp, 0666)) < 0) {
101 transfer(buf, sfd, value(EOFREAD));
/freebsd-10-stable/contrib/sendmail/src/
H A Dmap.c4412 SM_FILE_T *sfd; local
4436 sfd = safefopen(ldapmap_dequote(lmap->ldap_secret),
4438 if (sfd == NULL)
4445 sfd, TimeOuts.to_fileopen,
4447 (void) sm_io_close(sfd, SM_TIME_DEFAULT);

Completed in 406 milliseconds