/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | uname.c | 53 uname(struct utsname *uts) argument 55 return (bc_uname(uts)); 59 bc_uname(struct utsname *uts) argument 65 memcpy(uts->sysname, n_uts.sysname, SYS_NMLN); 67 uts->sysname[SYS_NMLN-1] = '\0'; 74 memcpy(uts->nodename, n_uts.nodename, SYS_NMLN); 75 memcpy(uts->nodeext, n_uts.nodename + SYS_NMLN, 78 uts->nodeext[sizeof (uts->nodeext) - 1] = '\0'; 80 memcpy(uts [all...] |
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_layout_obj.c | 58 struct utsname uts; variable in typeref:struct:utsname
|
/illumos-gate/usr/src/lib/libnsctl/common/ |
H A D | machdep.c | 164 struct utsname uts; local 182 if (uname(&uts) < 0) 186 if (strcmp(build_rel, uts.release) == 0) 219 if (strcmp(cp, uts.release) == 0) {
|
/illumos-gate/usr/src/cmd/gcore/ |
H A D | gcore.c | 50 struct utsname uts; local 89 (void) uname(&uts); 90 len = snprintf(fname, size, "%s", uts.nodename); 94 (void) uname(&uts); 95 len = snprintf(fname, size, "%s", uts.machine);
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | netpr.c | 77 static struct utsname uts; local 138 if (uts.nodename[0] == '\0') 139 (void) uname(&uts); 140 if (strcmp(host, uts.nodename) == 0) {
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_2xml.c | 50 struct utsname uts; local 56 (void) uname(&uts); 60 "%-15s for %s\n", buf, uts.nodename);
|
H A D | topo_snap.c | 112 struct utsname uts; local 179 (void) uname(&uts); 182 thp->th_machine = topo_hdl_strdup(thp, uts.machine);
|
H A D | topo_mod.c | 765 static struct utsname uts; local 767 (void) uname(&uts); 768 return (topo_mod_strdup(mod, uts.nodename));
|
H A D | hc.c | 252 struct utsname uts; local 303 (void) uname(&uts); 307 TOPO_PROP_IMMUTABLE, uts.machine, &err);
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_subr.c | 481 struct utsname uts; local 526 result = uname(&uts); 533 if (strnlen(uts.machine, sizeof (uts.machine)) > 0) { 536 TOPO_PROP_IMMUTABLE, uts.machine, &err);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/motherboard/ |
H A D | motherboard.c | 248 struct utsname uts; local 273 (void) uname(&uts); 277 TOPO_PROP_IMMUTABLE, uts.machine, &err);
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_config.c | 110 struct utsname uts; local 120 (void) uname(&uts); 121 reply.os_type = uts.sysname; 122 reply.os_vers = uts.release; 293 struct utsname uts; local 304 (void) uname(&uts); 305 reply.os_type = uts.sysname; 306 reply.os_vers = uts.release;
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf_notes.c | 185 struct utsname uts; member in union:__anon187 282 bcopy(&utsname, &bigwad->uts, sizeof (struct utsname)); 284 bcopy(p->p_zone->zone_nodename, &bigwad->uts.nodename, 288 (caddr_t)&bigwad->uts, rlimit, credp);
|
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 94 struct utsname uts; local 97 uname (&uts); 98 sscanf (uts.release, "%d.%d", &major, &minor);
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | globals.c | 120 Uts_desc *uts = NULL; /* utsname descriptor */ variable
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_info.c | 82 struct utsname uts; local 178 (void) uname(&uts); 180 "%s %s %s", uts.sysname, uts.release, uts.version);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_subr.c | 1303 struct utsname uts; local 1347 result = uname(&uts); 1354 if (strnlen(uts.machine, sizeof (uts.machine)) > 0) { 1357 TOPO_PROP_IMMUTABLE, uts.machine, &err);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb.c | 153 struct utsname uts; local 211 if (mdb.m_target == NULL || mdb_tgt_uname(mdb.m_target, &uts) < 0) 212 mdb_conf_uname(&uts); 215 arg_m.a_un.a_str = uts.machine; 218 arg_R.a_un.a_str = uts.release; 224 arg_V.a_un.a_str = uts.version;
|
H A D | mdb_kvm.c | 470 struct utsname uts; local 472 bzero(&uts, sizeof (uts)); 473 (void) strcpy(uts.nodename, "unknown machine"); 474 (void) kt_uname(mdb.m_target, &uts); 479 (int)(sizeof (void *) * NBBY), uts.nodename); 482 (int)(sizeof (void *) * NBBY), uts.nodename); 486 uts.release, uts.version, uts 1383 struct utsname uts; local [all...] |
H A D | mdb_proc.c | 1580 struct utsname uts; local 1584 (void) strcpy(uts.nodename, "unknown machine"); 1585 (void) Puname(P, &uts); 1601 "from %s\n", pi.pr_fname, bits, uts.nodename); 5223 struct utsname uts; local 5228 if (t->t_pshandle == NULL || Puname(t->t_pshandle, &uts) != 0) 5232 bcopy(&uts, buf, nbytes);
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 173 struct utsname uts; local 300 (void) uname(&uts); 301 (void) printf("%s\n", uts.nodename);
|
/illumos-gate/usr/src/common/unicode/ |
H A D | u8_textprep.c | 1399 uchar_t uts[U8_STREAM_SAFE_TEXT_MAX + 1]; local 1618 i = do_decomp(uv, uts, s, sz, 1621 sz = u8_number_of_bytes[uts[j]]; 1625 uts + j, sz); 1643 u8s[saved_sz++] = uts[i];
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pgcore.c | 1046 struct utsname uts; local 1085 (void) Puname(P, &uts); 1360 write_note(fd, NT_UTSNAME, &uts, sizeof (uts), &doff) != 0 ||
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 1824 static Uts_desc *uts = NULL; variable 1938 if (uts == NULL) 1939 uts = conv_uts(); 1941 if (uts && uts->uts_osnamesz) { 1942 if (uts->uts_osnamesz >= nrem) 1945 (void) strncpy(nptr, uts->uts_osname, 1946 uts->uts_osnamesz); 1947 nptr = nptr + uts->uts_osnamesz; 1948 nrem -= uts [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 553 struct utsname uts; local 557 if (mdb_tgt_readsym(mdb.m_target, MDB_TGT_AS_VIRT, &uts, sizeof (uts), 558 "unix", "utsname") != sizeof (uts)) { 560 bzero(&uts, sizeof (uts)); 561 (void) strcpy(uts.nodename, "unknown machine"); 566 (*uts.nodename == '\0' ? "(not set)" : uts.nodename)); 568 uts [all...] |