Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 188) sorted by relevance

12345678

/original-bsd/sys/deprecated/netimp/
H A Dif_imphost.c39 struct host *
40 hostlookup(imp, host, unit) in hostlookup() argument
41 int imp, host, unit; in hostlookup()
43 register struct host *hp;
56 return ((struct host *)0);
64 struct host *
65 hostenter(imp, host, unit) in hostenter() argument
66 int imp, host, unit; in hostenter()
103 hp->h_host = host;
140 register struct host *hp; in hostrelease()
[all …]
H A Dif_imphost.h18 struct host { struct
67 #define HPMBUF ((MLEN - sizeof(int)) / sizeof(struct host))
70 #define HOSTHASH(imp, host) ((unsigned)(ntohs(imp)+(host)) % HPMBUF) argument
72 #define HOSTHASH(imp, host) ((unsigned)((imp)+(host)) % HPMBUF) argument
106 struct host hm_hosts[HPMBUF]; /* data structures proper */
110 struct host *hostlookup();
111 struct host *hostenter();
/original-bsd/usr.sbin/sendmail/src/
H A Ddomain.c75 char *host; in getmxrr()
146 (host == NULL) ? "<NULL>" : host, errno, h_errno);
173 host, h_errno);
348 mxrand(host) in mxrand() argument
367 int c = *host++;
441 char *host; in dns_getcanonname()
540 host, *dp,
650 host);
656 host);
728 char *host; in gethostalias()
[all …]
/original-bsd/usr.sbin/amd/config/
H A Dmount_aix.c25 static int aix3_mkvp(p, gfstype, flags, object, stub, host, info, info_size, args) in aix3_mkvp() argument
31 char *host;
59 VMT_ASSIGN(vp, VMT_HOST, host, strlen(host) + 1);
60 VMT_ASSIGN(vp, VMT_HOSTNAME, host, strlen(host) + 1);
97 char *host = strdup(fsname); local
98 char *rfs = strchr(host, ':');
103 rfs = host;
105 host = strdup(hostname);
108 size = aix3_mkvp(buf, type, flags, rfs, dir, host, data, sizeof(struct nfs_args), args);
111 free(host);
/original-bsd/usr.bin/tip/
H A Dremote.c44 getremcap(host) in getremcap() argument
45 register char *host; in getremcap()
62 if ((stat = cgetent(&bp, db_array, host)) < 0) {
64 host[0] == '/' && access(DV = host, R_OK | W_OK) == 0) {
66 HO = host;
76 fprintf(stderr, "tip: unknown host %s\n", host);
120 HO = host;
169 getremote(host) in getremote() argument
170 char *host; in getremote()
177 if (host == NOSTR && (host = getenv("HOST")) == NOSTR) {
[all …]
/original-bsd/lib/libc/net/
H A Dgethostnamadr.c50 static struct hostent host; variable
112 host.h_name = bp;
163 host.h_name = bp;
164 return(&host);
185 host.h_length = n;
189 host.h_name = bp;
215 return (&host);
261 return (&host);
367 host.h_addr = hostaddr; in _gethtent()
373 host.h_name = cp; in _gethtent()
[all …]
H A Dinet_makeaddr.c21 inet_makeaddr(net, host) in inet_makeaddr() argument
22 u_long net, host; in inet_makeaddr()
27 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);
29 addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST);
31 addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST);
33 addr = net | host;
/original-bsd/sbin/routed/
H A Dinet.c24 inet_makeaddr(net, host) in inet_makeaddr() argument
25 u_long net, host; in inet_makeaddr()
42 addr = net | (host & mask);
81 register u_long net, host; variable
86 host = i & IN_CLASSA_HOST;
89 host = i & IN_CLASSB_HOST;
92 host = i & IN_CLASSC_HOST;
102 return (host);
143 register u_long net, host; variable
148 host = i & IN_CLASSA_HOST;
[all …]
/original-bsd/usr.sbin/arp/
H A Darp.c179 if (!(hp = gethostbyname(host))) {
202 host);
208 perror(host);
247 get(host) in get() argument
248 char *host; in get()
276 delete(host, info) in delete() argument
277 char *host; in delete()
301 perror(host);
342 char *host, *lim, *buf, *next; local
377 host = hp->h_name;
[all …]
/original-bsd/usr.bin/finger/
H A Dnet.c41 char *alist[1], *host; local
43 if (!(host = rindex(name, '@')))
45 *host++ = NULL;
46 if (isdigit(*host) && (defaddr.s_addr = inet_addr(host)) != -1) {
47 def.h_name = host;
54 } else if (!(hp = gethostbyname(host))) {
56 "finger: unknown host: %s\n", host);
/original-bsd/sys/netinet/
H A Din_local.c14 if_localmakeaddr(net, host) in if_localmakeaddr() argument
15 int net, host; in if_localmakeaddr()
21 addr = (net << IN_CLASSA_NSHIFT) | host |
24 addr = (net << IN_CLASSB_NSHIFT) | host |
27 addr = (net << IN_CLASSC_NSHIFT) | host;
/original-bsd/etc/
H A Damd-home6 MACHINE host!=MACHINE;rfs:=/a host==MACHINE;type:=link;fs:=/a
10 MACHINE/a host!=MACHINE;rfs:=/a host==MACHINE;type:=link;fs:=/a
11 MACHINE/b host!=MACHINE;rfs:=/a host==MACHINE;type:=link;fs:=/b
/original-bsd/usr.bin/rsh/
H A Drsh.c77 char *args, *host, *p, *user; local
81 host = user = NULL;
89 host = p;
95 host = argv[1];
150 if (!host && !(host = argv[optind++]))
167 p = strchr(host, '@');
170 if (!user && p > host)
171 user = host;
172 host = p + 1;
173 if (*host == '\0')
[all …]
/original-bsd/contrib/usr.x25/lib/
H A Dgetx25hostent.c31 static struct hostent host; variable
90 host.h_addr_list = host_addrs; in getx25hostent()
93 host.h_addr = hostaddr; in getx25hostent()
110 host.h_length = sizeof (struct sockaddr_x25); in getx25hostent()
111 host.h_addrtype = AF_CCITT; in getx25hostent()
115 host.h_name = cp; in getx25hostent()
116 q = host.h_aliases = host_aliases; in getx25hostent()
133 return (&host); in getx25hostent()
/original-bsd/usr.sbin/sendmail/cf/sh/
H A Dmakeinfo.sh46 host=`hostname`
48 host=`uname -n`
50 echo '#####' built by $user@$host on `date`
52 echo "define(\`__HOST__', $host)dnl"
/original-bsd/usr.sbin/lpr/common_source/
H A Drmjob.c83 if (from == host) in rmjob()
174 if (from != host)
175 printf("%s: ", host);
181 if (from != host)
182 printf("%s: ", host);
203 if (all && (from == host || !strcmp(from, file+6)))
248 if (!strcmp(person, root) && (from == host || !strcmp(from, file+6)))
252 if (from != host)
253 printf("%s: ", host);
292 if (from != host) in rmremote()
[all …]
/original-bsd/usr.bin/whois/
H A Dwhois.c38 char *host; local
40 host = NICHOST;
44 host = optarg;
56 hp = gethostbyname(host);
58 (void)fprintf(stderr, "whois: %s: ", host);
62 host = hp->h_name;
/original-bsd/old/gettable/
H A Dgettable.c44 char *host; local
68 host = *argv;
70 hp = gethostbyname(host);
72 fprintf(stderr, "gettable: %s: ", host);
76 host = hp->h_name;
95 fprintf(stderr, "Connection to %s opened.\n", host);
153 fprintf(stderr, "Connection to %s closed\n", host);
/original-bsd/local/ditroff/ditroff.okeeffe/devver/
H A DVtroff.sh21 echo -h takes following host name.
24 set host = $argv[2]
77 if ($?host) then
79 soelim $* | rsh $host \"$troff $tflags - | $sort \"
81 soelim $* | rsh $host \"$troff $Tflags $Dflags $tflags - | $sort | $lpr -Tvp -J$banner \"
/original-bsd/usr.bin/showmount/
H A Dshowmount.c86 char ch, *host; local
118 host = *argv;
120 host = "localhost";
126 if ((estat = callrpc(host, RPCPROG_MNT, mntvers,
134 if ((estat = callrpc(host, RPCPROG_MNT, mntvers,
146 printf("All mount points on %s:\n", host);
149 printf("Directories on %s:\n", host);
152 printf("Hosts on %s:\n", host);
158 printf("Exports list on %s:\n", host);
/original-bsd/lib/librpc/rpc/
H A Dgetrpcport.c43 getrpcport(host, prognum, versnum, proto) in getrpcport() argument
44 char *host; in getrpcport()
49 if ((hp = gethostbyname(host)) == NULL)
H A Dclnt_simple.c54 callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) in callrpc() argument
55 char *host; in callrpc()
77 && strcmp(crp->oldhost, host) == 0) {
87 if ((hp = gethostbyname(host)) == NULL)
100 (void) strcpy(crp->oldhost, host);
/original-bsd/sbin/mount_portal/
H A Dpt_tcp.c45 char host[MAXHOSTNAMELEN]; local
59 if (q == 0 || q - p >= sizeof(host))
62 strcpy(host, p);
83 hp = gethostbyname(host);
87 ina.s_addr = inet_addr(host);
/original-bsd/games/atc/
H A Dlog.c104 score[num_scores].host, in log_score()
121 if (gethostname(thisscore.host, sizeof (thisscore.host)) < 0) { in log_score()
128 strcpy(thisscore.host, name.sysname); in log_score()
145 strcmp(thisscore.host, score[i].host) == 0 && in log_score()
189 score[i].name, score[i].host, in log_score()
211 cp = index(score[i].host, '.'); in log_score()
215 score[i].name, score[i].host, score[i].game, in log_score()
/original-bsd/old/adb/common_scripts/
H A Dnspcb3 …xt"16t"prev"16t"head"16t"socket"nXXXXn"faddr"8t"net"8t"host"24t"port"nXxxxxn"laddr"8t"net"8t"host"…
5 <5+0t64/"lstdst"8t"net"8t"host"24t"port"nXxxxxn"param"16t"flags"8t"dpt/rpt"nXxxn

12345678