/illumos-gate/usr/src/uts/common/syscall/ |
H A D | uname.c | 39 uname(struct utsname *buf) in uname() 43 if (copyout(utsname.sysname, buf->sysname, strlen(utsname.sysname)+1)) { in uname() 49 if (copyout(utsname.release, buf->release, strlen(utsname.release)+1)) { in uname() 52 if (copyout(utsname.version, buf->version, strlen(utsname.version)+1)) { in uname() 55 if (copyout(utsname.machine, buf->machine, strlen(utsname.machine)+1)) { in uname()
|
H A D | systeminfo.c | 71 kstr = utsname.sysname; in systeminfo() 77 kstr = utsname.release; in systeminfo() 80 kstr = utsname.version; in systeminfo() 83 kstr = utsname.machine; in systeminfo() 250 if (name_to_use == utsname.nodename) /* global zone nodename */ in systeminfo()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | utsname.h | 52 struct utsname { struct 61 extern struct utsname utsname; argument 68 extern int uname(struct utsname *); 69 extern int _uname(struct utsname *); 72 extern int nuname(struct utsname *); 74 extern int _nuname(struct utsname *); 93 extern int uname(struct utsname *);
|
/illumos-gate/usr/src/common/bootbanner/ |
H A D | bootbanner.c | 54 struct utsname utsname; in bootbanner_expand_template() local 55 bzero(&utsname, sizeof (utsname)); in bootbanner_expand_template() 56 (void) uname(&utsname); in bootbanner_expand_template() 87 ilstr_append_str(output, utsname.sysname); in bootbanner_expand_template() 91 ilstr_append_str(output, utsname.release); in bootbanner_expand_template() 93 ilstr_append_str(output, utsname.version); in bootbanner_expand_template()
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | tokens.c | 108 struct utsname utsname; in conv_uts() local 118 if (uname(&utsname) == -1) in conv_uts() 124 size = strlen(utsname.sysname); in conv_uts() 128 (void) strncpy(desc->uts_osname, utsname.sysname, size); in conv_uts() 130 size = strlen(utsname.release); in conv_uts() 134 (void) strncpy(desc->uts_osrel, utsname.release, size); in conv_uts()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/features/ |
H A D | utsname | 3 mem utsname.base_rel,utsname.idnumber,utsname.m_type,utsname.nodeext sys/utsname.h
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_conf.c | 69 mdb_conf_uname(struct utsname *utsp) in mdb_conf_uname() 71 bzero(utsp, sizeof (struct utsname)); in mdb_conf_uname() 74 struct utsname *utsaddr; in mdb_conf_uname() 81 if ((utsaddr = (struct utsname *)kmdb_kdi_lookup_by_name("unix", in mdb_conf_uname() 88 bcopy(utsaddr, utsp, sizeof (struct utsname)); in mdb_conf_uname()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/ |
H A D | tst.kpriv.ksh | 32 BEGIN { badsubr = "func()"; func((void *)&\`utsname); FAIL } 35 BEGIN { badsubr = "func()"; func((void *)&\`utsname, arg1); FAIL } 38 BEGIN { badsubr = "func() (arg1)"; func(arg0, (void *)&\`utsname); FAIL } 41 BEGIN { badsubr = "func()"; func((void *)&\`utsname, arg1, arg2); FAIL }
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | mount.c | 68 struct utsname utsname; in main() local 115 if (uname(&utsname) < 0) { in main() 119 (void) strcpy(autofs_addr, utsname.nodename); in main()
|
H A D | autod_autofs.c | 61 struct utsname utsname; in mount_autofs() local 84 if (uname(&utsname) < 0) { in mount_autofs() 99 (void) strcpy(fnip->addr.buf, utsname.nodename); in mount_autofs()
|
H A D | automount.c | 88 struct utsname utsname; in main() local 197 if (uname(&utsname) < 0) { in main() 201 (void) strcpy(autofs_addr, utsname.nodename); in main()
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 196 struct utsname utsname; in main() local 330 uname(&utsname); in main() 332 printf("*\n* %s Configuration\n*\n", utsname.machine); in main() 423 MEMREAD(utsname); in main() 425 printf("%8s release (REL)\n", utsname.release); in main() 426 printf("%8s node name (NODE)\n", utsname.nodename); in main() 427 printf("%8s system name (SYS)\n", utsname.sysname); in main() 428 printf("%8s version (VER)\n", utsname.version); in main()
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypset.c | 153 struct utsname utsname; local 157 (void) uname(&utsname); 158 if (strcasecmp(utsname.nodename,
|
H A D | ypwhich.c | 328 struct utsname utsname; in getlochost() local 330 if (uname(&utsname) != -1) { in getlochost() 331 strcpy(default_host_name, utsname.nodename); in getlochost() 376 struct utsname utsname; local 385 if ((uname(&utsname) != -1) && 386 (strcmp(host, utsname.nodename) == 0))
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | vers.c | 34 struct utsname utsname = { variable
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/i386/funcs/ |
H A D | tst.badcopyinstr.d | 43 os = copyinstr((uintptr_t)&`utsname); 49 exit(arg4 == DTRACEFLT_BADADDR && arg5 == (uint64_t)&`utsname ? 0 : 1);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_conf.c | 71 mdb_conf_uname(struct utsname *utsp) in mdb_conf_uname() 73 bzero(utsp, sizeof (struct utsname)); in mdb_conf_uname()
|
/illumos-gate/usr/src/cmd/ast/libcmd/amd64/FEATURE/ |
H A D | utsname | 1 /* : : generated from contrib/ast/src/lib/libcmd/features/utsname by iffe version 2012-07-17 : : */ 11 #define _sys_utsname 1 /* #include <sys/utsname.h> ok */
|
/illumos-gate/usr/src/cmd/ast/libcmd/i386/FEATURE/ |
H A D | utsname | 1 /* : : generated from contrib/ast/src/lib/libcmd/features/utsname by iffe version 2012-07-17 : : */ 11 #define _sys_utsname 1 /* #include <sys/utsname.h> ok */
|
/illumos-gate/usr/src/cmd/ast/libcmd/sparc/FEATURE/ |
H A D | utsname | 1 /* : : generated from contrib/ast/src/lib/libcmd/features/utsname by iffe version 2012-07-17 : : */ 11 #define _sys_utsname 1 /* #include <sys/utsname.h> ok */
|
/illumos-gate/usr/src/cmd/ast/libcmd/sparcv9/FEATURE/ |
H A D | utsname | 1 /* : : generated from contrib/ast/src/lib/libcmd/features/utsname by iffe version 2012-07-17 : : */ 11 #define _sys_utsname 1 /* #include <sys/utsname.h> ok */
|
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/ |
H A D | straddr.c | 419 struct utsname utsname; in searchhost() local 432 (uname(&utsname) >= 0 && strcmp(token, utsname.nodename) == 0)) { in searchhost()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_history.c | 305 fnvlist_add_string(nvl, ZPOOL_HIST_HOST, utsname.nodename); in spa_history_log_sync() 624 utsname.nodename, utsname.release, utsname.version, in spa_history_log_version() 625 utsname.machine); in spa_history_log_version()
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | plat_ecc_unum.c | 692 PLAT_ECC_VERSION_LENGTH, "%s %s", utsname.release, utsname.version); in plat_log_fruid_indictment() 793 ver_len = strlen(utsname.release) + strlen(utsname.version) + 2; in plat_ecc_capability_send() 817 utsname.release, utsname.version); in plat_ecc_capability_send()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_struct_layout.c | 561 START(utsname, struct utsname); in gen_utsname() 563 ARRAY_FIELD(struct utsname, sysname, 0); in gen_utsname() 564 ARRAY_FIELD(struct utsname, nodename, 0); in gen_utsname() 565 ARRAY_FIELD(struct utsname, release, 0); in gen_utsname() 566 ARRAY_FIELD(struct utsname, version, 0); in gen_utsname() 567 ARRAY_FIELD(struct utsname, machine, 0); in gen_utsname()
|