Home
last modified time | relevance | path

Searched refs:uts (Results 1 – 25 of 32) sorted by relevance

12

/external/fio/os/
Dos-openbsd.h94 struct utsname uts; in shm_attach_to_open_removed() local
97 if (uname(&uts) == -1) in shm_attach_to_open_removed()
104 if (uts.release[0] > '9' || uts.release[0] < '0') in shm_attach_to_open_removed()
106 if (uts.release[1] != '.') in shm_attach_to_open_removed()
108 if (uts.release[2] > '9' || uts.release[2] < '0') in shm_attach_to_open_removed()
111 major = uts.release[0] - '0'; in shm_attach_to_open_removed()
112 minor = uts.release[2] - '0'; in shm_attach_to_open_removed()
/external/ltp/testcases/kernel/syscalls/setns/
Dsetns02.c66 struct utsname uts, uts_parent; in do_child_newuts() local
76 if (uname(&uts) == -1) in do_child_newuts()
79 tst_resm(TINFO, CP"hostname changed to: %s", uts.nodename); in do_child_newuts()
80 if (strcmp(uts_parent.nodename, uts.nodename) == 0) { in do_child_newuts()
92 if (uname(&uts) == -1) in do_child_newuts()
95 tst_resm(TINFO, CP"hostname: %s", uts.nodename); in do_child_newuts()
96 if (strcmp(uts_parent.nodename, uts.nodename) != 0) { in do_child_newuts()
/external/toybox/toys/pending/
Dbootchartd.c214 struct utsname uts; in stop_logging() local
226 if (uname(&uts) < 0) perror_exit("uname"); in stop_logging()
227 fprintf(hdr_fp, "system.uname = %s %s %s %s\n", uts.sysname, uts.release, in stop_logging()
228 uts.version, uts.machine); in stop_logging()
Dgetty.c207 struct utsname uts; in print_prompt() local
209 uname(&uts); in print_prompt()
210 hostname = xstrdup(uts.nodename); in print_prompt()
Dsyslogd.c319 struct utsname uts; in logmsg() local
354 if (!uname(&uts)) p = uts.nodename; in logmsg()
Dmodprobe.c499 struct utsname uts; in modprobe_main() local
518 uname(&uts); in modprobe_main()
520 TT.dirs->arg = xmprintf("/lib/modules/%s", uts.release); in modprobe_main()
/external/google-breakpad/src/client/solaris/handler/
Dminidump_generator.cc313 struct utsname uts; in WriteCPUInformation() local
318 if (uname(&uts) != -1) { in WriteCPUInformation()
320 if (strcmp(uts.machine, "i86pc") == 0) in WriteCPUInformation()
322 else if (strcmp(uts.machine, "sun4u") == 0) in WriteCPUInformation()
326 major = uts.release; in WriteCPUInformation()
333 build = strchr(uts.version, '_'); in WriteCPUInformation()
344 struct utsname uts; in WriteOSInformation() local
345 if (uname(&uts) != -1) { in WriteOSInformation()
350 uts.sysname, in WriteOSInformation()
351 uts.release, in WriteOSInformation()
[all …]
/external/toybox/toys/other/
Dmodinfo.c110 struct utsname uts; in modinfo_main() local
112 if (uname(&uts) < 0) perror_exit("bad uname"); in modinfo_main()
115 (toys.optflags & FLAG_k) ? TT.knam : uts.release) >= sizeof(toybuf)) in modinfo_main()
/external/google-breakpad/src/client/linux/microdump_writer/
Dmicrodump_writer.cc147 struct utsname uts; in DumpOSInformation() local
148 if (uname(&uts)) in DumpOSInformation()
181 LogAppend(uts.machine); in DumpOSInformation()
183 LogAppend(uts.release); in DumpOSInformation()
185 LogAppend(uts.version); in DumpOSInformation()
/external/valgrind/coregrind/m_coredump/
Dcoredump-solaris.c607 static void fill_utsname(struct vki_utsname *uts) in fill_utsname() argument
609 VG_(memset)(uts, 0, sizeof(*uts)); in fill_utsname()
612 (UWord) &uts->sysname, sizeof(uts->sysname)); in fill_utsname()
614 (UWord) &uts->nodename, sizeof(uts->nodename)); in fill_utsname()
616 (UWord) &uts->release, sizeof(uts->release)); in fill_utsname()
618 (UWord) &uts->version, sizeof(uts->version)); in fill_utsname()
620 (UWord) &uts->machine, sizeof(uts->machine)); in fill_utsname()
985 struct vki_utsname uts; in VG_() local
986 fill_utsname(&uts); in VG_()
987 add_note(&new_notes, VKI_NT_UTSNAME, &uts, in VG_()
/external/selinux/libselinux/src/
Dload_policy.c63 struct utsname uts; in selinux_mkload_policy() local
162 if (preservebools && uname(&uts) == 0 && strverscmp(uts.release, "2.6.22") >= 0) in selinux_mkload_policy()
Dselinux_restorecon.c233 struct utsname uts; in exclude_non_seclabel_mounts() local
242 if (uname(&uts) == 0 && strverscmp(uts.release, "2.6.30") < 0) in exclude_non_seclabel_mounts()
/external/valgrind/coregrind/
Dm_libcprint.c287 struct vki_utsname uts; in VG_() local
289 SysRes res = VG_(do_syscall1)(__NR_uname, (UWord)&uts); in VG_()
294 uts.sysname, uts.release, uts.version, uts.machine); in VG_()
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer.cc1192 struct utsname uts; in WriteOSInformation() local
1193 if (uname(&uts)) in WriteOSInformation()
1200 uts.sysname, in WriteOSInformation()
1201 uts.release, in WriteOSInformation()
1202 uts.version, in WriteOSInformation()
1203 uts.machine, in WriteOSInformation()
/external/e2fsprogs/e2fsck/
Dutil.c683 struct utsname uts; in check_for_modules() local
688 if (uname(&uts)) in check_for_modules()
690 snprintf(buf, sizeof(buf), "/lib/modules/%s/modules.dep", uts.release); in check_for_modules()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMachO.h1659 } uts; member
1699 swapStruct(x.uts.ts64); in swapStruct()
1774 } uts; member
1795 swapStruct(x.uts.ts32); in swapStruct()
1899 } uts; member
1920 swapStruct(x.uts.ts32); in swapStruct()
/external/toybox/kconfig/
Dsymbol.c48 struct utsname uts; in sym_init() local
56 uname(&uts); in sym_init()
75 sym_add_default(sym, uts.release); in sym_init()
/external/e2fsprogs/lib/blkid/
Dprobe.c207 struct utsname uts; in check_for_modules() local
212 if (uname(&uts)) in check_for_modules()
214 snprintf(buf, sizeof(buf), "/lib/modules/%s/modules.dep", uts.release); in check_for_modules()
/external/iptables/libxtables/
Dxtables.c1975 static struct utsname uts; in get_kernel_version() local
1978 if (uname(&uts) == -1) { in get_kernel_version()
1984 sscanf(uts.release, "%d.%d.%d", &x, &y, &z); in get_kernel_version()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-amd64-darwin.c140 x86_thread_state64_from_vex(&((x86_thread_state_t *)mach_generic)->uts.ts64, vex); in thread_state_from_vex()
/external/minijail/
Dlibminijail.c118 int uts : 1; member
464 j->flags.uts = 1; in minijail_namespace_uts()
1681 if (j->flags.uts) { in minijail_enter()
/external/libusb/libusb/os/
Dlinux_usbfs.c347 struct utsname uts; in kernel_version_ge() local
350 if (uname(&uts) < 0) in kernel_version_ge()
352 atoms = sscanf(uts.release, "%d.%d.%d", &kmajor, &kminor, &ksublevel); in kernel_version_ge()
/external/llvm/include/llvm/Support/
DMachO.h1644 } uts; member
1684 swapStruct(x.uts.ts64); in swapStruct()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h390 #define __sanitizer_syscall_pre_rt_sigtimedwait(uthese, uinfo, uts, \ argument
393 (long)(uthese), (long)(uinfo), (long)(uts), (long)(sigsetsize))
394 #define __sanitizer_syscall_post_rt_sigtimedwait(res, uthese, uinfo, uts, \ argument
397 res, (long)(uthese), (long)(uinfo), (long)(uts), (long)(sigsetsize))
2228 long uts, long sigsetsize);
2230 long uinfo, long uts,
/external/libpcap/
DCREDITS156 Shaun Clowes <delius at progsoc dot uts dot edu dot au>

12