HomeSort by: relevance | last modified time | path
    Searched refs:hostname (Results 1 - 25 of 219) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/bin/hostname/
Makefile 4 PROG= hostname
hostname.c 1 /* $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/
lookup.h 7 extern u_char *lookup_hwa(char *hostname, int htype);
8 extern int lookup_ipa(char *hostname, u_int32 *addr);
lookup.c 35 lookup_hwa(char *hostname, int htype)
46 if (ether_hostton(hostname, &ea)) {
48 hostname);
69 lookup_ipa(char *hostname, u_int32 *result)
72 hp = gethostbyname(hostname);
  /src/usr.sbin/ypserv/common/
localhostname.c 52 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/
html_cmp 20 h=`hostname || uname -n`
  /src/usr.bin/talk/
get_names.c 56 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/
vchiq_genversion 53 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/
compat_ns_addr.c 59 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 == 0
    [all...]
  /src/etc/autofs/
include_nis_nullfs 65 "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/
intrp.h 16 EXT char *hostname; /* host name */ variable in typeref:typename:EXT char *
  /src/sys/lib/libsa/
globals.c 22 char hostname[FNAME_SIZE]; /* our hostname */ variable in typeref:typename:char[]
  /src/sys/sys/
kernel.h 48 extern char hostname[MAXHOSTNAMELEN];
  /src/lib/libutil/
pidlock.c 52 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, info. *
    [all...]
  /src/lib/libpam/modules/pam_securetty/
pam_securetty.c 69 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/
eval.c 10 * 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/
dotlock.c 54 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/
rwall.c 112 "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/
common.h 49 extern char term[64], *envinit[1], *hostname, *tty, *nested;
  /src/bin/
Makefile 5 hostname kill ksh ln ls mkdir mt mv pax ps pwd rcp rcmd rm rmdir \
  /src/sys/arch/sparc/stand/ofwboot/
net.c 129 *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/tests/fs/kernfs/
t_basic.c 71 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 works *
    [all...]
  /src/usr.bin/passwd/
pam_passwd.c 76 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/
ethers.c 82 ether_ntohost(char *hostname, const struct ether_addr *e)
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)
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)
    [all...]
  /src/lib/libpam/modules/pam_login_access/
pam_login_access.c 65 char hostname[MAXHOSTNAMELEN]; local in function:pam_sm_acct_mgmt
85 gethostname(hostname, sizeof hostname);

Completed in 20 milliseconds

1 2 3 4 5 6 7 8 9