/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | identity-node | 39 # If DHCP was used on a primary interface then set the hostname 40 # that was returned. If no hostname was returned, set the name 41 # to be "unknown". The hostname must be set to something, because 57 "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;; 58 "rarp") hostname=`/sbin/hostconfig -h -p bootparams` 60 while [ -z "$hostname" -a ! -f /etc/.UNCONFIGURED -a \ 65 hostname=`/sbin/hostconfig -h -p bootparams` 68 "none") hostname="`shcat /etc/nodename 2>/dev/null`" 69 if [ -z "$hostname" ]; then 71 hostname [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | PlatformCommon.h | 18 extern void ReadDDNSSettingsFromConfFile(mDNS *const m, const char *const filename, domainname *const hostname, domainname *const domain, mDNSBool *DomainDiscoveryDisabled);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/bootlog-cgi/ |
H A D | bootlog-cgi | 38 hostname=$2 43 bootlog_file=${BOOTLOG_PATH}${BOOTLOG_FILE_PREFIX}.$hostname
|
/illumos-gate/usr/src/cmd/hal/probing/network-printer/ |
H A D | probe-snmp.c | 114 snmp_brother_printer_info(char *hostname, char *community, char **manufacturer, argument 126 tmp = snmp_get_string(hostname, community, 134 *serial_no = snmp_get_string(hostname, community, 142 snmp_ricoh_printer_info(char *hostname, char *community, char **manufacturer, argument 154 tmp = snmp_get_string(hostname, community, 162 *serial_no = snmp_get_string(hostname, community, 170 snmp_lexmark_printer_info(char *hostname, char *community, char **manufacturer, argument 182 tmp = snmp_get_string(hostname, community, 190 *serial_no = snmp_get_string(hostname, community, 198 snmp_xerox_phaser_printer_info(char *hostname, cha argument 260 snmp_qms_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set, char **uri) argument 297 snmp_oki_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument 325 snmp_hp_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument 353 snmp_ppm_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument 376 snmp_prt_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument 407 snmp_host_resource_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set) argument 426 snmp_printer_info(char *hostname, char *community, char **manufacturer, char **model, char **description, char **serial_no, char ***command_set, char **uri) argument 482 char *hostname = av[i], *manufacturer = NULL, *model = NULL, local [all...] |
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | unistd.c | 36 static char hostname[MAXHOSTNAMELEN] = "UNKNOWN"; variable 39 * Get system hostname 44 (void) strlcpy(name, hostname, MIN(namelen, MAXHOSTNAMELEN)); 49 * Set system hostname 54 (void) strlcpy(hostname, name, MIN(namelen + 1, MAXHOSTNAMELEN));
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | addr_match.h | 42 const char *printable_addr, char *hostname, size_t hostsize);
|
/illumos-gate/usr/src/cmd/hostname/ |
H A D | Makefile | 28 PROG= hostname
|
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | printfraginfo.c | 19 printf("%s%s -> ", prefix, hostname(4, &ifr->ipfr_src)); 24 hostname(4, &ifr->ipfr_dst), ifr->ipfr_id, ifr->ipfr_ttl,
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_rsvd.c | 39 __yp_clnt_create_rsvdport_netid_req(const char *hostname, rpcprog_t prog, argument 57 return (clnt_create(hostname, prog, vers, nt)); 78 if (!rpcb_getaddr(prog, vers, nconf, svcaddr, hostname)) { 99 __yp_clnt_create_rsvdport(const char *hostname, rpcprog_t prog, argument 105 ret = __yp_clnt_create_rsvdport_netid_req(hostname, prog, 108 ret = __yp_clnt_create_rsvdport_netid_req(hostname, 112 return (__yp_clnt_create_rsvdport_netid_req(hostname, prog,
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rwall.c | 82 char hostname[256]; local 96 (void) gethostname(hostname, sizeof (hostname)); 100 msize = snprintf(buf, sizeof (buf), "From %s@%s: ", who, hostname); 186 doit(char *hostname) argument 201 thread_hostname = strdup(hostname); 218 char *hostname = arg; local 225 (void) fprintf(stderr, "sending message to %s\n%s\n", hostname, path); 232 hostname, WALLPROG, WALLVERS, "datagram_v", &tp); 237 hostname); [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | lookup.c | 69 char *hostname; local 103 hostname = argv[argc - 1]; 104 error = nbns_resolvename(hostname, ctx, &sap); 106 smb_error(gettext("unable to resolve %s"), error, hostname); 111 printf(gettext("IP address of %s: %s\n"), hostname,
|
H A D | status.c | 69 char *hostname; local 96 hostname = argv[argc - 1]; 97 error = nb_resolvehost_in(hostname, &ina); 100 "unable to resolve DNS hostname %s"), error, hostname); 113 gettext("unable to get status from %s"), error, hostname); 131 printf(gettext("usage: smbutil status hostname\n"));
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetethers.c | 40 putethers(const char *hostname, const struct ether_addr *e, FILE *fp) argument 42 if (hostname == NULL || e == NULL) 45 if (fprintf(fp, "%-20s %s\n", hostname, ether_ntoa(e)) == EOF) 64 char hostname[MAXHOSTNAMELEN + 1]; local 69 hp = hostname;
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | stdethers.c | 44 * The hostname buffer must be at least as large as the line buffer 48 char line[MAXHOSTNAMELEN + 256], *lf, hostname[sizeof (line)]; local 68 if (ether_line(line, &e, hostname) == 0) { 70 hostname);
|
/illumos-gate/usr/src/lib/librdc/common/ |
H A D | llib-lrdc | 38 int self_check(char *hostname); 42 struct netbuf *get_addr(char *hostname, ulong_t prog, ulong_t vers,
|
/illumos-gate/usr/src/cmd/sendmail/cf/sh/ |
H A D | makeinfo.sh | 66 if [ -f $p/hostname ] 84 host=`hostname`
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sn2princ.c | 30 * Convert a hostname and service name to a principal in the "standard" 85 krb5_sname_to_principal(krb5_context context, const char *hostname, const char *sname, krb5_int32 type, krb5_principal *ret_princ) argument 94 printf("krb5_sname_to_principal(host=%s, sname=%s, type=%d)\n",hostname,sname,type); 100 /* if hostname is NULL, use local hostname */ 101 if (! hostname) { 108 hostname = localname; 115 /* copy the hostname into non-volatile storage */ 139 KRB5_LOG(KRB5_INFO, "krb5_sname_to_principal() hostname %s", 140 hostname); [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | netname.c | 258 * - - unix.m@y.z (hostname=m) 259 * - a.b unix.m@a.b (hostname=m) 260 * - - unix.m@y.z (hostname=m.w.x) 261 * - a.b unix.m@a.b (hostname=m.w.x) 272 char hostname[MAXHOSTNAMELEN + 1]; local 281 (void) strncpy(hostname, nis_local_host(), sizeof (hostname)); 282 p = (char *)strchr(hostname, '.'); 292 if (len >= sizeof (hostname)) { 295 (void) strcpy(hostname, hos [all...] |
/illumos-gate/usr/src/lib/libwrap/ |
H A D | eval.c | 14 * results are really needed. Examples are hostname lookups and double 16 * given the value "unknown" ("paranoid" in case of hostname problems). 18 * When ALWAYS_HOSTNAME is off, hostname lookup is done only when required by 82 if (host->request->hostname != 0) 83 host->request->hostname(host); 93 char *hostname; local 99 hostname = eval_hostname(host); 100 if (HOSTNAME_KNOWN(hostname)) {
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | metarpcopen.c | 156 char *hostname, 168 return (mdrpcerror(ep, clntp, hostname, 182 client_create_vers_retry(char *hostname, argument 189 return (clnt_create_vers_timed(hostname, METAD, &vers, 198 client_create_helper(char *hostname, void *private, struct timeval *time_out) argument 202 return (clnt_create_timed(hostname, cd->cd_prognum, cd->cd_version, 222 * hostname - Name of remote host 238 char *hostname, 274 clnt = (*func)(hostname, data, &timeout); 298 (void) mdrpccreateerror(ep, hostname, 154 cl_sto( CLIENT *clntp, char *hostname, long time_out, md_error_t *ep ) argument 237 meta_client_create_retry( char *hostname, clnt_create_func_t func, void *data, time_t tout, md_error_t *ep ) argument 326 metarpcopen( char *hostname, long time_out, md_error_t *ep ) argument [all...] |
H A D | meta_metad.c | 396 char *hostname, 423 v21_args->hostname = this_host; 431 if (md_in_daemon && strcmp(mynode(), hostname) == 0) { 441 if ((clntp = metarpcopen(hostname, CL_LONG_TMO, ep)) == NULL) 457 v1_args.hostname = this_host; 484 (void) mdrpcerror(ep, clntp, hostname, 493 (void) mdrpcerror(ep, clntp, hostname, 518 char *hostname, 548 if (md_in_daemon && strcmp(mynode(), hostname) == 0) { 558 if ((clntp = metarpcopen(hostname, CL_LONG_TM 395 clnt_add_drv_sidenms( char *hostname, char *this_host, mdsetname_t *sp, md_set_desc *sd, int node_c, char **node_v, md_error_t *ep ) argument 517 clnt_imp_adddrvs( char *hostname, mdsetname_t *sp, md_drive_desc *dd, md_timeval32_t timestamp, ulong_t genid, md_error_t *ep ) argument 603 clnt_adddrvs( char *hostname, mdsetname_t *sp, md_drive_desc *dd, md_timeval32_t timestamp, ulong_t genid, md_error_t *ep ) argument 701 clnt_addhosts( char *hostname, mdsetname_t *sp, int node_c, char **node_v, md_error_t *ep ) argument 774 clnt_createset( char *hostname, mdsetname_t *sp, md_node_nm_arr_t nodes, md_timeval32_t timestamp, ulong_t genid, md_error_t *ep ) argument 852 clnt_mncreateset( char *hostname, mdsetname_t *sp, md_mnnode_desc *nodelist, md_timeval32_t timestamp, ulong_t genid, md_node_nm_t master_nodenm, int master_nodeid, md_error_t *ep ) argument 933 clnt_joinset( char *hostname, mdsetname_t *sp, int flags, md_error_t *ep ) argument 1006 clnt_withdrawset( char *hostname, mdsetname_t *sp, md_error_t *ep ) argument 1079 clnt_del_drv_sidenms( char *hostname, mdsetname_t *sp, md_error_t *ep ) argument 1157 clnt_deldrvs( char *hostname, mdsetname_t *sp, md_drive_desc *dd, md_error_t *ep ) argument 1251 clnt_delhosts( char *hostname, mdsetname_t *sp, int node_c, char **node_v, md_error_t *ep ) argument 1325 clnt_delset( char *hostname, mdsetname_t *sp, md_error_t *ep ) argument 1395 clnt_devinfo( char *hostname, mdsetname_t *sp, mddrivename_t *dp, md_dev64_t *ret_dev, time_t *ret_timestamp, md_error_t *ep ) argument 1519 clnt_devid( char *hostname, mdsetname_t *sp, mddrivename_t *dp, char **ret_encdevid, md_error_t *ep ) argument 1621 clnt_devinfo_by_devid( char *hostname, mdsetname_t *sp, char *devidstr, md_dev64_t *ret_dev, char *orig_devname, char **ret_devname, char **ret_driver, md_error_t *ep ) argument 1728 clnt_drvused( char *hostname, mdsetname_t *sp, mddrivename_t *dp, md_error_t *ep ) argument 1895 clnt_getset( char *hostname, char *setname, set_t setno, md_set_record **ret_sr, md_error_t *ep ) argument 1984 clnt_mngetset( char *hostname, char *setname, set_t setno, md_mnset_record **ret_mnsr, md_error_t *ep ) argument 2061 clnt_mnsetmaster( char *hostname, mdsetname_t *sp, md_node_nm_t master_nodenm, int master_nodeid, md_error_t *ep ) argument 2128 clnt_gtimeout( char *hostname, mdsetname_t *sp, mhd_mhiargs_t *ret_mhiargs, md_error_t *ep ) argument 2207 clnt_hostname( char *hostname, char **ret_hostname, md_error_t *ep ) argument 2262 clnt_nullproc( char *hostname, md_error_t *ep ) argument 2298 clnt_ownset( char *hostname, mdsetname_t *sp, int *ret_bool, md_error_t *ep ) argument 2392 clnt_setnameok( char *hostname, mdsetname_t *sp, int *ret_bool, md_error_t *ep ) argument 2469 clnt_setnumbusy( char *hostname, set_t setno, int *ret_bool, md_error_t *ep ) argument 2547 clnt_stimeout( char *hostname, mdsetname_t *sp, mhd_mhiargs_t *mhiargsp, md_error_t *ep ) argument 2619 clnt_upd_dr_dbinfo( char *hostname, mdsetname_t *sp, md_drive_desc *dd, md_error_t *ep ) argument 2713 clnt_upd_dr_flags( char *hostname, mdsetname_t *sp, md_drive_desc *dd, uint_t new_flags, md_error_t *ep ) argument 2818 upd_sr_flags_common( char *hostname, mdsetname_t *sp, uint_t new_flags, md_error_t *ep ) argument 2898 clnt_enable_sr_flags( char *hostname, mdsetname_t *sp, uint_t flags, md_error_t *ep ) argument 2926 clnt_disable_sr_flags( char *hostname, mdsetname_t *sp, uint_t flags, md_error_t *ep ) argument 2957 clnt_upd_sr_flags( char *hostname, mdsetname_t *sp, uint_t flags, md_error_t *ep ) argument 3037 clnt_unlock_set( char *hostname, md_setkey_t *cl_sk, md_error_t *ep ) argument 3091 clnt_lock_set( char *hostname, mdsetname_t *sp, md_error_t *ep ) argument 3148 clnt_updmeds( char *hostname, mdsetname_t *sp, md_h_arr_t *medp, md_error_t *ep ) argument 3221 clnt_upd_nr_flags( char *hostname, mdsetname_t *sp, md_mnnode_desc *nd, uint_t flag_action, uint_t flags, md_error_t *ep ) argument 3305 clnt_clr_mnsetlock( char *hostname, md_error_t *ep ) argument 3378 clnt_mdcommdctl( char *hostname, int flag_action, mdsetname_t *sp, md_mn_msgclass_t class, uint_t flags, md_error_t *ep ) argument 3514 clnt_mn_is_stale( char *hostname, mdsetname_t *sp, int *ret_bool, md_error_t *ep ) argument 3626 clnt_getdrivedesc( char *hostname, mdsetname_t *sp, md_drive_desc **ret_dd, md_error_t *ep ) argument 3708 clnt_upd_dr_reconfig( char *hostname, mdsetname_t *sp, md_drive_desc *dd, md_error_t *ep ) argument 3794 clnt_reset_mirror_owner( char *hostname, mdsetname_t *sp, int node_c, int node_id[], md_error_t *ep ) argument 3874 clnt_mn_susp_res_io( char *hostname, set_t setno, int cmd, md_error_t *ep ) argument 3960 clnt_resnarf_set( char *hostname, set_t setno, md_error_t *ep ) argument 4025 clnt_mn_mirror_resync_all( char *hostname, set_t setno, md_error_t *ep ) argument 4106 clnt_mn_sp_update_abr( char *hostname, set_t setno, md_error_t *ep ) argument [all...] |
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | gethostent6.c | 78 * getbyname gets a struct hostent by hostname. This function constructs 89 char hostname[3 * MAXHOSTNAMELEN]; local 97 if (_ldap_filter_name(hostname, argp->key.ipnode.name, 98 sizeof (hostname)) != 0) 102 _F_GETHOSTS6BYNAME, hostname); 106 _F_GETHOSTS6BYNAME_SSD, hostname); 116 if (DOTTEDSUBDOMAIN(hostname)) { 125 (void) strcpy(hname, hostname); 138 _F_GETHOSTS6DOTTEDBYNAME, hostname, host); 143 _F_GETHOSTS6DOTTEDBYNAME_SSD, hostname, hos [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | mk_req.c | 60 krb5_flags ap_req_options, char *service, char *hostname, 68 retval = krb5_sname_to_principal(context, hostname, service, 59 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context, krb5_flags ap_req_options, char *service, char *hostname, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | newvers.sh | 39 u=${USER-root} h=${HOSTNAME-`hostname`} t=`date`
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | talkd_impl.h | 44 extern char hostname[];
|