/original-bsd/sys/deprecated/netimp/ |
H A D | if_imphost.c | 39 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 D | if_imphost.h | 18 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 D | domain.c | 75 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 D | mount_aix.c | 25 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 D | remote.c | 44 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 D | gethostnamadr.c | 50 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 D | inet_makeaddr.c | 21 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 D | inet.c | 24 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 D | arp.c | 179 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 D | net.c | 41 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 D | in_local.c | 14 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 D | amd-home | 6 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 D | rsh.c | 77 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 D | getx25hostent.c | 31 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 D | makeinfo.sh | 46 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 D | rmjob.c | 83 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 D | whois.c | 38 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 D | gettable.c | 44 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 D | Vtroff.sh | 21 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 D | showmount.c | 86 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 D | getrpcport.c | 43 getrpcport(host, prognum, versnum, proto) in getrpcport() argument 44 char *host; in getrpcport() 49 if ((hp = gethostbyname(host)) == NULL)
|
H A D | clnt_simple.c | 54 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 D | pt_tcp.c | 45 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 D | log.c | 104 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 D | nspcb | 3 …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
|