Home
last modified time | relevance | path

Searched refs:us2 (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/sys/libkern/
H A Dstrcasecmp.c43 const u_char *us1 = (const u_char *)s1, *us2 = (const u_char *)s2; in strcasecmp() local
45 while (tolower(*us1) == tolower(*us2)) { in strcasecmp()
48 us2++; in strcasecmp()
50 return (tolower(*us1) - tolower(*us2)); in strcasecmp()
59 const u_char *us2 = (const u_char *)s2; in strncasecmp() local
62 if (tolower(*us1) != tolower(*us2)) in strncasecmp()
63 return (tolower(*us1) - tolower(*us2)); in strncasecmp()
66 us2++; in strncasecmp()
/freebsd/contrib/sendmail/libsm/
H A Dstrcasecmp.c74 const unsigned char *us2 = (const unsigned char *)s2; local
76 while (charmap[*us1] == charmap[*us2])
81 ++us2;
83 return charmap[*us1] - charmap[*us2];
95 register const unsigned char *us2 = (const unsigned char *)s2; local
99 if (cm[*us1] != cm[*us2++])
100 return (cm[*us1] - cm[*--us2]);
/freebsd/contrib/tcpdump/
H A Dascii_strcasecmp.c63 *us2 = (const unsigned char *)s2; in ascii_strcasecmp() local
65 while (cm[*us1] == cm[*us2++]) in ascii_strcasecmp()
68 return(cm[*us1] - cm[*--us2]); in ascii_strcasecmp()
76 *us2 = (const unsigned char *)s2; in ascii_strncasecmp() local
88 if (cm[*us1] != cm[*us2++]) { in ascii_strncasecmp()
104 return(cm[*us1] - cm[*--us2]); in ascii_strncasecmp()
/freebsd/stand/libsa/
H A Dstrcasecmp.c38 *us2 = (const u_char *)s2; in strcasecmp() local
40 while (tolower(*us1) == tolower(*us2++)) in strcasecmp()
43 return (tolower(*us1) - tolower(*--us2)); in strcasecmp()
52 *us2 = (const u_char *)s2; in strncasecmp() local
55 if (tolower(*us1) != tolower(*us2++)) in strncasecmp()
56 return (tolower(*us1) - tolower(*--us2)); in strncasecmp()
/freebsd/contrib/tcp_wrappers/
H A Dstrcasecmp.c73 *us2 = (u_char *)s2; in strcasecmp() local
75 while (cm[*us1] == cm[*us2++]) in strcasecmp()
78 return(cm[*us1] - cm[*--us2]); in strcasecmp()
85 *us2 = (u_char *)s2; in strncasecmp() local
87 while (--n >= 0 && cm[*us1] == cm[*us2++]) in strncasecmp()
90 return(n < 0 ? 0 : cm[*us1] - cm[*--us2]); in strncasecmp()
/freebsd/lib/libc/string/
H A Dstrcasecmp.c46 *us2 = (const u_char *)s2; in strcasecmp_l() local
49 while (tolower_l(*us1, locale) == tolower_l(*us2++, locale)) in strcasecmp_l()
52 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strcasecmp_l()
67 *us2 = (const u_char *)s2; in strncasecmp_l() local
70 if (tolower_l(*us1, locale) != tolower_l(*us2++, locale)) in strncasecmp_l()
71 return (tolower_l(*us1, locale) - tolower_l(*--us2, locale)); in strncasecmp_l()
/freebsd/lib/libc/tests/nss/
H A Dgetusershell_test.c76 compare_usershell(struct usershell *us1, struct usershell *us2, in compare_usershell() argument
82 assert(us2 != NULL); in compare_usershell()
85 dump_usershell(us2); in compare_usershell()
87 if (us1 == us2) in compare_usershell()
90 rv = strcmp(us1->path, us2->path); in compare_usershell()
94 dump_usershell(us2); in compare_usershell()
/freebsd/tests/sys/geom/class/raid3/
H A D12_test.sh13 attach_md us2 -t malloc -s $nblocks1 || exit 1
17 dd if=/dev/random of=/dev/${us2} count=$nblocks1 >/dev/null 2>&1
19 graid3 label -w $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
28 true > /dev/${us2}
H A D7_test.sh15 attach_md us2 -t malloc -s $(expr $nblocks1 + 1) || exit 1
19 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
28 dd if=/dev/zero of=/dev/${us2} bs=512 count=`expr $nblocks1 + 1` >/dev/null 2>&1
29 graid3 insert -n 2 $name md${us2}
H A D9_test.sh15 attach_md us2 -t malloc -s $(expr $nblocks1 + 1) || exit 1
19 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
26 dd if=/dev/zero of=/dev/${us2} bs=512 count=`expr $nblocks1 + 1` >/dev/null 2>&1
28 graid3 insert -n 2 $name md${us2}
H A D1_test.sh9 attach_md us2 -t malloc -s 3M || exit 1
11 graid3 label $name /dev/${us0} /dev/${us1} /dev/${us2} 2>/dev/null || exit 1
/freebsd/tests/sys/geom/class/concat/
H A Dappend2.sh36 attach_md us2 -f $f3 -S $ss || exit 1
45 gconcat append $name /dev/$us2 || exit 1
56 detach_md $us2
62 attach_md us2 -f $f3 -S $ss || exit 1
H A D1_test.sh9 attach_md us2 -t malloc -s 3M || exit 1
11 gconcat create $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1
/freebsd/tests/sys/geom/class/mirror/
H A D6_test.sh18 attach_md us2 -t malloc -s `expr $nblocks1 + 1` || exit 1
24 dd if=/dev/zero of=/dev/${us2} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
34 gmirror insert ${name} ${us2}
37 dd if=/dev/${us2} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
H A D2_test.sh18 attach_md us2 -t malloc -s `expr $nblocks1 + 1` || exit 1
20 gmirror label -b $balance $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
44 dd if=/dev/${us2} of=${dst} bs=$ddbs count=$nblocks2 >/dev/null 2>&1
H A D9_test.sh20 attach_md us2 -t vnode -f $m3 || exit 1
34 gmirror insert $name /dev/$us2 || exit 1
48 gmirror activate $name /dev/$us2 || exit 1
H A D3_test.sh18 attach_md us2 -t malloc -s `expr $nblocks1 + 1` || exit 1
20 gmirror label -b $balance $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
48 gmirror remove $name ${us2}
H A D4_test.sh18 attach_md us2 -t malloc -s `expr $nblocks1 + 1` || exit 1
20 gmirror label -b $balance $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
48 gmirror remove $name ${us2}
H A D5_test.sh18 attach_md us2 -t malloc -s `expr $nblocks1 + 1` || exit 1
20 gmirror label -b $balance -s `expr $ddbs / 2` $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
48 gmirror remove $name ${us2}
H A D7_test.sh18 attach_md us2 -t malloc -s `expr $nblocks1 + 1` || exit 1
20 gmirror label -b $balance $name /dev/${us0} /dev/${us1} /dev/${us2} || exit 1
48 gmirror remove $name ${us2}
H A D1_test.sh9 attach_md us2 -t malloc -s 3M || exit 1
11 gmirror label $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1
/freebsd/contrib/file/src/
H A Dstrcasestr.c51 *us2 = (const unsigned char *)s2; in _strncasecmp() local
54 if (tolower(*us1) != tolower(*us2++)) in _strncasecmp()
55 return tolower(*us1) - tolower(*--us2); in _strncasecmp()
/freebsd/tests/sys/geom/class/shsec/
H A D2_test.sh16 attach_md us2 -t malloc -s $nblocks2 || exit 1
18 gshsec label $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1
44 dd if=/dev/${us2} of=${dst} count=$nblocks1 >/dev/null 2>&1
H A D1_test.sh9 attach_md us2 -t malloc -s 3M || exit 1
11 gshsec label $name /dev/${us0} /dev/${us1} /dev/${us2} 2>/dev/null || exit 1
/freebsd/tests/sys/geom/class/stripe/
H A D1_test.sh9 attach_md us2 -t malloc -s 3M || exit 1
11 gstripe create -s 16384 $name /dev/$us0 /dev/$us1 /dev/$us2 || exit 1

12