Home
last modified time | relevance | path

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

12345678910>>...21

/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_string.c43 register char *os1 = s1; in prom_strncpy()
50 *s1++ = '\0'; in prom_strncpy()
62 os1 = s1; in prom_strcpy()
63 while (*s1++ = *s2++) in prom_strcpy()
75 if (s1 == s2) in prom_strncmp()
78 if (*s1++ == '\0') in prom_strncmp()
89 while (*s1 == *s2++) in prom_strcmp()
90 if (*s1++ == '\0') in prom_strcmp()
92 return (*s1 - *--s2); in prom_strcmp()
130 char *os1 = s1; in prom_strcat()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dfmemopentest.c38 FILE *s1, *s2; in simpletest() local
45 if (s1 == NULL) { in simpletest()
53 (void) fclose(s1); in simpletest()
64 (void) fclose(s1); in simpletest()
85 FILE *s1; in updatetest() local
92 if (s1 == NULL) in updatetest()
129 FILE *s1; in writetest() local
138 if (s1 == NULL) in writetest()
149 if (s1 == NULL) { in writetest()
176 FILE *s1; in seektest() local
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Ddesignated-init.c1 struct s1 { struct
12 struct s1 s1; argument
17 struct s1 s1; member
30 .s1 = { 5, 10 },
38 .s1 = { .x = 5, .y = 10 },
46 .s1 = { 5, 10 },
54 .s1 = { .x = 5, .y = 10 },
106 .s1 = { 5, 10 }, in ret_nest1_designated_outer()
122 .s1 = { .x = 5, .y = 10 }, in ret_nest1_designated_both()
138 .s1 = { 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
49 s1 = as1; in strstr()
53 return ((char *)s1); in strstr()
57 if (c == *s1++) { in strstr()
58 tptr = s1; in strstr()
63 s1 = tptr; in strstr()
84 const char *s1, *s2; in strnstr() local
89 s1 = as1; in strnstr()
97 if (c == *s1++) { in strnstr()
99 tptr = s1; in strnstr()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwcscasecmp.c47 if (s1 == s2) in wcscasecmp_l()
51 if (*s1 == 0) in wcscasecmp_l()
53 s1++; 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()
72 if (*s1 == 0) in wcsncasecmp_l()
74 s1++; in wcsncasecmp_l()
77 return (towlower_l(*s1, loc) - towlower_l(*s2, loc)); in wcsncasecmp_l()
[all …]
/illumos-gate/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];
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/
H A D64.rv64i.s27 lwu s6, (s1)
29 ld s4, 0x7ff(s1)
30 ld s3, (s1)
35 slli s0, s1, 2
36 slli s0, s1, 63
37 srli s0, s1, 2
38 srli s0, s1, 63
39 srai s0, s1, 2
40 srai s0, s1, 63
46 addw s0, s1, s2
[all …]
H A Dtst.rv32i.s37 lb s0, 0x7ff(s1)
38 lb s1, (s1)
39 lb s2, -0x800(s1)
40 lh s3, 0x7ff(s1)
41 lh s4, (s1)
43 lw s6, 0x7ff(s1)
44 lw s7, (s1)
47 lbu s6, (s1)
50 lhu s3, (s1)
76 add s0, s1, s2
[all …]
H A D64.rv64i.out1 libdis_test: 83 eb f4 7f lwu s7,0x7ff(s1)
2 libdis_test+0x4: 03 eb 04 00 lwu s6,0x0(s1)
3 libdis_test+0x8: 83 ea 04 80 lwu s5,-0x800(s1)
4 libdis_test+0xc: 03 ba f4 7f ld s4,0x7ff(s1)
5 libdis_test+0x10: 83 b9 04 00 ld s3,0x0(s1)
6 libdis_test+0x14: 03 b9 04 80 ld s2,-0x800(s1)
10 libdis_test+0x24: 13 94 24 00 slli s0,s1,0x2
11 libdis_test+0x28: 13 94 f4 03 slli s0,s1,0x3f
12 libdis_test+0x2c: 13 d4 24 00 srli s0,s1,0x2
14 libdis_test+0x34: 13 d4 24 40 srai s0,s1,0x2
[all …]
/illumos-gate/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()
67 wchar_t *os1 = s1; in wcpncpy()
71 if ((*s1++ = *s2++) == 0) { in wcpncpy()
72 os1 = s1 - 1; in wcpncpy()
75 os1 = s1; 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()
/illumos-gate/usr/src/common/util/
H A Dstring.c388 char *os1 = s1; in strcat()
392 s1--; in strcat()
420 if (s1 == s2) in strncmp()
495 char *os1 = s1; in strcpy()
505 char *os1 = s1; in strncpy()
512 *s1++ = '\0'; in strncpy()
536 s1 = as1; in strstr()
543 while (*s1) in strstr()
545 tptr = s1; in strstr()
550 s1 = tptr; 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()
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()
/illumos-gate/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 …]
/illumos-gate/usr/src/lib/libc/sparcv9/gen/
H A Dascii_strcasecmp.s155 ldub [%i1 + %i2], %i0 ! s1[1]
161 add %i0, ('a' - 'A'), %i0 ! s1[1] = tolower(s1[1])
169 inc %i1 ! s1++, s2++
172 cmp %i3, 2 ! s1 aligned now?
194 ba .s1aligned4 ! s1 aligned now
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 …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/
H A Dchat.c681 s1 = temp;
687 *s1++ = '^';
717 *s1++ = '\\';
751 *s1++ = 'T';
762 *s1++ = 'U';
792 *s1++ = 'N';
830 *s1++ = '\r';
1036 char *s1; local
1057 char *s1; local
1088 char *s1; local
[all …]
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dascii_strcasecmp.s155 ldub [%i1 + %i2], %i0 ! s1[1]
161 add %i0, ('a' - 'A'), %i0 ! s1[1] = tolower(s1[1])
169 inc %i1 ! s1++, s2++
172 cmp %i3, 2 ! s1 aligned now?
194 ba .s1aligned4 ! s1 aligned now
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/tr/
H A Dtr.c207 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()
236 if (!next(&s1)) in main()
238 } while (s1.state == CCLASS_LOWER && s1.cnt > 1); in main()
247 s1.cnt == 1 && s2.cnt == 1) { in main()
249 ch = towlower(s1.lastch); in main()
253 if (!next(&s1)) in main()
[all …]
/illumos-gate/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()
245 *s2 = *s1++; in addg()
254 s1++; in addg()
259 memcpy(s2, s1, len); in addg()
261 s1 += len; in addg()
263 if (s1 = as3) { in addg()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A DSyscalls.c196 char * s1, in _Link() argument
200 _Link (s1, s2) in _Link()
201 char * s1; in _Link()
297 char * s1, in _Readlink() argument
303 char * s1; in _Readlink()
318 char * s1, in _Rename() argument
322 _Rename (s1, s2) in _Rename()
323 char * s1; in _Rename()
356 char * s1, in _Symlink() argument
360 _Symlink (s1, s2) in _Symlink()
[all …]
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));
/illumos-gate/usr/src/cmd/vgrind/
H A Dregexp.c37 if (*s2 - makelower(*s1)) in STRNCMP()
41 s1++; in STRNCMP()
46 if (*s2 - *s1) in STRNCMP()
47 return (*s2 - *s1); in STRNCMP()
50 s1++; in STRNCMP()
409 s1 = s; in expmatch()
429 if (*s1 == '\\') in expmatch()
433 } while (*s1++); in expmatch()
443 s1 = s; in expmatch()
459 if (*s1 == '\\') in expmatch()
[all …]

12345678910>>...21