Searched refs:s1 (Results 1 - 25 of 388) sorted by relevance

1234567891011>>

/src/lib/libc/string/
H A DLint_strcmp.c12 strcmp(const char *s1, const char *s2) argument
H A Dwcscmp.c52 wcscmp(const wchar_t *s1, const wchar_t *s2) argument
55 _DIAGASSERT(s1 != NULL);
58 while (*s1 == *s2++)
59 if (*s1++ == 0)
62 return (*(const __nbrune_t *)s1 - *(const __nbrune_t *)--s2);
H A DLint_strncmp.c12 strncmp(const char *s1, const char *s2, size_t len) argument
H A Dwcscpy.c40 wcscpy(wchar_t *s1, const wchar_t *s2) argument
44 _DIAGASSERT(s1 != NULL);
47 for (p = s1; (*p = *s2) != L'\0'; ++p, ++s2);
49 return s1;
H A Dstrcoll.c57 strcoll(const char *s1, const char *s2)
60 return strcoll_l(s1, s2, _current_locale());
64 strcoll_l(const char *s1, const char *s2, locale_t loc) argument
66 _DIAGASSERT(s1 != NULL);
71 return (strcmp(s1, s2));
H A Dwcsncmp.c46 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
49 _DIAGASSERT(s1 != NULL);
55 if (*s1 != *s2++) {
57 return (*(const __nbrune_t *)s1 -
60 if (*s1++ == 0)
H A Dwmemcmp.c41 wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
45 _DIAGASSERT(s1 != NULL);
49 if (*s1 != *s2) {
51 return *(const __nbrune_t *)s1 >
54 s1++;
H A Dwcscat.c40 wcscat(wchar_t *s1, const wchar_t *s2) argument
46 _DIAGASSERT(s1 != NULL);
49 p = s1;
57 return s1;
H A Dwcsncpy.c40 wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n) argument
44 _DIAGASSERT(s1 != NULL);
47 p = s1;
57 return s1;
H A Dwcscasecmp.c30 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc)
36 _DIAGASSERT(s1);
40 lc1 = towlower_l(*s1, loc);
50 ++s1;
56 wcscasecmp(const wchar_t *s1, const wchar_t *s2) argument
58 return wcscasecmp_l(s1, s2, _current_locale());
H A Dwcsncasecmp.c30 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc)
36 _DIAGASSERT(s1);
40 lc1 = towlower_l(*s1, loc);
50 ++s1;
58 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) argument
60 return wcsncasecmp_l(s1, s2, n, _current_locale());
H A Dwcsncat.c40 wcsncat(wchar_t *s1, const wchar_t *s2, size_t n) argument
46 _DIAGASSERT(s1 != NULL);
49 p = s1;
59 return s1;
/src/bin/sh/
H A Dmystring.h45 #define equal(s1, s2) (strcmp(s1, s2) == 0)
46 #define scopy(s1, s2) ((void)strcpy(s2, s1))
/src/sys/arch/hpc/stand/libsa/
H A Dstricmp.cpp40 stricmp(const char *s1, const char *s2) argument
43 while (libsa::tolower(*s1) == libsa::tolower(*s2++))
44 if (*s1++ == '\0')
47 return libsa::tolower(*s1) - libsa::tolower(*--s2);
/src/lib/libc/locale/
H A Dwcscoll.c45 wcscoll_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) argument
49 return (wcscmp(s1, s2));
53 wcscoll(const wchar_t *s1, const wchar_t *s2) argument
55 return wcscoll_l(s1, s2, _current_locale());
H A Dwcsxfrm.c45 wcsxfrm_l(wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) argument
54 wcscpy(s1, s2);
68 wcsxfrm(wchar_t *s1, const wchar_t *s2, size_t n) argument
70 return wcsxfrm_l(s1, s2, n, _current_locale());
/src/common/lib/libc/string/
H A Dstrcmp.c57 strcmp(const char *s1, const char *s2) argument
60 while (*s1 == *s2++)
61 if (*s1++ == 0)
63 return (*(const unsigned char *)s1 - *(const unsigned char *)--s2);
H A Dstrncmp.c49 strncmp(const char *s1, const char *s2, size_t n) argument
55 if (*s1 != *s2++)
56 return (*(const unsigned char *)s1 -
58 if (*s1++ == 0)
/src/sys/external/isc/libsodium/dist/test/quirks/
H A Dquirks.h25 # define strcmp(s1, s2) xstrcmp(s1, s2)
28 strcmp(const char *s1, const char *s2) argument
30 while (*s1 == *s2++) {
31 if (*s1++ == 0) {
35 return *(unsigned char *) s1 - *(unsigned char *) --s2;
/src/lib/libtelnet/
H A Dgenget.c47 * The prefix function returns 0 if *s1 is not a prefix
48 * of *s2. If *s1 exactly matches *s2, the negative of
49 * the length is returned. If *s1 is a prefix of *s2,
50 * the length of *s1 is returned.
53 isprefix(const char *s1, const char *s2) argument
58 if (*s1 == '\0')
60 os1 = s1;
61 c1 = *s1;
66 c1 = *++s1;
69 return(*s1
[all...]
/src/sys/arch/ia64/stand/common/
H A Dstrspn.c49 strspn(const char *s1, const char *s2) argument
51 const char *p = s1, *spanp;
54 _DIAGASSERT(s1 != NULL);
65 return (p - 1 - s1);
/src/usr.bin/xargs/
H A Dstrnsubst.c40 char *s1, *s2, *this; local in function:strnsubst
42 s1 = *str;
43 if (s1 == NULL)
46 * If maxsize is 0 then set it to to the length of s1, because we have
47 * to duplicate s1. XXX we maybe should double-check whether the match
48 * appears in s1. If it doesn't, then we also have to set the length
49 * to the length of s1, to avoid modifying the argument. It may make
50 * sense to check if maxsize is <= strlen(s1), because in that case we
55 maxsize = strlen(s1) + 1;
64 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) {
[all...]
/src/lib/libc_vfp/
H A Dvfpsf.S59 vmov s0, s1, r0, r1
60 vadd.f32 s0, s0, s1
66 vmov s0, s1, r0, r1
67 vsub.f32 s0, s0, s1
74 vmov s0, s1, r0, r1
75 vsub.f32 s0, s1, s0
82 vmov s0, s1, r0, r1
83 vmul.f32 s0, s0, s1
89 vmov s0, s1, r0, r1
90 vdiv.f32 s0, s0, s1
[all...]
/src/sys/net/agr/
H A Dieee8023ad_lacp_sm.h32 #define LACP_STATE_EQ(s1, s2, mask) \
33 ((((s1) ^ (s2)) & (mask)) == 0)
/src/sys/arch/powerpc/pci/
H A Dpchb.c81 const char *s1; local in function:mpc105_print
89 s1 = "256K";
92 s1 = "512K";
95 s1 = "1M";
98 s1 = "reserved size";
102 aprint_normal("%s, ", s1);
105 s1 = "uniprocessor/none";
108 s1 = "write-through";
111 s1 = "write-back";
114 s1
124 const char *s1; local in function:mpc106_print
186 const char *s1, *s2; local in function:ibm82660_print
[all...]

Completed in 12 milliseconds

1234567891011>>