Searched refs:hostname (Results 1 - 25 of 219) sorted by relevance

123456789

/src/bin/hostname/
H A DMakefile4 PROG= hostname
H A Dhostname.c1 /* $NetBSD: hostname.c,v 1.21 2014/02/13 12:00:29 elric Exp $ */
40 static char sccsid[] = "@(#)hostname.c 8.2 (Berkeley) 4/28/95";
42 __RCSID("$NetBSD: hostname.c,v 1.21 2014/02/13 12:00:29 elric Exp $");
60 char *p, hostname[MAXHOSTNAMELEN + 1]; local in function:main
83 if (gethostname(hostname, sizeof(hostname)))
85 hostname[sizeof(hostname) - 1] = '\0';
86 if (sflag && (p = strchr(hostname, '.')))
88 (void)printf("%s\n", hostname);
[all...]
/src/usr.sbin/bootp/common/
H A Dlookup.h7 extern u_char *lookup_hwa(char *hostname, int htype);
8 extern int lookup_ipa(char *hostname, u_int32 *addr);
H A Dlookup.c35 lookup_hwa(char *hostname, int htype) argument
46 if (ether_hostton(hostname, &ea)) {
48 hostname);
69 lookup_ipa(char *hostname, u_int32 *result) argument
72 hp = gethostbyname(hostname);
/src/usr.sbin/ypserv/common/
H A Dlocalhostname.c52 char hostname[MAXHOSTNAMELEN + 1]; local in function:localhostname
55 if (gethostname(hostname, sizeof(hostname)))
57 hostname[sizeof(hostname) - 1] = '\0';
62 * If hostname appears to be fully-qualified,
65 if (strchr(hostname, '.')) {
66 strlcpy(buf, hostname, buflen);
77 error = getaddrinfo(hostname, NULL, &hints, &res);
79 errx(1, "getaddrinfo(%s) failed: %s", hostname,
[all...]
/src/libexec/httpd/testsuite/
H A Dhtml_cmp20 h=`hostname || uname -n`
/src/usr.bin/talk/
H A Dget_names.c56 char hostname[MAXHOSTNAMELEN + 1]; local in function:get_names
78 (void)estrlcpy(hostname, cp, sizeof(hostname));
80 if (gethostname(hostname, sizeof(hostname)) == -1)
82 hostname[sizeof(hostname) - 1] = '\0';
84 my_machine_name = hostname;
/src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/
H A Dvchiq_genversion53 my $hostname = `hostname`;
54 $hostname =~ s/[ \r\n]*$//; # chomp may not be enough (cygwin).
55 $hostname =~ s/^[ \r\n]*//; # chomp may not be enough (cygwin).
63 VC_DEBUG_DECLARE_STRING_VAR( ${prefix}_build_hostname, "$hostname" );
/src/lib/libc/compat/net/
H A Dcompat_ns_addr.c59 char *hostname, *socketname, *cp; local in function:ns_addr
73 if ((hostname = strchr(buf, '#')) != NULL)
76 hostname = strchr(buf, '.');
78 ((hostname && cp < hostname) || (hostname == 0))) {
79 hostname = cp;
84 if (hostname)
85 *hostname++ = 0;
89 if (hostname
[all...]
/src/distrib/common/
H A DMakefile.dhcpcd7 ${DESTDIR}/libexec/dhcpcd-hooks/30-hostname
/src/sys/lib/libsa/
H A Dglobals.c22 char hostname[FNAME_SIZE]; /* our hostname */ variable in typeref:typename:char[]
/src/etc/autofs/
H A Dinclude_nis_nullfs65 "hostname -s" | getline;
68 "hostname -f" | getline;
73 "hostname -f" | getline;
84 # print "--- hostname list start ----"
88 # print "--- hostname list end ----"
105 function is_self(hostname)
107 if (myhostnames[hostname]) {
/src/games/warp/
H A Dintrp.h16 EXT char *hostname; /* host name */ variable in typeref:typename:EXT char *
/src/sys/sys/
H A Dkernel.h48 extern char hostname[MAXHOSTNAMELEN];
/src/lib/libutil/
H A Dpidlock.c52 char hostname[MAXHOSTNAMELEN + 1]; local in function:pidlock
66 if (gethostname(hostname, sizeof(hostname)))
68 hostname[sizeof(hostname) - 1] = '\0';
70 /* avoid '/' in hostname, as it may contain arbitrary characters */
71 for (p = hostname; *p != '\0'; p++) {
78 * We use the path with the PID and hostname appended.
82 (int) getpid(), hostname) >= (int)sizeof(tempfile)) {
87 /* Open it, write pid, hostname, inf
[all...]
/src/lib/libpam/modules/pam_securetty/
H A Dpam_securetty.c69 const void *hostname; local in function:pam_sm_acct_mgmt
104 pam_err = pam_get_item(pamh, PAM_RHOST, &hostname);
106 hostname = NULL;
109 if (hostname)
112 pwd->pw_name, (const char *)hostname,
/src/lib/libwrap/
H A Deval.c10 * results are really needed. Examples are hostname lookups and double
12 * given the value "unknown" ("paranoid" in case of hostname problems).
14 * When ALWAYS_HOSTNAME is off, hostname lookup is done only when required by
83 if (host->request->hostname != 0)
84 host->request->hostname(host);
94 char *hostname; local in function:eval_hostinfo
100 hostname = eval_hostname(host);
101 if (HOSTNAME_KNOWN(hostname)) {
/src/usr.bin/mail/
H A Ddotlock.c54 char path[MAXPATHLEN], hostname[MAXHOSTNAMELEN + 1]; local in function:create_exclusive
63 (void)gethostname(hostname, sizeof(hostname));
64 hostname[sizeof(hostname) - 1] = '\0';
70 * We generate a semi-unique filename, from hostname.(pid ^ usec)
78 (int)(ptr - fname), fname, hostname, (u_long)cookie);
/src/usr.bin/rwall/
H A Drwall.c112 "Usage: %s hostname <file>\n", getprogname());
162 char tmpname[MAXPATHLEN], lbuf[BUFSIZ], hostname[MAXHOSTNAMELEN + 1]; local in function:makemsg
171 (void)gethostname(hostname, sizeof(hostname));
172 hostname[sizeof(hostname) - 1] = '\0';
184 whom, hostname);
/src/usr.bin/login/
H A Dcommon.h49 extern char term[64], *envinit[1], *hostname, *tty, *nested;
/src/tests/fs/kernfs/
H A Dt_basic.c71 ATF_TC(hostname);
72 ATF_TC_HEAD(hostname, tc)
75 atf_tc_set_md_var(tc, "descr", "/kern/hostname changes hostname");
95 ATF_TC_BODY(hostname, tc)
102 if ((fd = rump_sys_open("/kern/hostname", O_RDWR)) == -1)
103 atf_tc_fail_errno("open hostname");
109 atf_tc_fail_errno("read hostname");
113 ATF_REQUIRE_STREQ_MSG(buf, shost, "initial hostname mismatch");
115 /* check changing hostname work
[all...]
/src/sys/arch/sparc/stand/ofwboot/
H A Dnet.c129 *hostname = '\0';
146 printf(" hostname=%s\n", hostname);
171 if (hostname[0])
172 printf(" hostname=%s\n", hostname);
216 * Get info for NFS boot: our IP address, our hostname,
/src/bin/
H A DMakefile5 hostname kill ksh ln ls mkdir mt mv pax ps pwd rcp rcmd rm rmdir \
/src/usr.bin/passwd/
H A Dpam_passwd.c76 char hostname[MAXHOSTNAMELEN + 1]; local in function:pwpam_process
118 (void)gethostname(hostname, sizeof hostname);
119 pam_err = pam_set_item(pamh, PAM_RHOST, hostname);
/src/lib/libc/net/
H A Dethers.c82 ether_ntohost(char *hostname, const struct ether_addr *e) argument
88 _DIAGASSERT(hostname != NULL);
119 ypbuflen = ether_line(ypbuf, &try, hostname);
126 if (ether_line(p, &try, hostname) == 0 &&
141 ether_hostton(const char *hostname, struct ether_addr *e) argument
147 int hostlen = (int)strlen(hostname);
150 _DIAGASSERT(hostname != NULL);
170 if (yp_match(ypdom, "ethers.byname", hostname, hostlen,
180 if (ether_line(p, e, try) == 0 && strcmp(hostname, try) == 0)
194 ether_line(const char *l, struct ether_addr *e, char *hostname) argument
[all...]

Completed in 17 milliseconds

123456789