| /freebsd/contrib/libyaml/tests/ |
| H A D | run-emitter-test-suite.c | 30 if (strncmp(argv[i], "--help", 6) == 0) in main() 32 if (strncmp(argv[i], "-h", 2) == 0) in main() 34 if (strncmp(argv[i], "--flow", 6) == 0) { in main() 38 if (strncmp(argv[i], "keep", 4) == 0) in main() 40 else if (strncmp(argv[i], "on", 2) == 0) in main() 42 else if (strncmp(argv[i], "off", 3) == 0) in main() 47 else if (strncmp(argv[i], "--directive", 11) == 0) { in main() 51 if (strncmp(argv[i], "1.1", 3) == 0) in main() 53 else if (strncmp(argv[i], "1.2", 3) == 0) in main() 90 if (strncmp(line, "+STR", 4) == 0) { in main() [all …]
|
| H A D | run-parser-test-suite.c | 19 if (strncmp(argv[i], "--flow", 6) == 0) { in main() 23 if (strncmp(argv[i], "keep", 4) == 0) in main() 25 else if (strncmp(argv[i], "on", 2) == 0) in main() 27 else if (strncmp(argv[i], "off", 3) == 0) in main() 32 else if (strncmp(argv[i], "--help", 6) == 0) in main() 34 else if (strncmp(argv[i], "-h", 2) == 0) in main()
|
| /freebsd/crypto/openssl/crypto/engine/ |
| H A D | eng_fat.c | 55 if (strncmp(alg, "ALL", len) == 0) in int_def_cb() 57 else if (strncmp(alg, "RSA", len) == 0) in int_def_cb() 59 else if (strncmp(alg, "DSA", len) == 0) in int_def_cb() 61 else if (strncmp(alg, "DH", len) == 0) in int_def_cb() 63 else if (strncmp(alg, "EC", len) == 0) in int_def_cb() 65 else if (strncmp(alg, "RAND", len) == 0) in int_def_cb() 67 else if (strncmp(alg, "CIPHERS", len) == 0) in int_def_cb() 69 else if (strncmp(alg, "DIGESTS", len) == 0) in int_def_cb() 71 else if (strncmp(alg, "PKEY", len) == 0) in int_def_cb() 73 else if (strncmp(alg, "PKEY_CRYPTO", len) == 0) in int_def_cb() [all …]
|
| /freebsd/contrib/libpcap/ |
| H A D | pcap-snoop.c | 247 if (strncmp("et", p->opt.device, 2) == 0 || /* Challenge 10 Mbit */ in pcap_activate_snoop() 248 strncmp("ec", p->opt.device, 2) == 0 || /* Indigo/Indy 10 Mbit, in pcap_activate_snoop() 250 strncmp("ef", p->opt.device, 2) == 0 || /* O200/2000 10/100 Mbit */ in pcap_activate_snoop() 251 strncmp("eg", p->opt.device, 2) == 0 || /* Octane/O2xxx/O3xxx Gigabit */ in pcap_activate_snoop() 252 strncmp("gfe", p->opt.device, 3) == 0 || /* GIO 100 Mbit */ in pcap_activate_snoop() 253 strncmp("fxp", p->opt.device, 3) == 0 || /* Challenge VME Enet */ in pcap_activate_snoop() 254 strncmp("ep", p->opt.device, 2) == 0 || /* Challenge 8x10 Mbit EPLEX */ in pcap_activate_snoop() 255 strncmp("vfe", p->opt.device, 3) == 0 || /* Challenge VME 100Mbit */ in pcap_activate_snoop() 256 strncmp("fa", p->opt.device, 2) == 0 || in pcap_activate_snoop() 257 strncmp("qaa", p->opt.device, 3) == 0 || in pcap_activate_snoop() [all …]
|
| H A D | instrument-functions.c | 88 !strncmp(instrument_type, "", sizeof(""))) { in print_debug() 92 if (!strncmp(instrument_type, "global", sizeof("global")) || in print_debug() 93 !strncmp(instrument_type, "g", sizeof("g"))) in print_debug() 95 else if (strncmp(instrument_type, "all", sizeof("all")) && in print_debug() 96 strncmp(instrument_type, "a", sizeof("a"))) { in print_debug() 208 strncmp(func, "main", sizeof("main"))) { in print_debug()
|
| /freebsd/sys/dev/acpi_support/ |
| H A D | acpi_asus.c | 584 if (strncmp("ODEM", th.OemTableId, 4) == 0) { in acpi_asus_probe() 592 if (strncmp("ASUS010", rstr, 7) == 0) { in acpi_asus_probe() 604 if (strncmp(Obj->String.Pointer, model->name, 3) == 0) { in acpi_asus_probe() 623 else if (strncmp(model->name, "xxN", 3) == 0 && in acpi_asus_probe() 624 (strncmp(Obj->String.Pointer, "M3N", 3) == 0 || in acpi_asus_probe() 625 strncmp(Obj->String.Pointer, "S1N", 3) == 0)) in acpi_asus_probe() 627 else if (strncmp(model->name, "A1x", 3) == 0 && in acpi_asus_probe() 628 strncmp(Obj->String.Pointer, "A1", 2) == 0) in acpi_asus_probe() 630 else if (strncmp(model->name, "A2x", 3) == 0 && in acpi_asus_probe() 631 strncmp(Obj->String.Pointer, "A2", 2) == 0) in acpi_asus_probe() [all …]
|
| /freebsd/contrib/netbsd-tests/lib/libc/stdlib/ |
| H A D | h_getopt_long.c | 66 if (strncmp(line, "optstring:", 10) == 0) { in main() 74 } else if (strncmp(line, "longopts:", 9) == 0) { in main() 102 } else if (strncmp(line, "longopt:", 8) == 0) { in main() 121 if (strncmp(longopt, "0", 1) == 0 || in main() 122 strncmp(longopt, "no_argument", 2) == 0) in main() 124 else if (strncmp(longopt, "1", 1) == 0 || in main() 125 strncmp(longopt, "required_argument", 8) == 0) in main() 127 else if (strncmp(longopt, "2", 1) == 0 || in main() 128 strncmp(longopt, "optional_argument", 8) == 0) in main() 138 strncmp(longopt, "NULL", 4) != 0) in main() [all …]
|
| /freebsd/sbin/veriexec/ |
| H A D | veriexec.c | 97 if (strncmp(arg_text, "active", len) == 0) in veriexec_state_query() 99 else if (strncmp(arg_text, "enforce", len) == 0) in veriexec_state_query() 101 if (strncmp(arg_text, "loaded", len) == 0) in veriexec_state_query() 103 if (strncmp(arg_text, "locked", len) == 0) in veriexec_state_query() 124 if (strncmp(arg_text, "active", len) == 0) in veriexec_state_modify() 126 else if (strncmp(arg_text, "enforce", len) == 0) in veriexec_state_modify() 128 else if (strncmp(arg_text, "getstate", len) == 0) in veriexec_state_modify() 130 else if (strncmp(arg_text, "lock", len) == 0) in veriexec_state_modify() 240 if (strncmp(optarg, "debug", strlen(optarg)) == 0) { in main() 247 if (strncmp(argv[optind], "off", strlen(argv[optind])) == 0) { in main()
|
| /freebsd/crypto/heimdal/appl/login/ |
| H A D | tty.c | 47 if (strncmp (res, _PATH_DEV, strlen(_PATH_DEV)) == 0) in clean_ttyname() 49 if (strncmp (res, "pty/", 4) == 0) in clean_ttyname() 51 if (strncmp (res, "ptym/", 5) == 0) in clean_ttyname() 65 if (strncmp (res, "pts/", 4) == 0) in make_id() 67 if (strncmp (res, "tty", 3) == 0) in make_id()
|
| /freebsd/crypto/krb5/src/kadmin/ktutil/ |
| H A D | ktutil.c | 133 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-p", 2)) { in ktutil_add_entry() 137 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-k", 2)) { in ktutil_add_entry() 142 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-e", 2)) { in ktutil_add_entry() 146 if ((strlen(argv[i]) == 9) && !strncmp(argv[i], "-password", 9)) { in ktutil_add_entry() 150 if ((strlen(argv[i]) == 4) && !strncmp(argv[i], "-key", 4)) { in ktutil_add_entry() 154 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-s", 2)) { in ktutil_add_entry() 158 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-f", 2)) in ktutil_add_entry() 204 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-t", 2)) { in ktutil_list() 208 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-k", 2)) { in ktutil_list() 212 if ((strlen(argv[i]) == 2) && !strncmp(argv[i], "-e", 2)) { in ktutil_list()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | flags_parser.cpp | 114 if (strncmp(Value, "0", 1) == 0 || strncmp(Value, "no", 2) == 0 || in parseBool() 115 strncmp(Value, "false", 5) == 0) { in parseBool() 119 if (strncmp(Value, "1", 1) == 0 || strncmp(Value, "yes", 3) == 0 || in parseBool() 120 strncmp(Value, "true", 4) == 0) { in parseBool() 136 if (strncmp(Name, Flags[I].Name, Len) != 0 || Name[Len] != Sep) in runHandler()
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_prtn_config.c | 277 if (!strncmp(flag, "mtu", len)) { in parse_group_flag() 284 } else if (!strncmp(flag, "rate", len)) { in parse_group_flag() 291 } else if (!strncmp(flag, "scope", len)) { in parse_group_flag() 301 } else if (!strncmp(flag, "Q_Key", strlen(flag))) { in parse_group_flag() 308 } else if (!strncmp(flag, "TClass", strlen(flag))) { in parse_group_flag() 315 } else if (!strncmp(flag, "sl", len)) { in parse_group_flag() 328 } else if (!strncmp(flag, "FlowLabel", len)) { in parse_group_flag() 357 if (!strncmp(flag, "ipoib", len)) { in partition_add_flag() 359 } else if (!strncmp(flag, "defmember", len)) { in partition_add_flag() 360 if (!val || (strncmp(val, "limited", strlen(val)) in partition_add_flag() [all …]
|
| /freebsd/sbin/restore/ |
| H A D | interactive.c | 123 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell() 136 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell() 151 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell() 164 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell() 177 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell() 203 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell() 211 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell() 222 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell() 226 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell() 233 if (strncmp(cmd, "verbose", strlen(cmd)) != 0) in runcmdshell() [all …]
|
| /freebsd/sys/security/mac_grantbylabel/ |
| H A D | mac_grantbylabel.c | 109 if (strncmp(cp, "bind", 4) == 0) in gbl_parse_label() 113 if (strncmp(cp, "daemon", 6) == 0) in gbl_parse_label() 118 if (strncmp(cp, "ipc", 3) == 0) in gbl_parse_label() 122 if (strncmp(cp, "kmem", 4) == 0) in gbl_parse_label() 126 if (strncmp(cp, "net", 3) == 0) in gbl_parse_label() 130 if (strncmp(cp, "proc", 4) == 0) in gbl_parse_label() 134 if (strncmp(cp, "rtsock", 6) == 0) in gbl_parse_label() 138 if (strncmp(cp, "sysctl", 6) == 0) in gbl_parse_label() 142 if (strncmp(cp, "vaccess", 7) == 0) in gbl_parse_label() 144 else if (strncmp(cp, "veriexec", 8) == 0) in gbl_parse_label()
|
| /freebsd/contrib/tcpdump/ |
| H A D | instrument-functions.c | 88 !strncmp(instrument_type, "", sizeof(""))) { in print_debug() 92 if (!strncmp(instrument_type, "global", sizeof("global")) || in print_debug() 93 !strncmp(instrument_type, "g", sizeof("g"))) in print_debug() 95 else if (strncmp(instrument_type, "all", sizeof("all")) && in print_debug() 96 strncmp(instrument_type, "a", sizeof("a"))) { in print_debug() 208 strncmp(func, "main", sizeof("main"))) { in print_debug()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/ |
| H A D | options_parser.cpp | 139 if (strncmp(Value, "0", 1) == 0 || strncmp(Value, "no", 2) == 0 || in parseBool() 140 strncmp(Value, "false", 5) == 0) { in parseBool() 144 if (strncmp(Value, "1", 1) == 0 || strncmp(Value, "yes", 3) == 0 || in parseBool() 145 strncmp(Value, "true", 4) == 0) { in parseBool() 155 if (strncmp(Name, Options[I].Name, Len) != 0 || Name[Len] != '=') in setOptionToValue()
|
| /freebsd/sys/dev/qat/include/ |
| H A D | adf_cfg_device.h | 46 if (!strncmp(str_, \ 50 else if (!strncmp(str_, \ 54 else if (!strncmp(str_, \ 58 else if (!strncmp(str_, \
|
| /freebsd/sys/dev/neta/ |
| H A D | if_mvneta_fdt.c | 163 if (strncmp(phymode, "rgmii-id", 8) == 0) in mvneta_fdt_phy_acquire() 165 else if (strncmp(phymode, "rgmii", 5) == 0) in mvneta_fdt_phy_acquire() 167 else if (strncmp(phymode, "sgmii", 5) == 0) in mvneta_fdt_phy_acquire() 169 else if (strncmp(phymode, "qsgmii", 6) == 0) in mvneta_fdt_phy_acquire() 176 if (strncmp(managed, "in-band-status", 14) == 0) { in mvneta_fdt_phy_acquire() 191 if (strncmp(name, "fixed-link", 10) == 0) { in mvneta_fdt_phy_acquire()
|
| /freebsd/sys/cddl/dev/kinst/ |
| H A D | kinst.c | 111 if (strncmp(name, "dtrace_", strlen("dtrace_")) == 0 && in kinst_excluded() 112 strncmp(name, "dtrace_safe_", strlen("dtrace_safe_")) != 0) in kinst_excluded() 122 if (strncmp(name, "db_", strlen("db_")) == 0 || in kinst_excluded() 123 strncmp(name, "kdb_", strlen("kdb_")) == 0) in kinst_excluded() 138 if (strncmp(name, "__msan", 6) == 0 || in kinst_excluded() 139 strncmp(name, "kmsan_", 6) == 0) in kinst_excluded() 147 if (strncmp(name, "kinst_", strlen("kinst_")) == 0) in kinst_excluded()
|
| /freebsd/sys/dev/uart/ |
| H A D | uart_subr.c | 71 if (strncmp(nm, *p, len) == 0) { in uart_parse_class() 88 if (!strncmp(*p, "even", 4)) { in uart_parse_parity() 92 if (!strncmp(*p, "mark", 4)) { in uart_parse_parity() 96 if (!strncmp(*p, "none", 4)) { in uart_parse_parity() 100 if (!strncmp(*p, "odd", 3)) { in uart_parse_parity() 104 if (!strncmp(*p, "space", 5)) { in uart_parse_parity()
|
| /freebsd/crypto/openssl/test/ |
| H A D | pairwise_fail_test.c | 101 } else if (strncmp(pairwise_name, "ec", 2) == 0) { in test_keygen_pairwise_failure() 106 } else if (strncmp(pairwise_name, "dsa", 3) == 0) { in test_keygen_pairwise_failure() 123 } else if (strncmp(pairwise_name, "eddsa", 5) == 0) { in test_keygen_pairwise_failure() 134 } else if (strncmp(pairwise_name, "ml-dsa", 6) == 0) { in test_keygen_pairwise_failure() 145 } else if (strncmp(pairwise_name, "slh-dsa", 7) == 0) { in test_keygen_pairwise_failure() 156 } else if (strncmp(pairwise_name, "ml-kem", 6) == 0) { in test_keygen_pairwise_failure()
|
| /freebsd/contrib/netbsd-tests/lib/libc/ttyio/ |
| H A D | t_ptm.c | 77 ATF_REQUIRE_MSG(strncmp(ptm.cn, "/dev/pty", 8) == 0 in ATF_TC_BODY() 78 || strncmp(ptm.cn, "/dev/null", 9) == 0, in ATF_TC_BODY() 81 ATF_REQUIRE_MSG(strncmp(ptm.sn, "/dev/tty", 8) == 0 in ATF_TC_BODY() 82 || strncmp(ptm.sn, "/dev/pts/", 9) == 0, in ATF_TC_BODY() 85 if (strncmp(ptm.cn, "/dev/null", 9) != 0) { in ATF_TC_BODY()
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | debugfs-vif.c | 83 if (!strncmp("keep_alive=", buf, 11)) { in iwl_dbgfs_pm_params_write() 87 } else if (!strncmp("skip_over_dtim=", buf, 15)) { in iwl_dbgfs_pm_params_write() 91 } else if (!strncmp("skip_dtim_periods=", buf, 18)) { in iwl_dbgfs_pm_params_write() 95 } else if (!strncmp("rx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write() 99 } else if (!strncmp("tx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write() 103 } else if (!strncmp("lprx=", buf, 5)) { in iwl_dbgfs_pm_params_write() 107 } else if (!strncmp("lprx_rssi_threshold=", buf, 20)) { in iwl_dbgfs_pm_params_write() 114 } else if (!strncmp("snooze_enable=", buf, 14)) { in iwl_dbgfs_pm_params_write() 118 } else if (!strncmp("uapsd_misbehaving=", buf, 18)) { in iwl_dbgfs_pm_params_write() 122 } else if (!strncmp("use_ps_poll=", buf, 12)) { in iwl_dbgfs_pm_params_write() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/ |
| H A D | zutil_device_path_os.c | 42 if ((strncmp(path, UDISK_ROOT, strlen(UDISK_ROOT)) == 0) || in zfs_append_partition() 43 (strncmp(path, ZVOL_ROOT, strlen(ZVOL_ROOT)) == 0)) { in zfs_append_partition() 90 } else if (strncmp("xvd", tmp, 3) == 0) { in zfs_strip_partition() 149 if (strncmp(path, spaths[i], strlen(spaths[i])) == 0 && in zfs_strip_path() 219 if (strncmp("nvme", dev_name, 4) != 0) in zfs_get_pci_slots_sys_path() 629 if ((devname != NULL && strncmp(devname, "/dev/dm-", 8) == 0) && in is_mpath_udev_sane() 631 ((uuid != NULL) && (strncmp(uuid, "mpath-", 6) == 0)) && in is_mpath_udev_sane() 657 if (strncmp(sysname, "dm-", 3) != 0) in is_mpath_whole_disk()
|
| /freebsd/contrib/sendmail/include/libsmdb/ |
| H A D | smdb.h | 327 # define SMDB_IS_TYPE_HASH(type) (strncmp(type, SMDB_TYPE_HASH, SMDB_TYPE_HASH_LEN) == 0) 328 # define SMDB_IS_TYPE_BTREE(type) (strncmp(type, SMDB_TYPE_BTREE, SMDB_TYPE_BTREE_LEN) == 0) 329 # define SMDB_IS_TYPE_NDBM(type) (strncmp(type, SMDB_TYPE_NDBM, SMDB_TYPE_NDBM_LEN) == 0) 330 # define SMDB_IS_TYPE_CDB(type) (strncmp(type, SMDB_TYPE_CDB, SMDB_TYPE_CDB_LEN) == 0) 333 || (strncmp(type, SMDB_TYPE_IMPL, SMDB_TYPE_IMPL_LEN) == 0) \
|