Home
last modified time | relevance | path

Searched refs:sysname (Results 1 – 25 of 66) sorted by relevance

123

/third_party/ltp/testcases/kernel/uevents/
Duevent03.c72 char *handlers, *handler1, *handler2, *sysname; in verify_uevent() local
167 sysname = get_input_field_value('S'); in verify_uevent()
170 if (!sysname) in verify_uevent()
173 tst_res(TINFO, "Sysname: %s", sysname); in verify_uevent()
190 snprintf(add_msg, sizeof(add_msg), "add@%s", sysname); in verify_uevent()
192 snprintf(rem_msg, sizeof(rem_msg), "remove@%s", sysname); in verify_uevent()
194 snprintf(dev_path, sizeof(dev_path), "DEVPATH=%s", sysname); in verify_uevent()
197 "add@%s/%s", sysname, handler1); in verify_uevent()
200 "remove@%s/%s", sysname, handler1); in verify_uevent()
203 "DEVPATH=%s/%s", sysname, handler1); in verify_uevent()
[all …]
/third_party/eudev/src/libudev/
Dlibudev-util.c57 char *sysname; in util_resolve_subsys_kernel() local
68 sysname = strchr(subsys, '/'); in util_resolve_subsys_kernel()
69 if (sysname == NULL) in util_resolve_subsys_kernel()
71 sysname[0] = '\0'; in util_resolve_subsys_kernel()
72 sysname = &sysname[1]; in util_resolve_subsys_kernel()
74 attr = strchr(sysname, ']'); in util_resolve_subsys_kernel()
87 dev = udev_device_new_from_subsystem_sysname(udev, subsys, sysname); in util_resolve_subsys_kernel()
99 log_debug("value '[%s/%s]%s' is '%s'", subsys, sysname, attr, result); in util_resolve_subsys_kernel()
108 log_debug("path '[%s/%s]%s' is '%s'", subsys, sysname, attr, result); in util_resolve_subsys_kernel()
Dlibudev-device.c64 char *sysname; member
427 udev_device->sysname = strdup(&pos[1]); in udev_device_set_syspath()
428 if (udev_device->sysname == NULL) in udev_device_set_syspath()
433 while (udev_device->sysname[len] != '\0') { in udev_device_set_syspath()
434 if (udev_device->sysname[len] == '!') in udev_device_set_syspath()
435 udev_device->sysname[len] = '/'; in udev_device_set_syspath()
440 while (len > 0 && isdigit(udev_device->sysname[--len])) in udev_device_set_syspath()
441 udev_device->sysnum = &udev_device->sysname[len]; in udev_device_set_syspath()
883 char *sysname; in udev_device_new_from_device_id() local
927 sysname = strchr(subsys, ':'); in udev_device_new_from_device_id()
[all …]
Dlibudev-enumerate.c545 …c_ int udev_enumerate_add_match_sysname(struct udev_enumerate *udev_enumerate, const char *sysname) in udev_enumerate_add_match_sysname() argument
549 if (sysname == NULL) in udev_enumerate_add_match_sysname()
551 if (udev_list_entry_add(&udev_enumerate->sysname_match_list, sysname, NULL) == NULL) in udev_enumerate_add_match_sysname()
641 static bool match_sysname(struct udev_enumerate *udev_enumerate, const char *sysname) in match_sysname() argument
649 if (fnmatch(udev_list_entry_get_name(list_entry), sysname, 0) != 0) in match_sysname()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/speculative/
D5-2.c94 output("Implementation is: \n\t%s\n\t%s\n\t%s\n", un.sysname, in main()
99 if (strcmp(un.sysname, "Linux") == 0) { in main()
108 if (strcmp(un.sysname, "AIX") == 0) { in main()
112 if (strcmp(un.sysname, "SunOS") == 0) { in main()
/third_party/libinput/src/
Dudev-seat.c82 const char *devnode, *sysname; in device_added() local
97 sysname = udev_device_get_sysname(udev_device); in device_added()
128 sysname, in device_added()
134 sysname, in device_added()
173 const char *path, *sysname; in udev_input_add_devices() local
184 sysname = udev_device_get_sysname(device); in udev_input_add_devices()
185 if (strncmp("event", sysname, 5) != 0) { in udev_input_add_devices()
195 sysname, in udev_input_add_devices()
Dpath-seat.c131 const char *devnode, *sysname; in path_seat_get_for_device() local
134 sysname = udev_device_get_sysname(udev_device); in path_seat_get_for_device()
149 sysname, in path_seat_get_for_device()
161 sysname, in path_seat_get_for_device()
182 const char *devnode, *sysname; in path_device_enable() local
185 sysname = udev_device_get_sysname(udev_device); in path_device_enable()
198 sysname, in path_device_enable()
204 sysname, in path_device_enable()
/third_party/ltp/testcases/kernel/syscalls/newuname/
Dnewuname01.c127 TEST(strcmp(name.sysname, "Linux")); //Linux ? in main()
130 name.sysname); in main()
135 name.sysname, name.machine); in main()
/third_party/lwip/src/apps/snmp/
Dsnmp_mib2_system.c74 static const u8_t *sysname = sysname_default; variable
163 sysname = ocstr; in snmp_mib2_set_sysname()
179 sysname = ocstr; in snmp_mib2_set_sysname_readonly()
254 var = sysname; in system_get_value()
/third_party/libuv/test/
Dtest-uname.c50 ASSERT(strcmp(buffer.sysname, buf.sysname) == 0); in TEST_IMPL()
/third_party/gn/src/util/
Dsys_info.cc27 std::string os(info.sysname); in OperatingSystemArchitecture()
39 } else if (std::string(info.sysname) == "OS/390") { in OperatingSystemArchitecture()
/third_party/eudev/src/udev/
Dudev-builtin-input_id.c322 const char *sysname, *devnode; in builtin_input_id() local
355 sysname = udev_device_get_sysname(dev); in builtin_input_id()
356 if (devnode && sysname && startswith(sysname, "event")) in builtin_input_id()
/third_party/re2/benchlog/
Dmktable13 …printf "<tr><td>%s</td><td>%.1f µs</td><td>%.1f µs</td></tr>\n", $sysname{$sys}, $ns_pcre/1000., $…
110 %sysname = (
/third_party/libinput/test/
Dtest-udev.c468 const char *sysname; in START_TEST() local
488 sysname = libinput_device_get_sysname(device); in START_TEST()
489 ck_assert_notnull(sysname); in START_TEST()
490 ck_assert_int_gt(strlen(sysname), 1); in START_TEST()
491 ck_assert(strchr(sysname, '/') == NULL); in START_TEST()
492 ck_assert_int_eq(strncmp(sysname, "event", 5), 0); in START_TEST()
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dutsname.h11 char sysname[65]; member
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dutsname.h11 char sysname[65]; member
/third_party/musl/include/sys/
Dutsname.h11 char sysname[65]; member
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dutsname.h11 char sysname[65]; member
/third_party/musl/ndk_musl_include/sys/
Dutsname.h11 char sysname[65]; member
/third_party/musl/porting/uniproton/kernel/include/sys/
Dutsname.h11 char sysname[65]; member
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/
Dutsname.h12 char sysname[65]; member
/third_party/ltp/testcases/kernel/syscalls/uname/
Duname01.c26 if (strcmp(un.sysname, "Linux")) { in verify_uname()
/third_party/musl/libc-test/src/api/
Dsys_utsname.c7 F(char,sysname[1]) in f()
/third_party/toybox/toys/posix/
Duname.c60 char *c = ((char *) &u)+(sizeof(u.sysname)*i); in uname_main()
/third_party/toybox/porting/liteos_a/toys/posix/
Duname.c60 char *c = ((char *) &u)+(sizeof(u.sysname)*i); in uname_main()

123