Symbol: strncasecmp
bin/csh/proc.c
995
(!strncasecmp("SIG", name, 3) && /* skip "SIG" prefix */
bin/ksh/trap.c
111
(strlen(name) > 3 && !strncasecmp("SIG",
bin/sh/mystring.c
161
if (strncasecmp(s, "true", len) == 0 ||
bin/sh/mystring.c
162
strncasecmp(s, "yes", len) == 0 ||
bin/sh/trap.c
405
strncasecmp(ap[-1], "sig", 3) == 0) ? "" :
common/lib/libc/string/strcasecmp.c
52
__weak_alias(strncasecmp,_strncasecmp)
common/lib/libc/string/strncasecmp.c
52
__weak_alias(strncasecmp,_strncasecmp)
common/lib/libc/string/strncasecmp.c
60
strncasecmp(const char *s1, const char *s2, size_t n)
crypto/dist/ipsec-tools/src/racoon/backupsa.c
368
if (strncasecmp(p, strmon[i], strlen(strmon[i])) == 0) {
dist/pf/sbin/pfctl/pfctl_osfp.c
400
if (strncasecmp(ptr, version_nm->nm_name,
dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c
211
if (strncasecmp("PASV", linebuf, 4) == 0)
dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c
213
else if (strncasecmp("PORT ", linebuf, 5) == 0)
dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c
215
else if (strncasecmp("EPSV", linebuf, 4) == 0)
dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c
217
else if (strncasecmp("EPRT ", linebuf, 5) == 0)
distrib/utils/edlabel/edlabel.c
253
if (!strncasecmp(buf, fstypenames[i], len)) {
include/strings.h
78
int strncasecmp(const char *, const char *, size_t);
lib/libc/gen/signalnumber.c
52
if (strncasecmp(name, "sig", 3) == 0)
lib/libc/gen/signalnumber.c
61
if (strncasecmp(name, "rtm", 3) == 0) {
lib/libc/gen/signalnumber.c
63
if (strncasecmp(name, "ax", 2) == 0)
lib/libc/gen/signalnumber.c
65
else if (strncasecmp(name, "in", 2) == 0)
lib/libc/nameser/ns_name.c
766
if (ac != bc || strncasecmp((const char *) ++a,
lib/libc/nameser/ns_name.c
786
strncasecmp((const char *) a->base,
lib/libc/nameser/ns_samedomain.c
109
return (strncasecmp(a, b, lb) == 0);
lib/libc/nameser/ns_samedomain.c
149
return (strncasecmp(cp, b, lb) == 0);
lib/libc/resolv/res_debug.c
1214
if (strncasecmp(buf, "CLASS", 5) != 0 ||
lib/libc/resolv/res_debug.c
1237
if (strncasecmp(buf, "type", 4) != 0 ||
lib/libc/string/strcasestr.c
65
} while (strncasecmp(s, find, len) != 0);
lib/libc/time/strptime.c
771
if (strncasecmp(*n1, (const char *)bp, len) == 0) {
lib/libcompat/4.3/ruserpass.c
148
strncasecmp(host, tokval,
lib/libform/type_enum.c
195
cur_match = (strncasecmp(&choices[i][enum_start],
lib/libmenu/internals.c
344
if (strncasecmp(menu->items[i]->name.string,
lib/libresolv/res_mkupdate.c
842
if (*startpp + 2 >= endp || strncasecmp((char *)*startpp, "0x", 2) != 0)
lib/libutil/getfsspecname.c
69
if (strncasecmp(name, "ROOT.", 5) == 0 && strchr(name, ':') == NULL) {
lib/libutil/getfsspecname.c
84
if (strncasecmp(name, "NAME=", 5) != 0) {
lib/libwrap/tcpd.h
43
#define STRN_EQ(x,y,l) (strncasecmp((x),(y),(l)) == 0)
lib/libwrap/tcpd.h
44
#define STRN_NE(x,y,l) (strncasecmp((x),(y),(l)) != 0)
libexec/comsat/comsat.c
308
(strncasecmp(line, "From:", 5) &&
libexec/comsat/comsat.c
309
strncasecmp(line, "Subject:", 8)))
libexec/ftpd/ftpcmd.y
1449
strncasecmp(s, "PASS ", 5) == 0) ||
libexec/ftpd/ftpcmd.y
1450
strncasecmp(s, "ACCT ", 5) == 0) {
libexec/ftpd/ftpcmd.y
1515
if (strncasecmp(cmdp, "PASS", 4) != 0 &&
libexec/ftpd/ftpcmd.y
1516
strncasecmp(cmdp, "ACCT", 4) != 0)
libexec/ftpd/ftpcmd.y
1642
if (strncasecmp(&cmdp[cpos], "ALL", 3) == 0
libexec/ftpd/ftpcmd.y
722
if (strncasecmp(cp, "SITE", 4) == 0) {
libexec/ftpd/ftpd.c
3850
if (strncasecmp(pbuf, "PASS ", 5) != 0) {
libexec/getNAME/getNAME.c
197
if (strncasecmp(s, names[i], strlen(names[i])) == 0)
libexec/getNAME/getNAME.c
311
if (strncasecmp(s, names[i], strlen(names[i])) == 0)
libexec/httpd/auth-bozo.c
151
strncasecmp(str, "Basic ", 6) == 0) {
libexec/httpd/bozohttpd.c
1336
if (strncasecmp(file, "http://", 7) == 0) {
libexec/httpd/bozohttpd.c
1396
if (strncasecmp(httpd->virthostname, request->hr_host, len) != 0) {
libexec/httpd/bozohttpd.c
1793
if ((len == 4 && strncasecmp("gzip", pos, 4) == 0) ||
libexec/httpd/bozohttpd.c
1794
(len == 6 && strncasecmp("x-gzip", pos, 6) == 0))
libexec/httpd/bozohttpd.c
515
if (strncasecmp(proto, "HTTP/", 5) != 0)
libexec/makewhatis/makewhatis.c
1004
if (strncasecmp(ptr, ".Nd", 3) != 0 ||
libexec/makewhatis/makewhatis.c
1063
if ((strncasecmp(ptr, ".Sh", 3) == 0) ||
libexec/makewhatis/makewhatis.c
1064
(strncasecmp(ptr, ".Ss", 3) == 0))
libexec/makewhatis/makewhatis.c
738
if (strncasecmp(line, ".Xr", 3) == 0) {
libexec/makewhatis/makewhatis.c
889
if (strncasecmp(buffer, POD, sizeof(POD) - 1) == 0) {
libexec/makewhatis/makewhatis.c
896
} while (strncasecmp(buffer, IX, sizeof(IX) - 1) != 0);
libexec/makewhatis/makewhatis.c
901
if (strncasecmp(buffer, ".Dt", 3) == 0) {
libexec/makewhatis/makewhatis.c
916
else if (strncasecmp(buffer, ".TH", 3) == 0) {
libexec/makewhatis/makewhatis.c
931
else if (strncasecmp(buffer, ".Ds", 3) == 0) {
libexec/makewhatis/makewhatis.c
935
} while (strncasecmp(buffer, ".Sh NAME", 8) != 0);
libexec/makewhatis/makewhatis.c
944
if (strncasecmp(buffer, ".Nm", 3) == 0) {
libexec/makewhatis/makewhatis.c
973
if (strncasecmp(ptr, ".Nm", 3) != 0) break;
libexec/makewhatis/makewhatis.c
994
if (strncasecmp(ptr, ".Nd", 3) == 0) {
libexec/makewhatis/makewhatis.c
998
while (strncasecmp(ptr, ".Sh", 3) != 0) {
sbin/atactl/atactl.c
1313
if (strncasecmp(model, model_to_vendor[i].model,
sbin/fdisk/fdisk.c
2874
if (!strncasecmp(cp, "gb", len)) {
sbin/fdisk/fdisk.c
2878
if (valid || !strncasecmp(cp, "mb", len)) {
sbin/fdisk/fdisk.c
2885
if (valid || !strncasecmp(cp, "cyl", len)) {
sbin/ifconfig/ieee80211.c
366
} else if (strncasecmp("persist:", val, 8) == 0) {
sbin/ifconfig/ieee80211.c
689
strncasecmp("persist",
sbin/nvmectl/firmware.c
299
if (strncasecmp(prompt, "yes", 3) == 0)
sbin/nvmectl/firmware.c
301
if (strncasecmp(prompt, "no", 2) == 0)
sbin/raidctl/raidctl.c
902
if (strncasecmp(autoconf, "root", 4) == 0 ||
sbin/raidctl/raidctl.c
903
strncasecmp(autoconf, "hard", 4) == 0 ||
sbin/raidctl/raidctl.c
904
strncasecmp(autoconf, "force", 5) == 0) {
sbin/raidctl/raidctl.c
906
} else if (strncasecmp(autoconf, "soft", 4) == 0) {
sbin/raidctl/raidctl.c
910
if ((strncasecmp(autoconf,"yes", 3) == 0) ||
sbin/routed/parms.c
210
if (strncasecmp("net", lptr, 3)
sbin/routed/parms.c
211
&& strncasecmp("host", lptr, 4)) {
sbin/routed/parms.c
586
#define PARSEQ(str) (!strncasecmp(tgt, str"=", sizeof(str)))
sbin/routed/parms.c
601
if (!strncasecmp(line, "subnet=", sizeof("subnet=")-1)
sbin/routed/parms.c
633
if (!strncasecmp(line, "ripv1_mask=", sizeof("ripv1_mask=")-1)
share/examples/puffs/icfs/icfs.c
94
if (strncasecmp(cp1 + rplen, cp2 + rplen, clen - rplen) != 0)
share/examples/refuse/ian/libfetch/ftp.c
645
strncasecmp(s, "no", 2) != 0);
share/examples/refuse/ian/libfetch/http.c
525
if (strncasecmp(p, "bytes ", 6) != 0)
share/examples/refuse/ian/libfetch/http.c
650
if (strncasecmp(p, "basic:", 6) == 0) {
sys/arch/algor/algor/pmon.c
93
if (strncasecmp(var, *env, i) == 0 &&
sys/arch/alpha/alpha/machdep.c
1010
if (strncasecmp(s, "MHz", 3) == 0) {
sys/arch/arc/arc/machdep.c
457
if (strncasecmp(envname, env[0], l) == 0 && env[0][l] == '=') {
sys/arch/arc/stand/boot/boot.c
265
if (strncasecmp(envname, env[0], len) == 0 &&
sys/arch/atari/stand/bootpref/bootpref.c
673
if (!strncasecmp (str, "ne", 2)) {
sys/arch/atari/stand/bootpref/bootpref.c
677
if (!strncasecmp (str, "t", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
681
if (!strncasecmp (str, "m", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
685
if (!strncasecmp (str, "l", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
689
if (!strncasecmp (str, "s", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
693
if (!strncasecmp (str, "no", 2)) {
sys/arch/atari/stand/bootpref/bootpref.c
703
if (!strncasecmp (str, "e", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
707
if (!strncasecmp (str, "g", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
711
if (!strncasecmp (str, "f", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
715
if (!strncasecmp (str, "s", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
719
if (!strncasecmp (str, "i", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
729
if (!strncasecmp (str, "a", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
733
if (!strncasecmp (str, "g", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
737
if (!strncasecmp (str, "f", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
741
if (!strncasecmp (str, "b", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
745
if (!strncasecmp (str, "sp", 2)) {
sys/arch/atari/stand/bootpref/bootpref.c
749
if (!strncasecmp (str, "i", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
753
if (!strncasecmp (str, "swiss f", 7) || !strncasecmp (str, "sw f", 4)) {
sys/arch/atari/stand/bootpref/bootpref.c
757
if (!strncasecmp (str, "swiss g", 7) || !strncasecmp (str, "sw g", 4)) {
sys/arch/atari/stand/bootpref/bootpref.c
778
if (!strncasecmp (str, "m", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
782
if (!strncasecmp (str, "d", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
786
if (!strncasecmp (str, "yym", 3)) {
sys/arch/atari/stand/bootpref/bootpref.c
790
if (!strncasecmp (str, "yyd", 3)) {
sys/arch/atari/stand/bootpref/bootpref.c
811
if (!strncasecmp (str, "6", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
815
if (!strncasecmp (str, "25", 2)) {
sys/arch/atari/stand/bootpref/bootpref.c
819
if (!strncasecmp (str, "1", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
823
if (!strncasecmp (str, "4", 1)) {
sys/arch/atari/stand/bootpref/bootpref.c
827
if (!strncasecmp (str, "2", 1)) {
sys/arch/evbarm/gumstix/gxio.c
324
if (strncasecmp(gxioconflist[i].name, GXIO_DEFAULT_EXPANSION,
sys/arch/evbarm/gumstix/gxio.c
352
if (strncasecmp(gxioconflist[i].name, expansion,
sys/arch/sandpoint/stand/altboot/main.c
282
if (strncasecmp(argv[n], bootargs[i].name,
sys/arch/sgimips/sgimips/arcemu.c
189
if (strncasecmp(env[i], key, strlen(key)) == 0 &&
sys/arch/xen/xen/xen_machdep.c
127
if (strncasecmp(opt, "bootdev=", 8) == 0) {
sys/arch/xen/xen/xen_machdep.c
132
if (strncasecmp(opt, "root=", 5) == 0) {
sys/arch/xen/xen/xen_machdep.c
141
strncasecmp(opt, "nfsroot=", 8) == 0)
sys/arch/xen/xen/xen_machdep.c
145
if (strncasecmp(opt, "ip=", 3) == 0) {
sys/arch/xen/xen/xen_machdep.c
198
if (strncasecmp(opt, "console=", 8) == 0)
sys/arch/xen/xen/xen_machdep.c
213
if (strncasecmp(opt, "pciback.hide=", 13) == 0)
sys/dev/hyperv/hvs.c
418
strncasecmp(dev, cf->cf_name, len) != 0 ||
sys/fs/cd9660/cd9660_lookup.c
292
if (strncasecmp(name, altname, namelen) == 0)
sys/kern/subr_userconf.c
604
if (strncasecmp(dev, cfdata[i].cf_name,
sys/kern/subr_userconf.c
671
} else if (strncasecmp(dev,
sys/kern/subr_userconf.c
713
if (strncasecmp(v, userconf_cmds[j], i) == 0)
sys/lib/libkern/libkern.h
463
int strncasecmp(const char *, const char *, size_t);
sys/stand/efiboot/efiblock.c
92
if (strncasecmp(full_path, "hd", 2) != 0)
sys/stand/efiboot/efifile.c
44
if (strncasecmp(fname, "fs", 2) != 0)
tools/compat/compat_defs.h
552
int strncasecmp(const char *, const char *, size_t);
usr.bin/calendar/calendar.c
652
if (strncasecmp(s, *p, 3) == 0)
usr.bin/calendar/calendar.c
663
if (strncasecmp(s, *p, 3) == 0)
usr.bin/cdplay/cdplay.c
1350
if (len >= c->min && strncasecmp(buf, c->name, len) == 0) {
usr.bin/cdplay/cdplay.c
606
} else if (strncasecmp(arg, "left", strlen(arg)) == 0)
usr.bin/cdplay/cdplay.c
608
else if (strncasecmp(arg, "right", strlen(arg)) == 0)
usr.bin/cdplay/cdplay.c
610
else if (strncasecmp(arg, "mono", strlen(arg)) == 0)
usr.bin/cdplay/cdplay.c
612
else if (strncasecmp(arg, "stereo", strlen(arg)) == 0)
usr.bin/cdplay/cdplay.c
614
else if (strncasecmp(arg, "mute", strlen(arg)) == 0)
usr.bin/chpass/edit.c
177
if (!strncasecmp(buf, ep->prompt, ep->len)) {
usr.bin/eject/eject.c
242
if (strncasecmp(nicknames[n].name, dev_name,
usr.bin/eject/eject.c
286
if (strncasecmp(nicknames[n].name, nn,
usr.bin/eject/eject.c
309
if (strncasecmp(nicknames[n].name, nn,
usr.bin/ftp/fetch.c
123
#define STRNEQUAL(a,b) (strncasecmp((a), (b), sizeof((b))-1) == 0)
usr.bin/ftp/fetch.c
196
if (strncasecmp(p, token, tlen) != 0)
usr.bin/ftp/fetch.c
770
if (strncasecmp(host + hlen - plen, cp, plen) == 0) {
usr.bin/ftp/ruserpass.c
92
strncasecmp(host, tokv, tmp - host) == 0 &&
usr.bin/ftp/util.c
179
else if (strncasecmp(fline, "MLST", sizeof("MLST") - 1) == 0) {
usr.bin/ftp/util.c
217
if (!strncasecmp(reply_string + 4, "unix", 4) ||
usr.bin/ftp/util.c
218
!strncasecmp(reply_string + 4, "linux", 5)) {
usr.bin/last/want.c
289
if (!strncasecmp(step->name, bp->ut_host, HOSTSIZE))
usr.bin/mail/cmd3.c
244
if (p + len == q && strncasecmp(cp, p, len) == 0)
usr.bin/mail/cmd3.c
270
if (strncasecmp(subj, pref, preflen) == 0)
usr.bin/mail/cmd4.c
312
if (strncasecmp(np->n_name, str, len) == 0) {
usr.bin/mail/complete.c
669
if (len == 0 || strncasecmp(*p, word, len) == 0)
usr.bin/mail/mime_attach.c
221
strncasecmp(ctype, "text/", sizeof("text/") - 1) == 0;
usr.bin/mail/mime_decode.c
215
if (strncasecmp(dst, field, len) == 0 && dst[len] == '=') {
usr.bin/mail/mime_header.c
585
if (strncasecmp(name, fp->field_name, fp->field_len) == 0)
usr.bin/mail/thread.c
1492
while (strncasecmp(subj, "Re:", 3) == 0)
usr.bin/newsyslog/newsyslog.c
844
if (strncasecmp(sig, "SIG", 3) == 0)
usr.bin/pkill/pkill.c
151
if (strncasecmp(p, "sig", 3) == 0)
usr.bin/telnet/commands.c
2509
if (strncasecmp(line, m1, l1) == 0)
usr.bin/telnet/commands.c
2511
else if (strncasecmp(line, m2, l2) == 0)
usr.bin/telnet/commands.c
2513
else if (strncasecmp(line, "DEFAULT", 7) == 0)
usr.bin/telnet/telnet.c
603
else if (name && (strncasecmp(name, cp2, cp-cp2) == 0))
usr.bin/telnet/telnet.c
673
if (strncasecmp(*ap, name, n) == 0)
usr.bin/timeout/timeout.c
117
if (strncasecmp(str, "SIG", 3) == 0) {
usr.bin/vacation/vacation.c
317
#define CASECOMPARE(a, b) strncasecmp(a, b, sizeof(b) - 1)
usr.bin/vacation/vacation.c
441
if (!strncasecmp(name, str, len))
usr.bin/vacation/vacation.c
521
!strncasecmp(cur->name, p - cur->len, cur->len))
usr.bin/whatis/whatis.c
211
if (bp - start == len && strncasecmp(start, str, len) == 0) {
usr.bin/whatis/whatis.c
218
strncasecmp(start, str, len) == 0)
usr.bin/whois/whois.c
318
else if ((strncasecmp(name, "COCO-", 5) == 0 ||
usr.bin/whois/whois.c
319
strncasecmp(name, "COHO-", 5) == 0) &&
usr.bin/whois/whois.c
322
else if ((strncasecmp(name, "AS", 2) == 0) &&
usr.sbin/faithd/ftp.c
840
strncasecmp(param, "ALL", 3) == 0 &&
usr.sbin/grfconfig/grfconfig.c
186
if (strncasecmp("c", cps[0], 1) == 0) {
usr.sbin/ldpd/conffile.c
190
if (strncasecmp(main_commands[i].com, command,
usr.sbin/ldpd/conffile.c
363
if (strncasecmp("authenticate", line, 12) == 0) {
usr.sbin/ldpd/conffile.c
416
if (strncasecmp(buf, intf_commands[i].com,
usr.sbin/ldpd/ldp_command.c
331
if (strncasecmp(orig, cf[i].com, len) == 0) {
usr.sbin/ldpd/socketops.c
296
if (strncasecmp(if_name, coif->if_name, IF_NAMESIZE) == 0 &&
usr.sbin/ldpd/socketops.c
517
if (strncasecmp(coif->if_name, ifb->ifa_name,
usr.sbin/memswitch/methods.c
374
else if (strncasecmp("HD", p, 2) == 0) {
usr.sbin/memswitch/methods.c
383
} else if (strncasecmp("FD", p, 2) == 0) {
usr.sbin/memswitch/methods.c
392
} else if (strncasecmp("INSCSI", p, 6) == 0 ||
usr.sbin/memswitch/methods.c
393
strncasecmp("EXSCSI", p, 6) == 0) {
usr.sbin/memswitch/methods.c
394
int isin = strncasecmp("EXSCSI", p, 6);
usr.sbin/memswitch/methods.c
54
if (strlen(p1) >= 2 && strncasecmp("0x", p1, 2) == 0) {
usr.sbin/rpc.pcnfsd/pcnfsd_print.c
751
if (!strncasecmp(buff, "rank", 4))
usr.sbin/rpc.statd/stat_proc.c
166
if (!strncasecmp(idp->my_name, lp->notifyHost, SM_MAXSTRLEN)
usr.sbin/syslogd/syslogd.c
3361
if (!strncasecmp(p, config_keywords[i].keyword,
usr.sbin/syslogd/syslogd.c
4837
if (strncasecmp(*p, keyword, strlen(keyword)))
usr.sbin/syslogd/syslogd.c
4859
if (strncasecmp(*p, keyword, strlen(keyword)))
usr.sbin/syslogd/tls.c
487
if (!strncasecmp(subject, str, len)
usr.sbin/syslogd/tls.c
488
|| !strncasecmp(hostname, str, len)) {
usr.sbin/syslogd/tls.c
507
if ((subject && !strncasecmp(subject,
usr.sbin/syslogd/tls.c
509
|| (hostname && !strncasecmp(hostname,
usr.sbin/tprof/tprof.c
337
if (strncasecmp("0x", scale, 2) == 0)
usr.sbin/traceroute/as.c
194
if (as == 0 && strncasecmp(buf, "origin:", 7) == 0) {