/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_server.c | 2368 (void) strlcpy(sv->sv_cfg.skc_hostname, ioc->hostname, in smb_server_store_cfg()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_kmod.c | 127 (void) strlcpy(ioc.hostname, cfg->skc_hostname, sizeof (ioc.hostname)); in smb_kmod_setcfg()
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 2216 char *hostname = "unknown"; in show_import() local 2455 hostname = fnvlist_lookup_string(nvinfo, in show_import() 2464 "can be safely imported.\n"), hostname, in show_import() 2578 char *hostname = "<unknown>"; in do_import() local 2582 hostname = fnvlist_lookup_string(nvinfo, in do_import() 2593 name, hostname, (unsigned long) hostid); in do_import() 2599 char *hostname = "<unknown>"; in do_import() local 2604 hostname = fnvlist_lookup_string(config, in do_import() 2619 "to import the pool.\n"), name, hostname, in do_import()
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr_getldap.c | 137 char *hostname; member 480 if (info->sinfo[0].hostname) in sync_current_with_update_copy() 481 free(info->sinfo[0].hostname); in sync_current_with_update_copy() 482 info->sinfo[0].hostname = NULL; in sync_current_with_update_copy() 510 if (info->sinfo[1].hostname) in sync_current_with_update_copy() 511 info->sinfo[0].hostname = strdup(info->sinfo[1].hostname); in sync_current_with_update_copy() 720 info->sinfo[0].hostname = NULL; in getldap_init_serverInfo() 758 if (info->sinfo[0].hostname) in getldap_destroy_serverInfo() 759 free(info->sinfo[0].hostname); in getldap_destroy_serverInfo() 760 if (info->sinfo[1].hostname) in getldap_destroy_serverInfo() [all …]
|
/illumos-gate/usr/src/cmd/krb5/slave/ |
H A D | kprop.c | 813 void update_last_prop_file(hostname, file_name) in update_last_prop_file() argument 814 char *hostname; in update_last_prop_file() 823 strlen(hostname) + 1 + 838 strcat(file_last_prop, hostname);
|
/illumos-gate/usr/src/cmd/fm/notify/snmp-notify/common/ |
H A D | snmp-notify.c | 72 static char hostname[MAXHOSTNAMELEN + 1]; variable 415 swtrap.host = hostname; in ireport_cb() 648 (void) gethostname(hostname, MAXHOSTNAMELEN + 1); in main()
|
/illumos-gate/usr/src/cmd/fm/notify/smtp-notify/common/ |
H A D | smtp-notify.c | 82 static char hostname[MAXHOSTNAMELEN + 1]; variable 243 len = snprintf(NULL, 0, subj_fmt, hostname, in build_headers() 247 (void) snprintf(subj, len + 1, subj_fmt, hostname, in build_headers() 255 (void) snprintf(subj, len + 1, subj_fmt, hostname, in build_headers() 260 len = snprintf(NULL, 0, subj_fmt, hostname); in build_headers() 263 (void) snprintf(subj, len + 1, subj_fmt, hostname); in build_headers() 288 hostname, XHDR_CLASS, ev_info->ei_class, XHDR_UUID, in build_headers() 324 hostname, XHDR_CLASS, ev_info->ei_class, XHDR_MSGID, in build_headers() 629 len = snprintf(NULL, 0, body_fmt, hostname, tstamp, in irpt_cbfunc() 635 (void) snprintf(body, len, body_fmt, hostname, tstamp, in irpt_cbfunc() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ndp.c | 653 char hostname[NI_MAXHOST]; in ndp_display() local 675 if (getnameinfo((struct sockaddr *)lnr_addr, sizeof (sin6_t), hostname, in ndp_display() 676 sizeof (hostname), NULL, 0, gni_flags) != 0) { in ndp_display() 682 (void) printf("%s (%s) at %s", ipaddr, hostname, lladdr); in ndp_display() 711 char hostname[NI_MAXHOST]; in ndp_display_missing() local 722 if (getnameinfo((struct sockaddr *)lnr_addr, sizeof (sin6_t), hostname, in ndp_display_missing() 723 sizeof (hostname), NULL, 0, flags) != 0) { in ndp_display_missing() 728 (void) printf("%s (%s) -- no entry\n", ipaddr, hostname); in ndp_display_missing()
|
H A D | in.rlogind.c | 353 static char hostname[MAXHOSTNAMELEN + 1]; variable 637 do_krb_login(int f, char *host_addr, char *hostname, in do_krb_login() argument 660 host_addr, hostname, error_message(status)); in do_krb_login() 1005 fromplen, hostname, sizeof (hostname), in doit() 1012 (void) strlcpy(hostname, abuf, sizeof (hostname)); in doit() 1021 hostname, sizeof (hostname)); in doit() 1032 hostname, abuf); in doit() 1037 do_krb_login(f, rhost_addra, hostname, in doit() 1054 (no_name ? abuf : hostname)); in doit() 1188 "-r", hostname, in doit() [all …]
|
H A D | in.comsat.c | 66 char hostname[MAXHOSTNAMELEN]; variable 170 (void) gethostname(hostname, sizeof (hostname)); in main() 359 cr, name, sizeof (hostname), hostname, cr); in notify()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_server.c | 2505 char *hostname = NULL; in client_name() local 2512 hostname = ((struct authunix_parms *) in client_name() 2515 if (hostname == NULL) in client_name() 2516 hostname = ""; in client_name() 2518 return (hostname); in client_name()
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | libtest.shlib | 1316 typeset zone_name=${1:-$(hostname)-z} 1407 echo "hostname=$zone_name" >> $sysidcfg
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_share.c | 2125 char hostname[MAXHOSTNAMELEN]; in smb_shr_publisher() local 2135 (void) smb_gethostname(hostname, MAXHOSTNAMELEN, in smb_shr_publisher() 2175 smb_shr_publisher_send(ah, &publist, hostname); in smb_shr_publisher() 2451 char hostname[MAXHOSTNAMELEN]; in smb_shr_expand_subs() local 2474 if (gethostname(hostname, MAXHOSTNAMELEN) != 0) in smb_shr_expand_subs() 2477 ptr = strdup(hostname); in smb_shr_expand_subs() 2481 hostname, sizeof (hostname), 0) != 0) in smb_shr_expand_subs() 2484 ptr = strdup(hostname); in smb_shr_expand_subs() 2487 if (smb_getnetbiosname(hostname, in smb_shr_expand_subs() 2491 ptr = strdup(hostname); in smb_shr_expand_subs()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_pool.c | 1939 char *hostname = "<unknown>"; in zpool_import_props() local 1948 hostname = fnvlist_lookup_string(nvinfo, in zpool_import_props() 1962 hostname, (unsigned long) hostid); in zpool_import_props()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt.c | 259 char hostname[MAXHOSTNAMELEN]; in adt_get_unique_id() local 273 if (gethostname(hostname, MAXHOSTNAMELEN)) { in adt_get_unique_id() 275 (void) strncpy(hostname, "invalidHostName", MAXHOSTNAMELEN); in adt_get_unique_id() 281 MD5Update(&context, (unsigned char *)hostname, in adt_get_unique_id() 282 (unsigned int) strlen((const char *)hostname)); in adt_get_unique_id() 751 adt_get_hostIP(const char *hostname, au_tid_addr_t *p_term) in adt_get_hostIP() argument 759 DPRINTF(("getaddrinfo(%s) failed[%s]", hostname, in adt_get_hostIP() 840 DPRINTF(("mapping %s to %s", hostname, in adt_get_hostIP() 885 if (hostname == NULL || *hostname == '\0') { in adt_load_hostname() 887 hostname = localhost; in adt_load_hostname() [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | idmapd.c | 372 if (sysinfo(SI_HOSTNAME, _idmapdstate.hostname, in init_idmapd() 373 sizeof (_idmapdstate.hostname)) == -1) { in init_idmapd()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | commands.c | 102 char *hostname; variable 1570 hostname); 2384 (void) printf("Connected to %s.\n", hostname); in status() 2947 (void) printf("?Already connected to %s\n", hostname); in tn() 3070 hostname = _hostname; in tn() 3115 krb5_profile_get_options(hostname, telnet_krb5_realm, in tn() 3274 if (cmdrc(hostp, hostname) != 0) in tn() 3299 MAXHOSTNAMELEN, hostname); in tn() 3313 MAXHOSTNAMELEN, hostname); in tn()
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_event.c | 1766 char *fstype, *hostname; in aus_mount() local 1798 hostname = kmem_alloc(MAXNAMELEN, KM_SLEEP); in aus_mount() 1799 if (copyinstr(STRUCT_FGETP(nfsargs, hostname), in aus_mount() 1800 (caddr_t)hostname, MAXNAMELEN, &len)) { in aus_mount() 1803 au_uwrite(au_to_text(hostname)); in aus_mount() 1808 kmem_free(hostname, MAXNAMELEN); in aus_mount()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | smbiostbl.c | 687 char hostname[MAXHOSTNAMELEN]; in smbios_type1_initializer() local 695 if (gethostname(hostname, sizeof(hostname))) in smbios_type1_initializer() 701 MD5Update(&mdctx, hostname, sizeof(hostname)); in smbios_type1_initializer()
|
H A D | rfb.c | 1389 rfb_init(char *hostname, int port, int wait, const char *password, in rfb_init() argument 1437 if (port == -1 && hostname != NULL && *hostname == '/') { in rfb_init() 1447 if (strlcpy(sock.sun_path, hostname, sizeof (sock.sun_path)) >= in rfb_init() 1450 "socket path '%s' too long\n", hostname); in rfb_init() 1454 (void) unlink(hostname); in rfb_init() 1468 if (hostname == NULL || strlen(hostname) == 0) { in rfb_init() 1470 hostname = "127.0.0.1"; in rfb_init() 1472 hostname = "[::1]"; in rfb_init() 1481 if ((e = getaddrinfo(hostname, servname, &hints, &ai)) != 0) { in rfb_init()
|
H A D | rfb.h | 36 int rfb_init(char *hostname, int port, int wait, const char *password,
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_parse.c | 1299 char *hn, *hnq, hostname[MXHOSTNAMELEN+1]; in parse_nfs() local 1415 if (getword(hostname, qbuff1, &hn, &hnq, '(', in parse_nfs() 1416 sizeof (hostname)) == -1) in parse_nfs() 1418 if (hostname[0] == '\0') in parse_nfs() 1421 if (strcmp(hostname, hostname_and_penalty) == 0) { in parse_nfs() 1485 mfs->mfs_host = strdup(hostname); in parse_nfs()
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | SUNWcs.p5m | 633 file path=usr/bin/hostname mode=0555
|
/illumos-gate/usr/src/cmd/ |
H A D | Makefile | 204 hostname \ 613 hostname \
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_import.c | 480 char *name, *hostname = NULL; in get_configs() local 605 hostname = fnvlist_lookup_string(tmp, in get_configs() 608 ZPOOL_CONFIG_HOSTNAME, hostname); in get_configs() 855 hostname) == 0); in get_configs()
|