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

/freebsd-10.1-release/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.1-release/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.1-release/sbin/ggate/ggated/
H A Dggated.c430 connection_new(struct g_gate_cinit *cinit, struct sockaddr *s, int sfd) argument
456 conn->c_sendfd = sfd;
458 conn->c_recvfd = sfd;
471 struct sockaddr *s, int sfd)
483 conn->c_sendfd = sfd;
491 conn->c_recvfd = sfd;
500 * connection if sfd == -1.
584 sendfail(int sfd, int error, const char *fmt, ...) argument
592 data = g_gate_send(sfd, &sinit, sizeof(sinit), 0);
831 handshake(struct sockaddr *from, int sfd) argument
470 connection_add(struct ggd_connection *conn, struct g_gate_cinit *cinit, struct sockaddr *s, int sfd) argument
952 int sfd, tmpsfd; local
[all...]
/freebsd-10.1-release/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.1-release/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.1-release/sbin/swapon/
H A Dswapon.c442 FILE *sfd; local
451 sfd = NULL;
501 sfd = fdopen(fd, "r");
502 if (sfd == NULL) {
507 p = fgetln(sfd, &linelen);
563 sfd = fdopen(fd, "r");
564 if (sfd == NULL) {
569 p = fgetln(sfd, &linelen);
623 if (sfd != NULL)
624 fclose(sfd);
[all...]
/freebsd-10.1-release/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.1-release/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.1-release/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.1-release/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.1-release/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.1-release/contrib/sendmail/src/
H A Dmap.c4398 SM_FILE_T *sfd; local
4422 sfd = safefopen(ldapmap_dequote(lmap->ldap_secret),
4424 if (sfd == NULL)
4431 sfd, TimeOuts.to_fileopen,
4433 (void) sm_io_close(sfd, SM_TIME_DEFAULT);

Completed in 156 milliseconds