Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/titanic_44/usr/src/psm/promif/ieee1275/common/
H A Dprom_string.c41 prom_strncpy(register char *s1, register char *s2, size_t n) in prom_strncpy() argument
43 register char *os1 = s1; in prom_strncpy()
46 while (--n != 0 && (*s1++ = *s2++) != '\0') in prom_strncpy()
50 *s1++ = '\0'; in prom_strncpy()
58 prom_strcpy(register char *s1, register char *s2) in prom_strcpy() argument
62 os1 = s1; in prom_strcpy()
63 while (*s1++ = *s2++) in prom_strcpy()
72 prom_strncmp(register char *s1, register char *s2, register size_t n) in prom_strncmp() argument
75 if (s1 == s2) in prom_strncmp()
77 while (--n != 0 && *s1 == *s2++) in prom_strncmp()
[all …]
/titanic_44/usr/src/lib/libc/port/gen/
H A Dstrstr.c45 const char *s1, *s2; in strstr() local
49 s1 = as1; in strstr()
53 return ((char *)s1); in strstr()
56 while (*s1 != '\0') { in strstr()
57 if (c == *s1++) { in strstr()
58 tptr = s1; in strstr()
59 while ((c = *++s2) == *s1++ && c != '\0') in strstr()
63 s1 = tptr; in strstr()
84 const char *s1, *s2; in strnstr() local
89 s1 = as1; in strnstr()
[all …]
/titanic_44/usr/src/lib/libc/port/locale/
H A Dwcscasecmp.c44 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) in wcscasecmp_l() argument
46 if (s1 == s2) in wcscasecmp_l()
49 while (towlower_l(*s1, loc) == towlower_l(*s2, loc)) { in wcscasecmp_l()
50 if (*s1 == 0) in wcscasecmp_l()
52 s1++; in wcscasecmp_l()
55 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcscasecmp_l()
59 wcscasecmp(const wchar_t *s1, const wchar_t *s2) in wcscasecmp() argument
61 return (wcscasecmp_l(s1, s2, uselocale(NULL))); in wcscasecmp()
65 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) in wcsncasecmp_l() argument
67 if (s1 == s2) in wcsncasecmp_l()
[all …]
/titanic_44/usr/src/cmd/sendmail/libsm/
H A Dt-strrevcmp.c25 char *s1; variable
30 s1 = "equal";
32 SM_TEST(sm_strrevcmp(s1, s2) == 0);
34 s1 = "equal";
36 SM_TEST(sm_strrevcmp(s1, s2) > 0);
38 s1 = "qual";
40 SM_TEST(sm_strrevcmp(s1, s2) < 0);
42 s1 = "Equal";
44 SM_TEST(sm_strrevcmp(s1, s2) < 0);
46 s1 = "Equal";
[all …]
H A Dstrrevcmp.c35 sm_strrevcasecmp(s1, s2) in sm_strrevcasecmp() argument
36 const char *s1, *s2; in sm_strrevcasecmp()
40 i1 = strlen(s1) - 1;
43 charmap[(unsigned char) s1[i1]] ==
61 return (charmap[(unsigned char) s1[i1]] -
77 sm_strrevcmp(s1, s2) in sm_strrevcmp() argument
78 const char *s1, *s2; in sm_strrevcmp()
82 i1 = strlen(s1) - 1;
84 while (i1 >= 0 && i2 >= 0 && s1[i1] == s2[i2])
101 return s1[i1] - s2[i2];
/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A Dstricmp.c55 strcasecmp(char *s1, char *s2) in strcasecmp() argument
59 while (cm[*s1] == cm[*s2++]) in strcasecmp()
60 if (*s1++ == '\0') in strcasecmp()
62 return(cm[*s1] - cm[*--s2]); in strcasecmp()
66 strncasecmp(char *s1, char *s2, int n) in strncasecmp() argument
70 while (--n >= 0 && cm[*s1] == cm[*s2++]) in strncasecmp()
71 if (*s1++ == '\0') in strncasecmp()
73 return(n < 0 ? 0 : cm[*s1] - cm[*--s2]); in strncasecmp()
80 stricmp(char *s1, char *s2) in stricmp() argument
82 return (strcasecmp(s1, s2)); in stricmp()
[all …]
H A Dstrstr.c37 _strstr(s1, s2) in _strstr() argument
38 register char *s1, *s2; in _strstr()
46 return (s1);
48 while (strlen(s1) >= s2len) {
49 if (strncmp(s1, s2, s2len) == 0)
50 return (s1);
51 s1++;
/titanic_44/usr/src/lib/libc/port/i18n/
H A Dwsncpy.c41 wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n) in wcsncpy() argument
43 wchar_t *os1 = s1; in wcsncpy()
46 while (--n > 0 && (*s1++ = *s2++) != 0) in wcsncpy()
50 *s1++ = 0; in wcsncpy()
55 wsncpy(wchar_t *s1, const wchar_t *s2, size_t n) in wsncpy() argument
57 return (wcsncpy(s1, s2, n)); in wsncpy()
65 wcpncpy(wchar_t *s1, const wchar_t *s2, size_t n) in wcpncpy() argument
67 wchar_t *os1 = s1; in wcpncpy()
71 if ((*s1++ = *s2++) == 0) { in wcpncpy()
72 os1 = s1 - 1; in wcpncpy()
[all …]
H A Dwscpy.c45 wcscpy(wchar_t *s1, const wchar_t *s2) in wcscpy() argument
47 wchar_t *os1 = s1; in wcscpy()
49 while (*s1++ = *s2++) in wcscpy()
55 wscpy(wchar_t *s1, const wchar_t *s2) in wscpy() argument
57 return (wcscpy(s1, s2)); in wscpy()
61 wcpcpy(wchar_t *s1, const wchar_t *s2) in wcpcpy() argument
63 while (*s1++ = *s2++) in wcpcpy()
65 return (s1 - 1); in wcpcpy()
H A Dwsncat.c46 wcsncat(wchar_t *s1, const wchar_t *s2, size_t n) in wcsncat() argument
48 wchar_t *os1 = s1; in wcsncat()
50 while (*s1++) /* find end of s1 */ in wcsncat()
53 --s1; in wcsncat()
54 while (*s1++ = *s2++) /* copy s2 to s1 */ in wcsncat()
56 *--s1 = 0; in wcsncat()
63 wsncat(wchar_t *s1, const wchar_t *s2, size_t n) in wsncat() argument
65 return (wcsncat(s1, s2, n)); in wsncat()
H A Dwcswcs.c44 const wchar_t *s1, *s2; in wcswcs() local
48 s1 = ws1; in wcswcs()
52 return ((wchar_t *)s1); in wcswcs()
55 while (*s1) in wcswcs()
56 if (*s1++ == c) { in wcswcs()
57 tptr = s1; in wcswcs()
58 while ((c = *++s2) == *s1++ && c) in wcswcs()
62 s1 = tptr; in wcswcs()
H A Dwscmp.c44 wcscmp(const wchar_t *s1, const wchar_t *s2) in wcscmp() argument
46 if (s1 == s2) in wcscmp()
49 while (*s1 == *s2++) in wcscmp()
50 if (*s1++ == 0) in wcscmp()
52 return (*s1 - *(s2 - 1)); in wcscmp()
56 wscmp(const wchar_t *s1, const wchar_t *s2) in wscmp() argument
58 return (wcscmp(s1, s2)); in wscmp()
H A Dwscat.c45 wcscat(wchar_t *s1, const wchar_t *s2) in wcscat() argument
47 wchar_t *os1 = s1; in wcscat()
49 while (*s1++) /* find end of s1 */ in wcscat()
51 --s1; in wcscat()
52 while (*s1++ = *s2++) /* copy s2 to s1 */ in wcscat()
58 wscat(wchar_t *s1, const wchar_t *s2) in wscat() argument
60 return (wcscat(s1, s2)); in wscat()
/titanic_44/usr/src/common/util/
H A Dstring.c353 strcat(char *s1, const char *s2) in strcat() argument
355 char *os1 = s1; in strcat()
357 while (*s1++ != '\0') in strcat()
359 s1--; in strcat()
360 while ((*s1++ = *s2++) != '\0') in strcat()
376 strcmp(const char *s1, const char *s2) in strcmp() argument
378 while (*s1 == *s2++) in strcmp()
379 if (*s1++ == '\0') in strcmp()
381 return (*(unsigned char *)s1 - *(unsigned char *)--s2); in strcmp()
385 strncmp(const char *s1, const char *s2, size_t n) in strncmp() argument
[all …]
H A Dmemstr.c42 memmove(void *s1, const void *s2, size_t n) in memmove() argument
45 bcopy(s2, s1, n); in memmove()
47 ovbcopy(s2, s1, n); in memmove()
49 return (s1); in memmove()
68 memcmp(const void *s1, const void *s2, size_t n) in memcmp() argument
70 const uchar_t *ps1 = s1; in memcmp()
73 if (s1 != s2 && n != 0) { in memcmp()
85 memcpy(void *s1, const void *s2, size_t n) in memcpy() argument
87 bcopy(s2, s1, n); in memcpy()
88 return (s1); in memcpy()
/titanic_44/usr/src/lib/libc/i386/gen/
H A Dstrcmp.c69 int *s1, *s2; in strcmp() local
113 s1 = (void *) str1; in strcmp()
132 --s1; in strcmp()
136 s1 -= 2; in strcmp()
140 s1 -= 3; in strcmp()
147 str1 = (void *) s1; in strcmp()
166 i1 = s1[0]; in strcmp()
174 i1 = s1[1]; in strcmp()
182 i1 = s1[2]; in strcmp()
190 i1 = s1[3]; in strcmp()
[all …]
/titanic_44/usr/src/lib/libc/sparcv9/gen/
H A Dascii_strcasecmp.s128 subcc %i0, %i1, %i2 ! s1 == s2 ?
130 andcc %i0, 3, %i3 ! s1 word-aligned ?
155 ldub [%i1 + %i2], %i0 ! s1[1]
159 cmp %l0, ('Z' - 'A') ! s1[1] uppercase?
161 add %i0, ('a' - 'A'), %i0 ! s1[1] = tolower(s1[1])
167 subcc %i0, %g1, %i0 ! tolower(s1[1]) != tolower(s2[1]) ?
169 inc %i1 ! s1++, s2++
170 addcc %i0, %g1, %i0 ! s1[1] == 0 ?
172 cmp %i3, 2 ! s1 aligned now?
194 ba .s1aligned4 ! s1 aligned now
[all …]
/titanic_44/usr/src/cmd/lp/lib/lp/
H A Dcs_strcmp.c38 char * s1, in cs_strcmp() argument
42 cs_strcmp(s1, s2) in cs_strcmp()
43 register char *s1, *s2; in cs_strcmp()
47 if(s1 == s2)
49 while(toupper(*s1) == toupper(*s2++))
50 if(*s1++ == '\0')
52 return(toupper(*s1) - toupper(*--s2));
H A Dcs_strncmp.c39 char * s1, in cs_strncmp() argument
44 cs_strncmp(s1, s2, n) in cs_strncmp()
45 register char *s1, *s2; in cs_strncmp()
49 if(s1 == s2)
51 while(--n >= 0 && toupper(*s1) == toupper(*s2++))
52 if(*s1++ == '\0')
54 return((n < 0)? 0: (toupper(*s1) - toupper(*--s2)));
H A DSyscalls.c196 char * s1, in _Link() argument
200 _Link (s1, s2) in _Link()
201 char * s1; in _Link()
207 while ((n = link(s1, s2)) == -1 && errno == EINTR)
297 char * s1, in _Readlink() argument
302 _Readlink (s1, s2, j) in _Readlink()
303 char * s1; in _Readlink()
310 while ((n = readlink(s1, s2, j)) == -1 && errno == EINTR)
318 char * s1, in _Rename() argument
322 _Rename (s1, s2) in _Rename()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/chat/
H A Dchat.c679 register char *s1, *phchar; local
687 s1 = temp;
693 *s1++ = '^';
698 *s1++ = cur_chr;
711 *s1++ = *phchar++;
716 *s1++ = cur_chr;
723 *s1++ = '\\';
724 *s1++ = '\\';
731 *s1++ = '\b';
738 *s1++ = cur_chr;
[all …]
/titanic_44/usr/src/lib/libc/sparc/gen/
H A Dascii_strcasecmp.s128 subcc %i0, %i1, %i2 ! s1 == s2 ?
130 andcc %i0, 3, %i3 ! s1 word-aligned ?
155 ldub [%i1 + %i2], %i0 ! s1[1]
159 cmp %l0, ('Z' - 'A') ! s1[1] uppercase?
161 add %i0, ('a' - 'A'), %i0 ! s1[1] = tolower(s1[1])
167 subcc %i0, %g1, %i0 ! tolower(s1[1]) != tolower(s2[1]) ?
169 inc %i1 ! s1++, s2++
170 addcc %i0, %g1, %i0 ! s1[1] == 0 ?
172 cmp %i3, 2 ! s1 aligned now?
194 ba .s1aligned4 ! s1 aligned now
[all …]
/titanic_44/usr/src/cmd/tr/
H A Dtr.c51 STR s1 = { STRING1, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL }; variable
142 delete = setup(argv[0], &s1, cflag, Cflag); in main()
164 delete = setup(argv[0], &s1, cflag, Cflag); in main()
179 squeeze = setup(argv[0], &s1, cflag, Cflag); in main()
207 s1.str = argv[0]; in main()
226 while (next(&s1)) { in main()
228 if (s1.state == CCLASS_LOWER && in main()
230 s1.cnt == 1 && s2.cnt == 1) { in main()
232 ch = towupper(s1.lastch); in main()
233 (void) cmap_add(map, s1.lastch, ch); in main()
[all …]
/titanic_44/usr/src/cmd/sh/
H A Dexpand.c211 unsigned char *s1, *s2; in addg() local
217 s1 = as1; in addg()
219 while (c = *s1++) { in addg()
228 if (as4 + 1 == s1) { in addg()
235 s1 = as2; in addg()
237 if ((len = mbtowc(&wc, (char *)s1, MB_LEN_MAX)) <= 0) { in addg()
239 wc = (unsigned char)*s1; in addg()
245 *s2 = *s1++; in addg()
254 s1++; in addg()
259 memcpy(s2, s1, len); in addg()
[all …]
/titanic_44/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.strtok.d88 string s1; member
97 command[i].s1 = "";
102 command[i].s1 = "foo";
104 command[i].result = command[i].s1;
107 command[i].s1 = "foobar";
112 command[i].s1 = "oobar";
117 command[i].s1 = "foo";
119 command[i].result = command[i].s1;
122 command[i].s1 = "";
133 (this->result = strtok(command[i].s1, command[i].s2)) != command[i].result/
[all …]

12345678910>>...20