Lines Matching refs:utsname
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" structure,
449 if (kvm_kread(kd, utsname_addr, &utsname, sizeof (utsname)) ==
450 sizeof (utsname)) {
452 (void) strncpy(utsname.sysname, sysname,
453 sizeof (utsname.sysname));
455 (void) strncpy(utsname.nodename, nodename,
456 sizeof (utsname.nodename));
457 (void) kvm_kwrite(kd, utsname_addr, &utsname, sizeof (utsname));
464 (read(memfd, &utsname, sizeof(utsname)) == sizeof(utsname))) {
465 if (sysname) (void) strncpy(utsname.sysname, sysname, sizeof(utsname.sysname));
466 if (nodename) (void) strncpy(utsname.nodename, nodename, sizeof(utsname.nodename));
468 (void) write(memfd, &utsname, sizeof(utsname));