/illumos-gate/usr/src/uts/common/os/ |
H A D | vers.c | 30 * Template utsname; appropriate values for UTS_RELEASE, UTS_VERSION and 34 #include <sys/utsname.h> 36 struct utsname utsname = { variable in typeref:struct:utsname
|
/illumos-gate/usr/src/lib/libbc/inc/include/sys/ |
H A D | utsname.h | 36 struct utsname { struct 46 extern struct utsname utsname; 48 int uname(/* struct utsname *name */);
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | tokens.c | 30 #include <sys/utsname.h> 110 struct utsname utsname; local 120 if (uname(&utsname) == -1) 126 size = strlen(utsname.sysname); 130 (void) strncpy(desc->uts_osname, utsname.sysname, size); 132 size = strlen(utsname.release); 136 (void) strncpy(desc->uts_osrel, utsname.release, size);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | utsname.h | 42 #define _SYS_NMLN 257 /* 4.0 size of utsname elements */ 52 struct utsname { struct 61 extern struct utsname utsname; 68 extern int uname(struct utsname *); 69 extern int _uname(struct utsname *); 72 extern int nuname(struct utsname *); 74 extern int _nuname(struct utsname *); 77 * On i386 in SVID.2 uname() returns a utsname structure with 8 byte members, 78 * and nuname() returns the real struct utsname [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_autofs.c | 39 #include <sys/utsname.h> 63 struct utsname utsname; local 86 if (uname(&utsname) < 0) { 101 (void) strcpy(fnip->addr.buf, utsname.nodename);
|
H A D | mount.c | 41 #include <sys/utsname.h> 70 struct utsname utsname; local 117 if (uname(&utsname) < 0) { 121 (void) strcpy(autofs_addr, utsname.nodename);
|
H A D | automount.c | 49 #include <sys/utsname.h> 88 struct utsname utsname; local 197 if (uname(&utsname) < 0) { 201 (void) strcpy(autofs_addr, utsname.nodename);
|
/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | load_node.c | 39 #include <sys/utsname.h> 71 struct utsname utsname; local 75 uname(&utsname); 76 len = strlen(search_proto) + strlen(platform) + strlen(utsname.machine); 83 utsname.machine, arch, arch); 89 sprintf(p, search_proto, platform, "", utsname.machine, "", "");
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypset.c | 51 #include <sys/utsname.h> 155 struct utsname utsname; local 159 (void) uname(&utsname); 160 if (strcasecmp(utsname.nodename,
|
H A D | ypwhich.c | 70 #include <sys/utsname.h> 331 struct utsname utsname; local 333 if (uname(&utsname) != -1) { 334 strcpy(default_host_name, utsname.nodename); 379 struct utsname utsname; local 388 if ((uname(&utsname) != -1) && 389 (strcmp(host, utsname.nodename) == 0))
|
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/ |
H A D | straddr.c | 39 #include <sys/utsname.h> 419 struct utsname utsname; local 432 (uname(&utsname) >= 0 && strcmp(token, utsname.nodename) == 0)) {
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | uname.c | 84 #include "FEATURE/utsname" 90 #include <sys/utsname.h> 136 struct utsname struct 146 uname(register struct utsname* ut) 262 struct utsname ut;
|
/illumos-gate/usr/src/cmd/setuname/ |
H A D | setuname.c | 47 * <sys/utsname.h> System Name 63 #include <sys/utsname.h> 380 struct utsname utsname; /* Space for the kernel's utsname information */ 386 {"utsname", 0, 0, 0, 0, 0}, 391 uintptr_t utsname_addr; /* Addr of "utsname" in the kernel */ 409 * Get the virtual address of the symbol "utsname" in the kernel 420 for (i = symbtbl->count; i-- && (strcmp(p, "utsname") != 0) ; p = S3BNXTSYM(p)) ; 444 * Open the kernel's memory, get the existing "utsname" structur 377 struct utsname utsname; /* Space for the kernel's utsname information */ local [all...] |
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starcat/ |
H A D | cvcd.c | 52 #include <sys/utsname.h> 163 struct utsname utsname; local 207 if (uname(&utsname) == -1) { 211 hostname = utsname.nodename; 221 * we reuse the utsname.nodename buffer here! hostname 225 if ((i = read(fd, utsname.nodename, SYS_NMLN)) <= 0) { 229 utsname.nodename[i-1] = '\0'; 239 (void) strcpy(utsname.nodename, "(unknown)");
|
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 48 #include <sys/utsname.h> 122 struct utsname utsname; local 193 if (uname(&utsname) == -1) { 197 hostname = utsname.nodename; 207 * we reuse the utsname.nodename buffer here! hostname 211 if ((i = read(nfd, utsname.nodename, SYS_NMLN)) <= 0) { 215 utsname.nodename[i-1] = '\0';
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 66 #include <sys/utsname.h> 198 struct utsname utsname; local 332 uname(&utsname); 334 printf("*\n* %s Configuration\n*\n", utsname.machine); 370 utsnm = setup("utsname"); 425 MEMREAD(utsname); 427 printf("%8s release (REL)\n", utsname.release); 428 printf("%8s node name (NODE)\n", utsname.nodename); 429 printf("%8s system name (SYS)\n", utsname [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mdoc_validate.c | 23 #include <sys/utsname.h> 2113 struct utsname utsname; local 2150 if (uname(&utsname) == -1) { 2156 utsname.sysname, utsname.release);
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | main.c | 717 struct utsname utsname; local 729 if (uname(&utsname) >= 0) 730 p = utsname.nodename;
|
/illumos-gate/usr/src/tools/codereview/ |
H A D | lwlp.c | 77 #include <sys/utsname.h> 1417 struct utsname utsname; local 1429 (void) uname(&utsname); 1430 hostname = strdup(utsname.nodename);
|
/illumos-gate/usr/src/man/man3head/ |
H A D | Makefile | 104 utsname.h.3head \ 193 utsname.3head \ 282 utsname.3head := LINKSRC = utsname.h.3head
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | struct_layout.h | 497 * Layout description of struct utsname, from <sys/utsname.h>. 561 const sl_utsname_layout_t *utsname; /* struct utsname */ member in struct:__anon69
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | kernel.c | 41 #include <sys/utsname.h> 58 struct utsname utsname = { variable in typeref:struct:utsname
|
/illumos-gate/usr/src/cmd/sendmail/include/sm/ |
H A D | conf.h | 2797 # include <sys/utsname.h> 2803 struct utsname struct
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 55 #include <sys/utsname.h> 2887 struct utsname uts_info; 3512 struct utsname utsname; local 3515 if (uname(&utsname) < 0) 3518 (void) strcpy(mach_name, utsname.machine);
|