/haiku/src/bin/ |
H A D | draggers.cpp | 34 if (!strncmp(argv[i], "-h", 2)) { 38 || !strncmp(argv[i], "en", 2) 39 || !strncmp(argv[i], "sh", 2) 40 || !strncmp(argv[i], "on", 2)) 43 || !strncmp(argv[i], "di", 2) 44 || !strncmp(argv[i], "hi", 2) 45 || !strncmp(argv[i], "of", 2))
|
H A D | mkindex.cpp | 133 if (strncmp("int", optarg, 3) == 0) 135 else if (strncmp("llong", optarg, 5) == 0) 137 else if (strncmp("string", optarg, 6) == 0) 139 else if (strncmp("float", optarg, 5) == 0) 141 else if (strncmp("double", optarg, 6) == 0)
|
H A D | printenv.c | 59 if (!strncmp(s, arg, len)) {
|
H A D | release.c | 40 if (strncmp(argv[i], "-f", 2) == 0) { 42 } else if (strncmp(argv[i], "-c", 2) == 0) {
|
H A D | fortune.c | 144 if (!strncmp(buffer + i, "\n%\n", 3)) { 161 if (!strncmp(buffer + i, "\n%\n", 3)) {
|
/haiku/src/system/libroot/posix/string/ |
H A D | strncmp.c | 11 strncmp(char const *a, char const *b, size_t count) function
|
H A D | strstr.c | 18 if (strncmp(s1, s2, s2len) == 0)
|
/haiku/src/tests/system/libroot/posix/string/ |
H A D | compare_test.cpp | 19 printf("strncmp(): %d\n", strncmp(a, b, 1));
|
/haiku/src/tests/system/libroot/posix/ |
H A D | tst-wprintf2.c | 73 strncmp(buf, "test start int 3", len) == 0 ? "OK" : "FAIL"); 74 res |= strncmp(buf, "test start int 3", len) != 0; 86 strncmp(buf, "1[ Som]", len) == 0 ? "OK" : "FAIL"); 87 res |= strncmp(buf, "1[ Som]", len) != 0; 99 strncmp(buf, "hello.", len) == 0 ? "OK" : "FAIL"); 100 res |= strncmp(buf, "hello.", len) != 0;
|
/haiku/src/tests/system/kernel/file_corruption/fs/ |
H A D | SuperBlock.cpp | 19 if (strncmp(signature1, CHECK_SUM_FS_SIGNATURE_1, 21 || strncmp(signature2, CHECK_SUM_FS_SIGNATURE_2,
|
/haiku/src/tests/servers/registrar/ |
H A D | run_test_registrar.cpp | 45 if (!strncmp(teamInfo.args, "/boot/beos/", 11) 46 || !strncmp(teamInfo.args, "/boot/system/", 13)) { 93 if (!strncmp(currentPath.Path(), registrarPath, generatedPath - registrarPath)) {
|
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_debug_console.cpp | 108 if (strncmp(args->arch_args.uart.kind, UART_KIND_PL011, 112 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250_OMAP, 116 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250,
|
H A D | arch_timer.cpp | 62 } else if (strncmp(args->arch_args.timer.kind, TIMER_KIND_OMAP3, 66 } else if (strncmp(args->arch_args.timer.kind, TIMER_KIND_PXA,
|
/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_debug_console.cpp | 101 if (strncmp(args->arch_args.uart.kind, UART_KIND_PL011, 105 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_LINFLEX, 109 }/* else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250_OMAP, 113 }*/ else if (strncmp(args->arch_args.uart.kind, UART_KIND_8250,
|
/haiku/src/system/libroot/posix/musl/misc/ |
H A D | getsubopt.c | 16 if (strncmp(keys[i], s, l)) continue;
|
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_debug_console.cpp | 106 if (strncmp(args->arch_args.uart.kind, UART_KIND_8250, 110 } else if (strncmp(args->arch_args.uart.kind, UART_KIND_SIFIVE,
|
/haiku/src/system/libroot/posix/glibc/extensions/ |
H A D | getopt_init.c | 59 it before calling strncmp. */ 64 && __builtin_expect (strncmp (*ep + 1, cp, len) == 0, 0))
|
/haiku/src/servers/power/ |
H A D | power_button_monitor.cpp | 36 if (strncmp(ref.name, "power", 5) == 0) {
|
/haiku/src/system/boot/platform/efi/ |
H A D | acpi.cpp | 101 && strncmp(rsdt->signature, ACPI_XSDT_SIGNATURE, 4) != 0) { 117 if (strncmp(rsdt->signature, ACPI_RSDT_SIGNATURE, 4) != 0) { 172 if (header != NULL && strncmp(header->signature, signature, 4) == 0) { 218 if (strncmp((char *)rsdp, ACPI_RSDP_SIGNATURE, 8) == 0)
|
/haiku/src/tests/kits/support/bmemoryio/ |
H A D | WriteTest.cpp | 42 CPPUNIT_ASSERT(strncmp(buf + 3, writeBuf, 2) == 0); 50 CPPUNIT_ASSERT(strncmp(buf + 9, writeBuf, 1) == 0);
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_init.c | 323 (!strncmp(line, name, sizeof(name) - 1) && \ 553 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { 563 } else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) { 574 } else if (!strncmp(cp, "retrans:", sizeof("retrans:") - 1)) { 581 } else if (!strncmp(cp, "retry:", sizeof("retry:") - 1)){ 589 } else if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){ 599 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { 608 } else if (!strncmp(cp, "no_tld_query", 610 !strncmp(cp, "no-tld-query", 613 } else if (!strncmp(c [all...] |
/haiku/src/bin/network/telnet/ |
H A D | main.c | 142 rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE; 338 if (!strncmp("in", optarg, 2)) 340 else if (!strncmp("out", optarg, 3))
|
/haiku/src/bin/desklink/ |
H A D | desklink.cpp | 84 if (strncmp(argv[i], "--remove", 8) == 0) { 86 if (strncmp(argv[i] + 8, "=", 1) == 0) { 109 if (strncmp(argv[i], "cmd=", 4) == 0) {
|
/haiku/src/tests/system/kernel/ |
H A D | advisory_locking_test.cpp | 94 return command1 != NULL && !strncmp(op, command1, length) 95 || command2 != NULL && !strncmp(op, command2, length);
|
/haiku/src/add-ons/input_server/filters/shortcut_catcher/ |
H A D | CommandActuators.cpp | 490 if (strncmp(s, "shift",5) == 0) 492 else if (strncmp(s, "leftsh", 6) == 0) 494 else if (strncmp(s, "rightsh",7) == 0) 496 else if (strncmp(s, "alt",3) == 0) 498 else if (strncmp(s, "leftalt",7) == 0) 500 else if (strncmp(s, "rightalt", 8) == 0) 502 else if (strncmp(s, "com",3) == 0) 504 else if (strncmp(s, "leftcom",7) == 0) 506 else if (strncmp(s, "rightcom", 8) == 0) 508 else if (strncmp( [all...] |