Home
last modified time | relevance | path

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

12345678910>>...57

/NextBSD/crypto/openssl/crypto/engine/
HDeng_fat.c108 if (!strncmp(alg, "ALL", len)) in int_def_cb()
110 else if (!strncmp(alg, "RSA", len)) in int_def_cb()
112 else if (!strncmp(alg, "DSA", len)) in int_def_cb()
114 else if (!strncmp(alg, "ECDH", len)) in int_def_cb()
116 else if (!strncmp(alg, "ECDSA", len)) in int_def_cb()
118 else if (!strncmp(alg, "DH", len)) in int_def_cb()
120 else if (!strncmp(alg, "RAND", len)) in int_def_cb()
122 else if (!strncmp(alg, "CIPHERS", len)) in int_def_cb()
124 else if (!strncmp(alg, "DIGESTS", len)) in int_def_cb()
126 else if (!strncmp(alg, "PKEY", len)) in int_def_cb()
[all …]
/NextBSD/contrib/gdb/gdb/cli/
HDcli-setshow.c45 if (strncmp (arg, "on", length) == 0 in parse_auto_binary_operation()
46 || strncmp (arg, "1", length) == 0 in parse_auto_binary_operation()
47 || strncmp (arg, "yes", length) == 0 in parse_auto_binary_operation()
48 || strncmp (arg, "enable", length) == 0) in parse_auto_binary_operation()
50 else if (strncmp (arg, "off", length) == 0 in parse_auto_binary_operation()
51 || strncmp (arg, "0", length) == 0 in parse_auto_binary_operation()
52 || strncmp (arg, "no", length) == 0 in parse_auto_binary_operation()
53 || strncmp (arg, "disable", length) == 0) in parse_auto_binary_operation()
55 else if (strncmp (arg, "auto", length) == 0 in parse_auto_binary_operation()
56 || (strncmp (arg, "-1", length) == 0 && length > 1)) in parse_auto_binary_operation()
[all …]
/NextBSD/contrib/libpcap/
HDpcap-snoop.c242 if (strncmp("et", p->opt.source, 2) == 0 || /* Challenge 10 Mbit */ in pcap_activate_snoop()
243 strncmp("ec", p->opt.source, 2) == 0 || /* Indigo/Indy 10 Mbit, in pcap_activate_snoop()
245 strncmp("ef", p->opt.source, 2) == 0 || /* O200/2000 10/100 Mbit */ in pcap_activate_snoop()
246 strncmp("eg", p->opt.source, 2) == 0 || /* Octane/O2xxx/O3xxx Gigabit */ in pcap_activate_snoop()
247 strncmp("gfe", p->opt.source, 3) == 0 || /* GIO 100 Mbit */ in pcap_activate_snoop()
248 strncmp("fxp", p->opt.source, 3) == 0 || /* Challenge VME Enet */ in pcap_activate_snoop()
249 strncmp("ep", p->opt.source, 2) == 0 || /* Challenge 8x10 Mbit EPLEX */ in pcap_activate_snoop()
250 strncmp("vfe", p->opt.source, 3) == 0 || /* Challenge VME 100Mbit */ in pcap_activate_snoop()
251 strncmp("fa", p->opt.source, 2) == 0 || in pcap_activate_snoop()
252 strncmp("qaa", p->opt.source, 3) == 0 || in pcap_activate_snoop()
[all …]
/NextBSD/lib/libdpv/
HDdialogrc.c155 if (strncmp(cp, "red,", 4) == 0) attrbuf[0] = '1'; in setattr()
156 else if (strncmp(cp, "green,", 6) == 0) attrbuf[0] = '2'; in setattr()
157 else if (strncmp(cp, "yellow,", 7) == 0) attrbuf[0] = '3'; in setattr()
158 else if (strncmp(cp, "blue,", 5) == 0) attrbuf[0] = '4'; in setattr()
159 else if (strncmp(cp, "magenta,", 8) == 0) attrbuf[0] = '5'; in setattr()
160 else if (strncmp(cp, "cyan,", 5) == 0) attrbuf[0] = '6'; in setattr()
161 else if (strncmp(cp, "white,", 6) == 0) attrbuf[0] = '7'; in setattr()
162 else if (strncmp(cp, "black,", 6) == 0) attrbuf[0] = '8'; in setattr()
172 if (strncmp(cp, "red,", 4) == 0) attrbuf[1] = '1'; in setattr()
173 else if (strncmp(cp, "green,", 6) == 0) attrbuf[1] = '2'; in setattr()
[all …]
/NextBSD/sys/dev/acpi_support/
HDacpi_asus.c594 if (strncmp("ODEM", th.OemTableId, 4) == 0) { in acpi_asus_probe()
602 if (strncmp("ASUS010", rstr, 7) == 0) { in acpi_asus_probe()
618 if (strncmp(Obj->String.Pointer, model->name, 3) == 0) { in acpi_asus_probe()
641 else if (strncmp(model->name, "xxN", 3) == 0 && in acpi_asus_probe()
642 (strncmp(Obj->String.Pointer, "M3N", 3) == 0 || in acpi_asus_probe()
643 strncmp(Obj->String.Pointer, "S1N", 3) == 0)) in acpi_asus_probe()
645 else if (strncmp(model->name, "A1x", 3) == 0 && in acpi_asus_probe()
646 strncmp(Obj->String.Pointer, "A1", 2) == 0) in acpi_asus_probe()
648 else if (strncmp(model->name, "A2x", 3) == 0 && in acpi_asus_probe()
649 strncmp(Obj->String.Pointer, "A2", 2) == 0) in acpi_asus_probe()
[all …]
/NextBSD/contrib/netbsd-tests/lib/libc/stdlib/
HDh_getopt_long.c62 if (strncmp(line, "optstring:", 10) == 0) { in main()
70 } else if (strncmp(line, "longopts:", 9) == 0) { in main()
98 } else if (strncmp(line, "longopt:", 8) == 0) { in main()
117 if (strncmp(longopt, "0", 1) == 0 || in main()
118 strncmp(longopt, "no_argument", 2) == 0) in main()
120 else if (strncmp(longopt, "1", 1) == 0 || in main()
121 strncmp(longopt, "required_argument", 8) == 0) in main()
123 else if (strncmp(longopt, "2", 1) == 0 || in main()
124 strncmp(longopt, "optional_argument", 8) == 0) in main()
134 strncmp(longopt, "NULL", 4) != 0) in main()
[all …]
/NextBSD/contrib/opie/libopie/
HDinsecure.c85 if (!strncmp("unix", display_name, n))
87 else if (!strncmp("localhost", display_name, n))
89 else if (!strncmp("loopback", display_name, n))
91 else if (!strncmp("127.0.0.1", display_name, n))
97 if (!strncmp(utsname.nodename, display_name, n))
104 if (!strncmp(utsname.nodename, display_name, n2))
147 if (!strncmp(host, display_name, n))
155 if (!strncmp(host, display_name, n))
/NextBSD/sys/dev/vnic/
HDthunder_bgx_fdt.c86 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "sgmii", size) == 0) in bgx_fdt_phy_mode_match()
90 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "xaui", size) == 0) in bgx_fdt_phy_mode_match()
92 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "dxaui", size) == 0) in bgx_fdt_phy_mode_match()
96 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "raui", size) == 0) in bgx_fdt_phy_mode_match()
100 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "xfi", size) == 0) in bgx_fdt_phy_mode_match()
104 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "xlaui", size) == 0) in bgx_fdt_phy_mode_match()
108 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "xfi-10g-kr", size) == 0) in bgx_fdt_phy_mode_match()
112 if (strncmp(&qlm_mode[CONN_TYPE_OFFSET], "xlaui-40g-kr", size) == 0) in bgx_fdt_phy_mode_match()
/NextBSD/crypto/heimdal/appl/login/
HDtty.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()
/NextBSD/contrib/ofed/management/opensm/opensm/
HDosm_prtn_config.c139 if (!strncmp(flag, "ipoib", len)) { in partition_add_flag()
141 } else if (!strncmp(flag, "mtu", len)) { in partition_add_flag()
147 } else if (!strncmp(flag, "rate", len)) { in partition_add_flag()
153 } else if (!strncmp(flag, "scope", len)) { in partition_add_flag()
162 } else if (!strncmp(flag, "sl", len)) { in partition_add_flag()
174 } else if (!strncmp(flag, "defmember", len)) { in partition_add_flag()
175 if (!val || (strncmp(val, "limited", strlen(val)) in partition_add_flag()
176 && strncmp(val, "full", strlen(val)))) in partition_add_flag()
182 conf->full = strncmp(val, "full", strlen(val)) == 0; in partition_add_flag()
199 if (!name || !*name || !strncmp(name, "NONE", strlen(name))) in partition_add_port()
[all …]
/NextBSD/lib/libc/resolv/
HDres_init.c322 (!strncmp(line, name, sizeof(name) - 1) && \ in __res_vinit()
612 if (!strncmp(cp, "ndots:", sizeof("ndots:") - 1)) { in res_setoptions()
622 } else if (!strncmp(cp, "timeout:", sizeof("timeout:") - 1)) { in res_setoptions()
633 } else if (!strncmp(cp, "retrans:", sizeof("retrans:") - 1)) { in res_setoptions()
640 } else if (!strncmp(cp, "retry:", sizeof("retry:") - 1)){ in res_setoptions()
648 } else if (!strncmp(cp, "attempts:", sizeof("attempts:") - 1)){ in res_setoptions()
658 } else if (!strncmp(cp, "debug", sizeof("debug") - 1)) { in res_setoptions()
667 } else if (!strncmp(cp, "no_tld_query", in res_setoptions()
669 !strncmp(cp, "no-tld-query", in res_setoptions()
672 } else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) { in res_setoptions()
[all …]
/NextBSD/sbin/restore/
HDinteractive.c132 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
145 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
160 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
173 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
186 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
212 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell()
220 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell()
231 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
235 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
242 if (strncmp(cmd, "verbose", strlen(cmd)) != 0) in runcmdshell()
[all …]
/NextBSD/contrib/gcc/config/
HDdarwin.c236 || (strncmp (name, "_OBJC_", 6) == 0)); in indirect_data()
1176 !strncmp (IDENTIFIER_POINTER (DECL_NAME (exp)), "_OBJC_", 6)) in machopic_select_section()
1180 if (!strncmp (name, "_OBJC_CLASS_METHODS_", 20)) in machopic_select_section()
1182 else if (!strncmp (name, "_OBJC_INSTANCE_METHODS_", 23)) in machopic_select_section()
1184 else if (!strncmp (name, "_OBJC_CATEGORY_CLASS_METHODS_", 20)) in machopic_select_section()
1186 else if (!strncmp (name, "_OBJC_CATEGORY_INSTANCE_METHODS_", 23)) in machopic_select_section()
1188 else if (!strncmp (name, "_OBJC_CLASS_VARIABLES_", 22)) in machopic_select_section()
1190 else if (!strncmp (name, "_OBJC_INSTANCE_VARIABLES_", 25)) in machopic_select_section()
1192 else if (!strncmp (name, "_OBJC_CLASS_PROTOCOLS_", 22)) in machopic_select_section()
1194 else if (!strncmp (name, "_OBJC_CLASS_NAME_", 17)) in machopic_select_section()
[all …]
/NextBSD/contrib/binutils/gas/
HDlisting.c306 if (strncmp (segname, ".debug", sizeof ".debug" - 1) == 0 in listing_newline()
307 || strncmp (segname, ".line", sizeof ".line" - 1) == 0) in listing_newline()
410 if (strncmp (segname, ".debug", sizeof ".debug" - 1) == 0 in listing_newline()
411 || strncmp (segname, ".line", sizeof ".line" - 1) == 0) in listing_newline()
907 if (strncmp (line, "def", 3) == 0) in debugging_pseudo()
909 if (strncmp (line, "val", 3) == 0) in debugging_pseudo()
911 if (strncmp (line, "scl", 3) == 0) in debugging_pseudo()
913 if (strncmp (line, "line", 4) == 0) in debugging_pseudo()
915 if (strncmp (line, "endef", 5) == 0) in debugging_pseudo()
917 if (strncmp (line, "ln", 2) == 0) in debugging_pseudo()
[all …]
/NextBSD/sys/dev/uart/
HDuart_subr.c81 if (strncmp(nm, *p, len) == 0) { in uart_parse_class()
98 if (!strncmp(*p, "even", 4)) { in uart_parse_parity()
102 if (!strncmp(*p, "mark", 4)) { in uart_parse_parity()
106 if (!strncmp(*p, "none", 4)) { in uart_parse_parity()
110 if (!strncmp(*p, "odd", 3)) { in uart_parse_parity()
114 if (!strncmp(*p, "space", 5)) { in uart_parse_parity()
/NextBSD/contrib/netbsd-tests/lib/libc/ttyio/
HDt_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()
/NextBSD/usr.sbin/fstyp/
HDmsdosfs.c77 if (strncmp(pfat_bsbpb->BS_FilSysType, "FAT", 3) != 0) { in fstyp_msdosfs()
82 if (strncmp(pfat_bsbpb->BS_VolLab, LABEL_NO_NAME, in fstyp_msdosfs()
95 if (strncmp(pfat32_bsbpb->BS_FilSysType, "FAT", 3) != 0) { in fstyp_msdosfs()
102 if (strncmp(pfat32_bsbpb->BS_VolLab, LABEL_NO_NAME, in fstyp_msdosfs()
/NextBSD/contrib/sqlite3/
HDshell.c1665 }else if( strncmp(zTable, "sqlite_", 7)==0 ){ in dump_callback()
1667 }else if( strncmp(zSql, "CREATE VIRTUAL TABLE", 20)==0 ){ in dump_callback()
2656 if( (c=='b' && n>=3 && strncmp(azArg[0], "backup", n)==0) in do_meta_command()
2657 || (c=='s' && n>=3 && strncmp(azArg[0], "save", n)==0) in do_meta_command()
2712 if( c=='b' && n>=3 && strncmp(azArg[0], "bail", n)==0 ){ in do_meta_command()
2721 if( c=='b' && n>=3 && strncmp(azArg[0], "binary", n)==0 ){ in do_meta_command()
2737 if( c=='b' && n>=3 && strncmp(azArg[0], "breakpoint", n)==0 ){ in do_meta_command()
2741 if( c=='c' && strncmp(azArg[0], "clone", n)==0 ){ in do_meta_command()
2750 if( c=='d' && n>1 && strncmp(azArg[0], "databases", n)==0 ){ in do_meta_command()
2769 if( c=='d' && strncmp(azArg[0], "dbinfo", n)==0 ){ in do_meta_command()
[all …]
/NextBSD/contrib/pam_modules/pam_passwdqc/
HDpam_passwdqc.c202 if (!strncmp(*argv, "min=", 4)) { in parse()
205 if (!strncmp(p, "disabled", 8)) { in parse()
219 if (!strncmp(*argv, "max=", 4)) { in parse()
224 if (!strncmp(*argv, "passphrase=", 11)) { in parse()
229 if (!strncmp(*argv, "match=", 6)) { in parse()
234 if (!strncmp(*argv, "similar=", 8)) { in parse()
243 if (!strncmp(*argv, "random=", 7)) { in parse()
252 if (!strncmp(*argv, "enforce=", 8)) { in parse()
267 if (!strncmp(*argv, "retry=", 6)) { in parse()
272 if (!strncmp(*argv, "ask_oldauthtok", 14)) { in parse()
/NextBSD/contrib/binutils/gas/config/
HDtc-sparc.c472 if (strncmp (arg, "v9", 2) != 0)
1567 if (strncmp (p->name, s, len) == 0)
1603 if (strncmp (p->name, s, len) == 0)
1639 if (strncmp (p->name, s, len) == 0)
1676 if (strncmp (s, "%asr", 4) == 0)
1777 if (strncmp (s, "%icc", 4) == 0)
1789 if (strncmp (s, "%xcc", 4) == 0)
1801 if (strncmp (s, "%fcc0", 5) == 0)
1813 if (strncmp (s, "%fcc1", 5) == 0)
1825 if (strncmp (s, "%fcc2", 5) == 0)
[all …]
/NextBSD/contrib/tcsh/
HDvms.termcap.c110 if (strncmp(name, tmp, len) == 0) { in tgetent()
123 if (strncmp(name, tmp, len) == 0) { in tgetent()
161 if (strncmp(cp, id, CAPABLEN) == 0) { in tgetnum()
193 if (strncmp(cp, id, CAPABLEN) == 0) in tgetflag()
220 if (strncmp(cp, id, CAPABLEN) == 0) { in tgetstr()
/NextBSD/sys/geom/label/
HDg_label_gpt.c114 if (strncmp(pp->geom->class->name, PART_CLASS_NAME, sizeof(PART_CLASS_NAME))) in g_label_gpt_taste()
117 if (strncmp(tp->gpt_scheme->name, SCHEME_NAME, sizeof(SCHEME_NAME))) in g_label_gpt_taste()
147 if (strncmp(pp->geom->class->name, PART_CLASS_NAME, sizeof(PART_CLASS_NAME))) in g_label_gpt_uuid_taste()
150 if (strncmp(tp->gpt_scheme->name, SCHEME_NAME, sizeof(SCHEME_NAME))) in g_label_gpt_uuid_taste()
HDg_label_msdosfs.c96 if (strncmp(pfat_bsbpb->BS_FilSysType, "FAT", 3) != 0) { in g_label_msdosfs_taste()
106 if (strncmp(pfat_bsbpb->BS_VolLab, LABEL_NO_NAME, in g_label_msdosfs_taste()
122 if (strncmp(pfat32_bsbpb->BS_FilSysType, "FAT", 3) != 0) { in g_label_msdosfs_taste()
133 if (strncmp(pfat32_bsbpb->BS_VolLab, LABEL_NO_NAME, in g_label_msdosfs_taste()
/NextBSD/contrib/gdb/gdb/
HDc-exp.y1340 if (strncmp (tokstart, tokentab3[i].operator, 3) == 0) in yylex()
1349 if (strncmp (tokstart, tokentab2[i].operator, 2) == 0) in yylex()
1645 if (strncmp (tokstart, "unsigned", 8) == 0) in yylex()
1648 && strncmp (tokstart, "template", 8) == 0) in yylex()
1650 if (strncmp (tokstart, "volatile", 8) == 0) in yylex()
1654 if (strncmp (tokstart, "struct", 6) == 0) in yylex()
1656 if (strncmp (tokstart, "signed", 6) == 0) in yylex()
1658 if (strncmp (tokstart, "sizeof", 6) == 0) in yylex()
1660 if (strncmp (tokstart, "double", 6) == 0) in yylex()
1666 if (strncmp (tokstart, "false", 5) == 0) in yylex()
[all …]
/NextBSD/sys/dev/acpica/
HDacpi_quirk.c106 return (strncmp(actual, possible, strlen(possible)) == 0); in aq_strcmp()
161 if (!strncmp(match->sig, "FADT", ACPI_NAME_SIZE)) in acpi_table_quirks()
163 else if (!strncmp(match->sig, ACPI_SIG_DSDT, ACPI_NAME_SIZE)) in acpi_table_quirks()
165 else if (!strncmp(match->sig, ACPI_SIG_XSDT, ACPI_NAME_SIZE)) in acpi_table_quirks()

12345678910>>...57