Home
last modified time | relevance | path

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

12

/third_party/musl/src/unistd/
Dgethostname.c7 struct utsname uts; in gethostname() local
8 if (uname(&uts)) return -1; in gethostname()
9 if (len > sizeof uts.nodename) len = sizeof uts.nodename; in gethostname()
10 for (i=0; i<len && (name[i] = uts.nodename[i]); i++); in gethostname()
/third_party/ltp/testcases/kernel/syscalls/setns/
Dsetns02.c43 struct utsname uts, uts_parent; in do_child_newuts() local
53 if (uname(&uts) == -1) in do_child_newuts()
56 tst_res(TINFO, CP"hostname changed to: %s", uts.nodename); in do_child_newuts()
57 if (strcmp(uts_parent.nodename, uts.nodename) == 0) { in do_child_newuts()
69 if (uname(&uts) == -1) in do_child_newuts()
72 tst_res(TINFO, CP"hostname: %s", uts.nodename); in do_child_newuts()
73 if (strcmp(uts_parent.nodename, uts.nodename) != 0) { in do_child_newuts()
/third_party/unity/auto/
Dunity_test_summary.rb114 uts = UnityTestSummary.new(opts)
124 uts.targets = results
128 uts.root = ARGV[1]
131 puts uts.run
133 uts.usage e.message
Dunity_test_summary.py117 uts = UnityTestSummary() variable
127 uts.set_targets(targets)
134 uts.set_root_path(root_path)
137 print(uts.run())
139 uts.usage(e)
Dunity_to_junit.py124 uts = UnityTestSummary() variable
134 uts.set_targets(targets)
141 uts.set_root_path(root_path)
144 print(uts.run())
/third_party/cJSON/tests/unity/auto/
Dunity_test_summary.rb117 uts = UnityTestSummary.new(opts)
125 uts.targets = results
129 uts.root = ARGV[1]
132 puts uts.run
134 uts.usage e.message
Dunity_test_summary.py117 uts = UnityTestSummary() variable
127 uts.set_targets(targets)
134 uts.set_root_path(root_path)
137 print(uts.run())
139 uts.usage(e)
Dunity_to_junit.py124 uts = UnityTestSummary() variable
134 uts.set_targets(targets)
141 uts.set_root_path(root_path)
144 print(uts.run())
/third_party/toybox/toys/pending/
Dbootchartd.c199 struct utsname uts; in stop_logging() local
211 if (uname(&uts) < 0) perror_exit("uname"); in stop_logging()
212 fprintf(hdr_fp, "system.uname = %s %s %s %s\n", uts.sysname, uts.release, in stop_logging()
213 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.c318 struct utsname uts; in logmsg() local
353 if (!uname(&uts)) p = uts.nodename; in logmsg()
Dmodprobe.c500 struct utsname uts; in modprobe_main() local
519 uname(&uts); in modprobe_main()
521 TT.dirs->arg = xmprintf("/lib/modules/%s", uts.release); in modprobe_main()
/third_party/musl/src/misc/
Duname.c4 int uname(struct utsname *uts) in uname() argument
6 return syscall(SYS_uname, uts); in uname()
/third_party/openssl/crypto/
Dppccap.c278 struct utsname uts; in OPENSSL_cpuid_setup() local
283 if (uname(&uts) != 0 || atoi(uts.version) < 6) in OPENSSL_cpuid_setup()
394 struct utsname uts; in OPENSSL_cpuid_setup() local
395 if (uname(&uts) == 0 && strcmp(uts.machine, "ppc64") == 0) in OPENSSL_cpuid_setup()
/third_party/ltp/lib/
Dtst_kernel.c101 struct utsname uts; in tst_search_driver() local
103 if (uname(&uts)) { in tst_search_driver()
107 SAFE_ASPRINTF(NULL, &path, "/lib/modules/%s/%s", uts.release, file); in tst_search_driver()
/third_party/toybox/toys/other/
Dmodinfo.c109 struct utsname uts; in modinfo_main() local
117 uname(&uts); in modinfo_main()
119 if (!TT.k) TT.k = uts.release; in modinfo_main()
/third_party/skia/third_party/externals/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()
/third_party/e2fsprogs/e2fsck/
Dutil.c693 struct utsname uts; in check_for_modules() local
698 if (uname(&uts)) in check_for_modules()
700 snprintf(buf, sizeof(buf), "/lib/modules/%s/modules.dep", uts.release); in check_for_modules()
/third_party/toybox/kconfig/
Dsymbol.c48 struct utsname uts; in sym_init() local
56 uname(&uts); in sym_init()
77 sym_add_default(sym, uts.release); in sym_init()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/
DMachO.h1724 } uts; member
1764 swapStruct(x.uts.ts64); in swapStruct()
1842 } uts; member
1863 swapStruct(x.uts.ts32); in swapStruct()
1967 } uts; member
1988 swapStruct(x.uts.ts32); in swapStruct()
/third_party/selinux/libselinux/src/
Dselinux_restorecon.c230 struct utsname uts; in exclude_non_seclabel_mounts() local
238 if (uname(&uts) == 0 && strverscmp(uts.release, "2.6.30") < 0) in exclude_non_seclabel_mounts()
/third_party/libusb/libusb/os/
Dlinux_usbfs.c298 struct utsname uts; in get_kernel_version() local
301 if (uname(&uts) < 0) { in get_kernel_version()
306 atoms = sscanf(uts.release, "%d.%d.%d", &ver->major, &ver->minor, &ver->sublevel); in get_kernel_version()
308 usbi_err(ctx, "failed to parse uname release '%s'", uts.release); in get_kernel_version()
315 usbi_dbg("reported kernel version is %s", uts.release); in get_kernel_version()
/third_party/e2fsprogs/lib/blkid/
Dprobe.c208 struct utsname uts; in check_for_modules() local
213 if (uname(&uts)) in check_for_modules()
215 snprintf(buf, sizeof(buf), "/lib/modules/%s/modules.dep", uts.release); in check_for_modules()
/third_party/iptables/libxtables/
Dxtables.c2311 static struct utsname uts; in get_kernel_version() local
2314 if (uname(&uts) == -1) { in get_kernel_version()
2320 sscanf(uts.release, "%d.%d.%d", &x, &y, &z); in get_kernel_version()
/third_party/libevdev/build-aux/
Dconfig.sub1438 ctix* | uts*)

12