Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/cmd/sh/
H A Dexpand.c141 trim(s2); in expand()
142 s = s2; in expand()
152 if (s2) in expand()
222 *s2++ = c; in addg()
231 *s2++ = '/'; in addg()
242 growstak(s2); in addg()
245 *s2 = *s1++; in addg()
250 *s2++ = '\\'; in addg()
253 *s2++ = '\\'; in addg()
260 s2 += len; in addg()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Ddesignated-init.c6 struct s2 { struct
13 struct s2 s2; argument
18 struct s2 s2; member
31 .s2 = { 5, 10 },
39 .s2 = { .x = 5, .y = 10 },
47 .s2 = { 5, 10 },
55 .s2 = { .x = 5, .y = 10 },
107 .s2 = { 5, 10 }, in ret_nest1_designated_outer()
123 .s2 = { .x = 5, .y = 10 }, in ret_nest1_designated_both()
139 .s2 = { 5, 10 }, in ret_nest2_designated_outer()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrstr.c45 const char *s1, *s2; in strstr() local
50 s2 = as2; in strstr()
52 if (s2 == NULL || *s2 == '\0') in strstr()
55 c = *s2; in strstr()
64 s2 = as2; in strstr()
65 c = *s2; in strstr()
90 s2 = as2; in strnstr()
92 if (s2 == NULL || *s2 == '\0') in strnstr()
95 c = *s2; in strnstr()
105 s2 = as2; in strnstr()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-strrevcmp.c26 char *s2; variable
31 s2 = "equal";
32 SM_TEST(sm_strrevcmp(s1, s2) == 0);
35 s2 = "qual";
36 SM_TEST(sm_strrevcmp(s1, s2) > 0);
39 s2 = "equal";
40 SM_TEST(sm_strrevcmp(s1, s2) < 0);
43 s2 = "equal";
44 SM_TEST(sm_strrevcmp(s1, s2) < 0);
47 s2 = "equal";
[all …]
H A Dstrrevcmp.c35 sm_strrevcasecmp(s1, s2) in sm_strrevcasecmp() argument
36 const char *s1, *s2; in sm_strrevcasecmp()
41 i2 = strlen(s2) - 1;
44 charmap[(unsigned char) s2[i2]])
62 charmap[(unsigned char) s2[i2]]);
77 sm_strrevcmp(s1, s2) in sm_strrevcmp() argument
78 const char *s1, *s2; in sm_strrevcmp()
83 i2 = strlen(s2) - 1;
84 while (i1 >= 0 && i2 >= 0 && s1[i1] == s2[i2])
101 return s1[i1] - s2[i2];
H A Dstrcasecmp.c72 sm_strcasecmp(s1, s2) in sm_strcasecmp() argument
73 const char *s1, *s2; in sm_strcasecmp()
76 const unsigned char *us2 = (const unsigned char *)s2;
89 sm_strncasecmp(s1, s2, n) in sm_strncasecmp() argument
90 const char *s1, *s2; in sm_strncasecmp()
97 register const unsigned char *us2 = (const unsigned char *)s2;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwcscasecmp.c47 if (s1 == s2) in wcscasecmp_l()
50 while (towlower_l(*s1, loc) == towlower_l(*s2, loc)) { in wcscasecmp_l()
54 s2++; in wcscasecmp_l()
56 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcscasecmp_l()
60 wcscasecmp(const wchar_t *s1, const wchar_t *s2) in wcscasecmp() argument
62 return (wcscasecmp_l(s1, s2, uselocale(NULL))); in wcscasecmp()
68 if (s1 == s2 || n == 0) in wcsncasecmp_l()
75 s2++; in wcsncasecmp_l()
77 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcsncasecmp_l()
81 wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) in wcsncasecmp() argument
[all …]
/illumos-gate/usr/src/cmd/tr/
H A Dtr.c214 s2.str = argv[1]; in main()
216 if (!next(&s2)) in main()
241 if (!next(&s2)) in main()
243 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main()
258 if (!next(&s2)) in main()
260 } while (s2.state == CCLASS_LOWER && s2.cnt > 1); in main()
267 (void) next(&s2); in main()
282 s2.str = argv[1]; in main()
288 if (next(&s2)) in main()
294 if ((s2.state == EOS || s2.state == INFINITE) && in main()
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_string.c46 while (--n != 0 && (*s1++ = *s2++) != '\0') in prom_strncpy()
58 prom_strcpy(register char *s1, register char *s2) in prom_strcpy() argument
63 while (*s1++ = *s2++) in prom_strcpy()
75 if (s1 == s2) in prom_strncmp()
77 while (--n != 0 && *s1 == *s2++) in prom_strncmp()
80 return ((n == 0) ? 0: (*s1 - s2[-1])); in prom_strncmp()
87 prom_strcmp(register char *s1, register char *s2) in prom_strcmp() argument
89 while (*s1 == *s2++) in prom_strcmp()
92 return (*s1 - *--s2); in prom_strcmp()
128 prom_strcat(register char *s1, register char *s2) in prom_strcat() argument
[all …]
/illumos-gate/usr/src/lib/libc/i386/gen/
H A Dstrcmp.c69 int *s1, *s2; in strcmp() local
114 s2 = (void *) str2; in strcmp()
133 --s2; in strcmp()
137 s2 -= 2; in strcmp()
141 s2 -= 3; in strcmp()
148 str2 = (void *) s2; in strcmp()
167 i2 = s2[0]; in strcmp()
175 i2 = s2[1]; in strcmp()
183 i2 = s2[2]; in strcmp()
191 i2 = s2[3]; in strcmp()
[all …]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwcswcs.c44 const wchar_t *s1, *s2; in wcswcs() local
49 s2 = ws2; in wcswcs()
51 if (s2 == NULL || *s2 == 0) in wcswcs()
53 c = *s2; in wcswcs()
58 while ((c = *++s2) == *s1++ && c) in wcswcs()
63 s2 = ws2; in wcswcs()
64 c = *s2; 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()
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 Dwsncmp.c45 wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) in wcsncmp() argument
47 if (s1 == s2) in wcsncmp()
51 while (--n > 0 && *s1 == *s2++) in wcsncmp()
54 return ((n == 0) ? 0 : (*s1 - *(s2 - 1))); in wcsncmp()
58 wsncmp(const wchar_t *s1, const wchar_t *s2, size_t n) in wsncmp() argument
60 return (wcsncmp(s1, s2, n)); in wsncmp()
H A Dwscpy.c45 wcscpy(wchar_t *s1, const wchar_t *s2) in wcscpy() argument
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()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A DSyscalls.c197 char * s2 in _Link() argument
200 _Link (s1, s2) in _Link()
202 char * s2;
298 char * s2, in _Readlink() argument
304 char * s2;
319 char * s2 in _Rename() argument
322 _Rename (s1, s2) in _Rename()
324 char * s2;
357 char * s2 in _Symlink() argument
360 _Symlink (s1, s2) in _Symlink()
[all …]
H A Dcs_strcmp.c39 char * s2 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++))
52 return(toupper(*s1) - toupper(*--s2));
H A Dcs_strncmp.c40 char * s2, 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++))
54 return((n < 0)? 0: (toupper(*s1) - toupper(*--s2)));
/illumos-gate/usr/src/common/util/
H A Dstring.c386 strcat(char *s1, const char *s2) in strcat() argument
393 while ((*s1++ = *s2++) != '\0') in strcat()
411 while (*s1 == *s2++) in strcmp()
420 if (s1 == s2) in strncmp()
493 strcpy(char *s1, const char *s2) in strcpy() argument
532 const char *s1, *s2; in strstr() local
537 s2 = as2; in strstr()
539 if (s2 == NULL || *s2 == '\0') in strstr()
541 c = *s2; in strstr()
551 s2 = as2; in strstr()
[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()
68 memcmp(const void *s1, const void *s2, size_t n) in memcmp() argument
71 const uchar_t *ps2 = s2; 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()
/illumos-gate/usr/src/lib/libgen/common/
H A Dstrfind.c43 const char *s1, *s2; in strfind() local
48 s2 = as2; in strfind()
49 c = *s2; in strfind()
54 s2++; in strfind()
55 while ((c = *s2++) == *s1++ && c) in strfind()
60 s2 = as2; in strfind()
61 c = *s2; in strfind()
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dascii_strcasecmp.s128 subcc %i0, %i1, %i2 ! s1 == s2 ?
156 ldub [%i1], %g1 ! s2[1]
165 add %g1, ('a' - 'A'), %g1 ! s2[1] = tolower(s2[1])
169 inc %i1 ! s1++, s2++
212 bz .word4 ! yup, s2 word-aligned
258 add %i1, 4, %i1 ! s1+=4, s2+=4
299 add %i1, 4, %i1 ! s1+=4, s2+=4
315 subcc %i1, %i2, %i0 ! *s1-*s2
324 subcc %i1, %i2, %i0 ! *s1-*s2
333 subcc %i1, %i2, %i0 ! *s1-*s2
[all …]
H A Dstrcmp.s63 subcc %o0, %o1, %o2 ! s1 == s2 ?
74 ldub [%o1], %g1 ! s2[]
75 subcc %o0, %g1, %o0 ! s1[] != s2[] ?
81 inc %o1 ! s1++, s2++
84 andcc %o1, 7, %o3 ! s2 dword aligned ?
92 ldx [%o1], %o0 ! new lower dword in s2
105 ldx [%o1+8], %o0 ! next aligned word in s2
110 cmp %o3, %g1 ! *s1 != *s2 ?
112 add %o1, 8, %o1 ! s1+=8, s2+=8
130 ldx [%o1], %g1 ! load word from s2
[all …]
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dascii_strcasecmp.s128 subcc %i0, %i1, %i2 ! s1 == s2 ?
156 ldub [%i1], %g1 ! s2[1]
165 add %g1, ('a' - 'A'), %g1 ! s2[1] = tolower(s2[1])
169 inc %i1 ! s1++, s2++
212 bz .word4 ! yup, s2 word-aligned
258 add %i1, 4, %i1 ! s1+=4, s2+=4
298 add %i1, 4, %i1 ! s1+=4, s2+=4
314 subcc %i1, %i2, %i0 ! *s1-*s2
323 subcc %i1, %i2, %i0 ! *s1-*s2
332 subcc %i1, %i2, %i0 ! *s1-*s2
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dutility.c47 assert(s1, s2, i1, file, line) in assert() argument
48 char *s1, *s2, *file; in assert()
50 logError(s1, s2, i1, TY_ASSERT, file, line);
60 errent(s1, s2, i1, file, line) in errent() argument
61 char *s1, *s2, *file; in errent()
63 logError(s1, s2, i1, TY_ERROR, file, line);
70 logError(s1, s2, i1, type, file, line) in logError() argument
71 char *s1, *s2, *file; in logError()
89 Progname, (long) pid, timeStamp(), s1, s2, i1, file, line);
96 s1, s2, Progname);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.strtok.d89 string s2; member
98 command[i].s2 = "";
103 command[i].s2 = "";
108 command[i].s2 = "o";
113 command[i].s2 = "o";
118 command[i].s2 = "bar";
123 command[i].s2 = "foo";
133 (this->result = strtok(command[i].s1, command[i].s2)) != command[i].result/
136 command[i].s1, command[i].s2,

12345678910>>...19