Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 1350) sorted by relevance

12345678910>>...54

/freebsd-14.2/crypto/openssl/crypto/engine/
H A Deng_fat.c55 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-14.2/contrib/libpcap/
H A Dpcap-snoop.c252 strncmp("gfe", p->opt.device, 3) == 0 || /* GIO 100 Mbit */ 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()
258 strncmp("cip", p->opt.device, 3) == 0 || in pcap_activate_snoop()
259 strncmp("el", p->opt.device, 2) == 0) { in pcap_activate_snoop()
292 } else if (strncmp("ipg", p->opt.device, 3) == 0 || in pcap_activate_snoop()
294 strncmp("xpi", p->opt.device, 3) == 0) { in pcap_activate_snoop()
298 } else if (strncmp("ppp", p->opt.device, 3) == 0) { in pcap_activate_snoop()
301 } else if (strncmp("qfa", p->opt.device, 3) == 0) { in pcap_activate_snoop()
304 } else if (strncmp("pl", p->opt.device, 2) == 0) { in pcap_activate_snoop()
[all …]
/freebsd-14.2/lib/libdpv/
H A Ddialogrc.c153 if (strncmp(cp, "red,", 4) == 0) attrbuf[0] = '1'; in setattr()
154 else if (strncmp(cp, "green,", 6) == 0) attrbuf[0] = '2'; in setattr()
155 else if (strncmp(cp, "yellow,", 7) == 0) attrbuf[0] = '3'; in setattr()
156 else if (strncmp(cp, "blue,", 5) == 0) attrbuf[0] = '4'; in setattr()
157 else if (strncmp(cp, "magenta,", 8) == 0) attrbuf[0] = '5'; in setattr()
158 else if (strncmp(cp, "cyan,", 5) == 0) attrbuf[0] = '6'; in setattr()
159 else if (strncmp(cp, "white,", 6) == 0) attrbuf[0] = '7'; in setattr()
160 else if (strncmp(cp, "black,", 6) == 0) attrbuf[0] = '8'; in setattr()
170 if (strncmp(cp, "red,", 4) == 0) attrbuf[1] = '1'; in setattr()
171 else if (strncmp(cp, "green,", 6) == 0) attrbuf[1] = '2'; in setattr()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/stdlib/
H A Dh_getopt_long.c66 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()
138 strncmp(longopt, "NULL", 4) != 0) in main()
155 } else if (strncmp(line, "args:", 5) == 0) { in main()
[all …]
/freebsd-14.2/sbin/veriexec/
H A Dveriexec.c97 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()
202 if (strncmp(optarg, "debug", strlen(optarg)) == 0) { in main()
209 if (strncmp(argv[optind], "off", strlen(argv[optind])) == 0) { in main()
/freebsd-14.2/sys/dev/acpi_support/
H A Dacpi_asus.c584 if (strncmp("ODEM", th.OemTableId, 4) == 0) { in acpi_asus_probe()
592 if (strncmp("ASUS010", rstr, 7) == 0) { in acpi_asus_probe()
623 else if (strncmp(model->name, "xxN", 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()
633 else if (strncmp(model->name, "A3F", 3) == 0 && in acpi_asus_probe()
636 else if (strncmp(model->name, "D1x", 3) == 0 && in acpi_asus_probe()
637 strncmp(Obj->String.Pointer, "D1", 2) == 0) in acpi_asus_probe()
[all …]
/freebsd-14.2/crypto/heimdal/appl/login/
H A Dtty.c47 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-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dflags_parser.cpp114 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-14.2/lib/libc/resolv/
H A Dres_init.c312 (!strncmp(line, name, sizeof(name) - 1) && \ in __res_vinit()
603 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { in res_setoptions()
649 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { in res_setoptions()
658 } else if (!strncmp(cp, "no_tld_query", in res_setoptions()
660 !strncmp(cp, "no-tld-query", in res_setoptions()
673 } else if (!strncmp(cp, "no-check-names", in res_setoptions()
676 } else if (!strncmp(cp, "reload-period:", in res_setoptions()
684 else if (!strncmp(cp, "edns0", sizeof("edns0") - 1)) { in res_setoptions()
689 else if (!strncmp(cp, "dname", sizeof("dname") - 1)) { in res_setoptions()
711 if (!strncmp(cp, "single", sizeof("single") - 1)) { in res_setoptions()
[all …]
/freebsd-14.2/contrib/ofed/opensm/opensm/
H A Dosm_prtn_config.c277 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()
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()
361 && strncmp(val, "both", strlen(val)) in partition_add_flag()
362 && strncmp(val, "full", strlen(val)))) in partition_add_flag()
368 if (!strncmp(val, "full", strlen(val))) in partition_add_flag()
464 if (!strncmp(flag, "full", strlen(flag))) in partition_add_port()
[all …]
/freebsd-14.2/usr.sbin/mixer/
H A Dmixer.c72 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()
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()
538 strncmp(val, "-", strlen(val)) == 0) in mod_recsrc()
541 strncmp(val, "=", strlen(val)) == 0) in mod_recsrc()
[all …]
/freebsd-14.2/sbin/restore/
H A Dinteractive.c130 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
143 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
158 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
171 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
184 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
210 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell()
218 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell()
229 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
233 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
262 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell()
[all …]
/freebsd-14.2/contrib/tcpdump/
H A Dinstrument-functions.c88 !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-14.2/sys/contrib/dev/iwlwifi/mvm/
H A Ddebugfs-vif.c83 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()
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()
306 if (!strncmp("bf_energy_delta=", buf, 16)) { in iwl_dbgfs_bf_params_write()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Doptions_parser.cpp139 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-14.2/sys/dev/qat/include/
H A Dadf_cfg_device.h46 if (!strncmp(str_, \
50 else if (!strncmp(str_, \
54 else if (!strncmp(str_, \
58 else if (!strncmp(str_, \
/freebsd-14.2/sys/dev/neta/
H A Dif_mvneta_fdt.c163 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-14.2/contrib/netbsd-tests/lib/libc/ttyio/
H A Dt_ptm.c77 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-14.2/sys/dev/uart/
H A Duart_subr.c77 if (strncmp(nm, *p, len) == 0) { in uart_parse_class()
94 if (!strncmp(*p, "even", 4)) { in uart_parse_parity()
98 if (!strncmp(*p, "mark", 4)) { in uart_parse_parity()
102 if (!strncmp(*p, "none", 4)) { in uart_parse_parity()
106 if (!strncmp(*p, "odd", 3)) { in uart_parse_parity()
110 if (!strncmp(*p, "space", 5)) { in uart_parse_parity()
/freebsd-14.2/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c51 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-14.2/contrib/sendmail/include/libsmdb/
H A Dsmdb.h327 # 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-14.2/sys/contrib/libsodium/src/libsodium/crypto_pwhash/
H A Dcrypto_pwhash.c178 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-14.2/usr.sbin/fstyp/
H A Dmsdosfs.c93 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()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp62 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-14.2/contrib/ntp/sntp/libopts/
H A Dsave-flags.c116 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') in find_save_flags_name()
156 cmp = strncmp(map->svfl_name, str, len); in find_save_flags_bnm()
176 if (strncmp(map->svfl_name, str, len) == 0) in find_save_flags_bnm()
181 if (strncmp(map->svfl_name, str, len) == 0) in find_save_flags_bnm()

12345678910>>...54