/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 …]
|
/freebsd/lib/libdpv/ |
H A D | dialogrc.c | 152 if (strncmp(cp, "red,", 4) == 0) attrbuf[0] = '1'; in setattr() 153 else if (strncmp(cp, "green,", 6) == 0) attrbuf[0] = '2'; in setattr() 154 else if (strncmp(cp, "yellow,", 7) == 0) attrbuf[0] = '3'; in setattr() 155 else if (strncmp(cp, "blue,", 5) == 0) attrbuf[0] = '4'; in setattr() 156 else if (strncmp(cp, "magenta,", 8) == 0) attrbuf[0] = '5'; in setattr() 157 else if (strncmp(cp, "cyan,", 5) == 0) attrbuf[0] = '6'; in setattr() 158 else if (strncmp(cp, "white,", 6) == 0) attrbuf[0] = '7'; in setattr() 159 else if (strncmp(cp, "black,", 6) == 0) attrbuf[0] = '8'; in setattr() 169 if (strncmp(cp, "red,", 4) == 0) attrbuf[1] = '1'; in setattr() 170 else if (strncmp(cp, "green,", 6) == 0) attrbuf[1] = '2'; in setattr() [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/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/lib/libc/resolv/ |
H A D | res_init.c | 308 (!strncmp(line, name, sizeof(name) - 1) && \ in __res_vinit() 599 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { in res_setoptions() 609 } else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) { in res_setoptions() 620 } else if (!strncmp(cp, "retrans:", sizeof("retrans:") - 1)) { in res_setoptions() 627 } else if (!strncmp(cp, "retry:", sizeof("retry:") - 1)){ in res_setoptions() 635 } else if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){ in res_setoptions() 645 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { in res_setoptions() 654 } else if (!strncmp(cp, "no_tld_query", in res_setoptions() 656 !strncmp(cp, "no-tld-query", in res_setoptions() 659 } else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) { in res_setoptions() [all …]
|
/freebsd/usr.sbin/mixer/ |
H A D | mixer.c | 72 if (strncmp(optarg, "pcm", 3) == 0) in main() 498 if (strncmp(val, "off", strlen(val)) == 0 || in mod_mute() 499 strncmp(val, "0", strlen(val)) == 0) in mod_mute() 501 else if (strncmp(val, "on", strlen(val)) == 0 || in mod_mute() 502 strncmp(val, "1", strlen(val)) == 0) in mod_mute() 504 else if (strncmp(val, "toggle", strlen(val)) == 0 || in mod_mute() 505 strncmp(val, "^", strlen(val)) == 0) in mod_mute() 534 if (strncmp(val, "add", strlen(val)) == 0 || in mod_recsrc() 535 strncmp(val, "+", strlen(val)) == 0) in mod_recsrc() 537 else if (strncmp(val, "remove", strlen(val)) == 0 || in mod_recsrc() [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/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/openzfs/lib/libzutil/os/linux/ |
H A D | zutil_device_path_os.c | 51 if ((strncmp(path, UDISK_ROOT, strlen(UDISK_ROOT)) == 0) || in zfs_append_partition() 52 (strncmp(path, ZVOL_ROOT, strlen(ZVOL_ROOT)) == 0)) { in zfs_append_partition() 99 } else if (strncmp("xvd", tmp, 3) == 0) { in zfs_strip_partition() 158 if (strncmp(path, spaths[i], strlen(spaths[i])) == 0 && in zfs_strip_path() 227 if (strncmp("nvme", dev_name, 4) != 0) in zfs_get_pci_slots_sys_path() 636 if ((devname != NULL && strncmp(devname, "/dev/dm-", 8) == 0) && in is_mpath_udev_sane() 638 ((uuid != NULL) && (strncmp(uuid, "mpath-", 6) == 0)) && in is_mpath_udev_sane() 664 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) \
|
/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/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerInterceptors.cpp | 62 static int internal_strcmp_strncmp(const char *s1, const char *s2, bool strncmp, in internal_strcmp_strncmp() argument 66 if (strncmp) { in internal_strcmp_strncmp() 143 DEFINE_REAL(int, strncmp, const char *, const char *, size_t) in DEFINE_REAL() 167 ATTRIBUTE_INTERFACE int strncmp(const char *s1, const char *s2, size_t n) { in strncmp() function 170 int result = REAL(strncmp)(s1, s2, n); in strncmp() 235 REAL(strncmp) = reinterpret_cast<strncmp_type>( in fuzzerInit() 236 getFuncAddr("strncmp", reinterpret_cast<uintptr_t>(&strncmp))); in fuzzerInit()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/ |
H A D | crypto_pwhash.c | 178 if (strncmp(str, crypto_pwhash_argon2id_STRPREFIX, in crypto_pwhash_str_verify() 182 if (strncmp(str, crypto_pwhash_argon2i_STRPREFIX, in crypto_pwhash_str_verify() 195 if (strncmp(str, crypto_pwhash_argon2id_STRPREFIX, in crypto_pwhash_str_needs_rehash() 199 if (strncmp(str, crypto_pwhash_argon2i_STRPREFIX, in crypto_pwhash_str_needs_rehash()
|
/freebsd/usr.sbin/fstyp/ |
H A D | msdosfs.c | 93 if (strncmp(pfat_bsbpb->BS_FilSysType, "FAT", 3) != 0) { in fstyp_msdosfs() 98 if (strncmp(pfat_bsbpb->BS_VolLab, LABEL_NO_NAME, in fstyp_msdosfs() 112 if (strncmp(pfat32_bsbpb->BS_FilSysType, "FAT", 3) != 0) { in fstyp_msdosfs() 119 if (strncmp(pfat32_bsbpb->BS_VolLab, LABEL_NO_NAME, in fstyp_msdosfs()
|