/third_party/libinput/src/ |
H A D | util-strings.h | 58 strneq(const char *str1, const char *str2, int n) in strneq() function 437 return strneq(&str[offset], suffix, suffixlen); in strendswith() 448 return prefixlen > 0 ? strneq(str, prefix, strlen(prefix)) : false; in strstartswith()
|
H A D | udev-seat.c | 186 if (!strneq("event", sysname, 5)) { in udev_input_add_devices() 230 if (!strneq("event", udev_device_get_sysname(udev_device), 5)) in evdev_udev_handler()
|
H A D | quirks.c | 530 return strneq(value, "0x", 2) && in parse_hex() 605 if (!strneq(value, "dmi:", 4)) { in parse_match() 663 assert(strneq(key, "Model", 5)); in parse_model() 901 if (strneq(key, "Match", 5)) in parse_value_line() 903 else if (strneq(key, "Model", 5)) in parse_value_line() 905 else if (strneq(key, "Attr", 4)) in parse_value_line() 1033 if (!strneq(line, "Match", 5)) { in parse_file() 1041 if (!strneq(line, "Match", 5)) in parse_file() 1045 if (strneq(line, "Match", 5)) { in parse_file()
|
H A D | util-prop-parsers.c | 308 if (strneq(s, "EV_", 3)) { in parse_evcode_string()
|
/third_party/libinput/test/ |
H A D | litest-device-keyboard-all-codes.c | 60 if (name && strneq(name, "BTN_", 4)) in all_codes_create()
|
H A D | test-utils.c | 1522 ck_assert(strneq("", "", 1) == true); in START_TEST() 1523 ck_assert(strneq(NULL, NULL, 1) == true); in START_TEST() 1524 ck_assert(strneq("0.0.1", "", 6) == false); in START_TEST() 1525 ck_assert(strneq("foo", NULL, 5) == false); in START_TEST() 1526 ck_assert(strneq(NULL, "foo", 5) == false); in START_TEST() 1527 ck_assert(strneq("0.0.1", "0.0.1", 6) == true); in START_TEST()
|
H A D | test-keyboard.c | 346 if (!name || !strneq(name, "KEY_", 4)) in START_TEST()
|
H A D | test-udev.c | 491 ck_assert(strneq(sysname, "event", 5)); in START_TEST()
|
H A D | test-path.c | 497 ck_assert(strneq(sysname, "event", 5)); in START_TEST()
|
H A D | test-device.c | 1696 !strneq(keyname, "BTN_", 4) || in START_TEST() 1697 strneq(keyname, "BTN_TOOL_", 9)) in START_TEST()
|
H A D | litest.c | 757 if (strneq(kv->key, "EVDEV_ABS_", 10)) in litest_init_device_udev_rules() 824 if (strneq(path, prefix, strlen(prefix))) { in open_restricted()
|
/third_party/libinput/tools/ |
H A D | libinput-record.c | 1367 if (!distro && strneq(osrstr, "ID=", 3)) in print_system_header() 1369 else if (!version && strneq(osrstr, "VERSION_ID=", 11)) in print_system_header() 1748 if (strneq(key, "ID_INPUT", 8) || in print_udev_properties() 1749 strneq(key, "LIBINPUT", 8) || in print_udev_properties() 1750 strneq(key, "EVDEV_ABS", 9) || in print_udev_properties() 1751 strneq(key, "MOUSE_DPI", 9) || in print_udev_properties() 1752 strneq(key, "POINTINGSTICK_", 14)) { in print_udev_properties() 1891 return strneq(dir->d_name, "event", 5); in is_event_node() 2591 if (strneq(path, "/dev", 4)) in is_char_dev()
|
H A D | libinput-quirks.c | 202 if (strneq(path, "/sys/", 5)) { in main()
|
H A D | shared.c | 561 if (!strneq("event", sysname, 5)) { in find_device()
|
/third_party/eudev/src/scsi_id/ |
H A D | scsi_id.c | 262 strneq(vendor, vendor_in, strlen(vendor_in)) && in get_file_options() 264 (strneq(model, model_in, strlen(model_in))))) { in get_file_options()
|
H A D | scsi_serial.c | 444 if (strneq((char *)&buffer[VENDOR_LENGTH], dev_scsi->vendor, VENDOR_LENGTH)) { in do_scsi_page0_inquiry()
|
/third_party/eudev/src/udev/ |
H A D | udev-builtin-net_id.c | 249 if (strneq(address, udev_device_get_sysname(names->pcidev), strlen(address))) in dev_pci_slot()
|
H A D | udev-rules.c | 1799 match = (matchlen == len && strneq(s, val, matchlen)); in match_key()
|
/third_party/eudev/src/shared/ |
H A D | util.h | 57 #define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) macro
|
/third_party/eudev/src/libudev/ |
H A D | libudev-enumerate.c | 314 !strneq(entry->syspath, udev_enumerate->devices[move_later].syspath, move_later_prefix)) { in udev_enumerate_get_list_entry()
|