/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_string.c | 41 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 …]
|
/illumos-gate/usr/src/test/libc-tests/tests/stdio/ |
H A D | fmemopentest.c | 38 FILE *s1, *s2; in simpletest() local 44 s1 = fmemopen(string, strlen(string) + 1, "r"); in simpletest() 45 if (s1 == NULL) { in simpletest() 53 (void) fclose(s1); in simpletest() 57 while ((c = fgetc(s1)) != EOF) in simpletest() 64 (void) fclose(s1); in simpletest() 85 FILE *s1; in updatetest() local 91 s1 = fmemopen(string, 19, "a+"); in updatetest() 92 if (s1 == NULL) in updatetest() 95 len = fwrite(" world", 1, 6, s1); in updatetest() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | designated-init.c | 1 struct s1 { struct 12 struct s1 s1; argument 17 struct s1 s1; member 21 static struct s1 s1_positional = { 5, 10 }; 22 static struct s1 s1_designated = { .x = 5, .y = 10 }; 30 .s1 = { 5, 10 }, 38 .s1 = { .x = 5, .y = 10 }, 46 .s1 = { 5, 10 }, 54 .s1 = { .x = 5, .y = 10 }, 65 static struct s1 s1_array[] = { [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strstr.c | 45 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 …]
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | wcscasecmp.c | 45 wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc) in wcscasecmp_l() argument 47 if (s1 == s2) in wcscasecmp_l() 50 while (towlower_l(*s1, loc) == towlower_l(*s2, loc)) { 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() 66 wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc) in wcsncasecmp_l() argument 68 if (s1 == s2 || n == 0) in wcsncasecmp_l() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | t-strrevcmp.c | 23 char *s1; variable 28 s1 = "equal"; 30 SM_TEST(sm_strrevcmp(s1, s2) == 0); 32 s1 = "equal"; 34 SM_TEST(sm_strrevcmp(s1, s2) > 0); 36 s1 = "qual"; 38 SM_TEST(sm_strrevcmp(s1, s2) < 0); 40 s1 = "Equal"; 42 SM_TEST(sm_strrevcmp(s1, s2) < 0); 44 s1 = "Equal"; [all …]
|
H A D | strrevcmp.c | 33 sm_strrevcasecmp(s1, s2) in sm_strrevcasecmp() argument 34 const char *s1, *s2; in sm_strrevcasecmp() 38 i1 = strlen(s1) - 1; 41 charmap[(unsigned char) s1[i1]] == 59 return (charmap[(unsigned char) s1[i1]] - 75 sm_strrevcmp(s1, s2) in sm_strrevcmp() argument 76 const char *s1, *s2; in sm_strrevcmp() 80 i1 = strlen(s1) - 1; 82 while (i1 >= 0 && i2 >= 0 && s1[i1] == s2[i2]) 99 return s1[i1] - s2[i2];
|
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/ |
H A D | tst.rv32i.s | 37 lb s0, 0x7ff(s1) 38 lb s1, (s1) 39 lb s2, -0x800(s1) 40 lh s3, 0x7ff(s1) 41 lh s4, (s1) 42 lh s5, -0x800(s1) 43 lw s6, 0x7ff(s1) 44 lw s7, (s1) 45 lw s8, -0x800(s1) 46 lbu s7, 0x7ff(s1) [all …]
|
H A D | 64.rv64i.s | 26 lwu s7, 0x7ff(s1) 27 lwu s6, (s1) 28 lwu s5, -0x800(s1) 29 ld s4, 0x7ff(s1) 30 ld s3, (s1) 31 ld s2, -0x800(s1) 35 slli s0, s1, 2 36 slli s0, s1, 63 37 srli s0, s1, 2 38 srli s0, s1, 63 [all …]
|
H A D | 64.rv64i.out | 1 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 13 libdis_test+0x30: 13 d4 f4 03 srli s0,s1,0x3f [all …]
|
H A D | tst.rv32i.out | 7 libdis_test+0x18: 03 84 f4 7f lb s0,0x7ff(s1) 8 libdis_test+0x1c: 83 84 04 00 lb s1,0x0(s1) 9 libdis_test+0x20: 03 89 04 80 lb s2,-0x800(s1) 10 libdis_test+0x24: 83 99 f4 7f lh s3,0x7ff(s1) 11 libdis_test+0x28: 03 9a 04 00 lh s4,0x0(s1) 12 libdis_test+0x2c: 83 9a 04 80 lh s5,-0x800(s1) 13 libdis_test+0x30: 03 ab f4 7f lw s6,0x7ff(s1) 14 libdis_test+0x34: 83 ab 04 00 lw s7,0x0(s1) 15 libdis_test+0x38: 03 ac 04 80 lw s8,-0x800(s1) 16 libdis_test+0x3c: 83 cb f4 7f lbu s7,0x7ff(s1) [all …]
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | wsncpy.c | 41 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 D | wscpy.c | 45 wcscpy(wchar_t *s1, const wchar_t *s2) in wcscpy() argument 47 wchar_t *os1 = s1; in wcscpy() 49 while ((*s1++ = *s2++) != 0) 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++) != 0) in wcpcpy() 65 return (s1 - 1); in wcpcpy()
|
H A D | wsncat.c | 44 wcsncat(wchar_t *s1, const wchar_t *s2, size_t n) in wcsncat() argument 46 wchar_t *os1 = s1; in wcsncat() 48 while (*s1++) /* find end of s1 */ in wcsncat() 51 --s1; in wcsncat() 52 while ((*s1++ = *s2++) != 0) /* copy s2 to s1 */ in wcsncat() 54 *--s1 = 0; in wcsncat() 61 wsncat(wchar_t *s1, const wchar_t *s2, size_t n) in wsncat() argument 63 return (wcsncat(s1, s2, n)); in wsncat()
|
H A D | wcswcs.c | 42 const wchar_t *s1, *s2; in wcswcs() local 46 s1 = ws1; in wcswcs() 50 return ((wchar_t *)s1); in wcswcs() 53 while (*s1) in wcswcs() 54 if (*s1++ == c) { in wcswcs() 55 tptr = s1; in wcswcs() 56 while ((c = *++s2) == *s1++ && c) in wcswcs() 60 s1 = tptr; in wcswcs()
|
/illumos-gate/usr/src/common/util/ |
H A D | string.c | 404 strcat(char *s1, const char *s2) in strcat() argument 406 char *os1 = s1; in strcat() 408 while (*s1++ != '\0') in strcat() 410 s1--; in strcat() 411 while ((*s1++ = *s2++) != '\0') in strcat() 427 strcmp(const char *s1, const char *s2) in strcmp() argument 429 while (*s1 == *s2++) in strcmp() 430 if (*s1++ == '\0') in strcmp() 432 return (*(unsigned char *)s1 - *(unsigned char *)--s2); in strcmp() 436 strncmp(const char *s1, const char *s2, size_t n) in strncmp() argument [all …]
|
H A D | memstr.c | 42 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/sparcv9/gen/ |
H A D | ascii_strcasecmp.S | 128 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 …]
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | strcmp.c | 67 int *s1, *s2; in strcmp() local 111 s1 = (void *) str1; in strcmp() 130 --s1; in strcmp() 134 s1 -= 2; in strcmp() 138 s1 -= 3; in strcmp() 145 str1 = (void *) s1; in strcmp() 164 i1 = s1[0]; in strcmp() 172 i1 = s1[1]; in strcmp() 180 i1 = s1[2]; in strcmp() 188 i1 = s1[3]; in strcmp() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/ |
H A D | chat.c | 673 register char *s1, *phchar; local 681 s1 = temp; 687 *s1++ = '^'; 692 *s1++ = cur_chr; 705 *s1++ = *phchar++; 710 *s1++ = cur_chr; 717 *s1++ = '\\'; 718 *s1++ = '\\'; 725 *s1++ = '\b'; 732 *s1++ = cur_chr; [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | ascii_strcasecmp.S | 128 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 …]
|
/illumos-gate/usr/src/cmd/tr/ |
H A D | tr.c | 51 STR s1 = { STRING1, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL }; variable 143 delete = setup(argv[0], &s1, cflag, Cflag); in main() 165 delete = setup(argv[0], &s1, cflag, Cflag); in main() 180 squeeze = setup(argv[0], &s1, cflag, Cflag); in main() 208 s1.str = argv[0]; in main() 227 while (next(&s1)) { in main() 229 if (s1.state == CCLASS_LOWER && in main() 231 s1.cnt == 1 && s2.cnt == 1) { in main() 233 ch = towupper(s1.lastch); in main() 234 (void) cmap_add(map, s1.lastch, ch); in main() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | Syscalls.c | 196 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 …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | expand.c | 210 unsigned char *s1, *s2; in addg() local 216 s1 = as1; in addg() 218 while (c = *s1++) { in addg() 227 if (as4 + 1 == s1) { in addg() 234 s1 = as2; in addg() 236 if ((len = mbtowc(&wc, (char *)s1, MB_LEN_MAX)) <= 0) { in addg() 238 wc = (unsigned char)*s1; in addg() 244 *s2 = *s1++; in addg() 253 s1++; in addg() 258 memcpy(s2, s1, len); in addg() [all …]
|
/illumos-gate/usr/src/cmd/vgrind/ |
H A D | regexp.c | 31 STRNCMP(char *s1, char *s2, int len) in STRNCMP() argument 35 if (*s2 - makelower(*s1)) in STRNCMP() 36 return (*s2 - makelower(*s1)); in STRNCMP() 39 s1++; in STRNCMP() 44 if (*s2 - *s1) in STRNCMP() 45 return (*s2 - *s1); in STRNCMP() 48 s1++; in STRNCMP() 318 char *ptr, *s1; /* temporary pointer */ in expmatch() local 408 s1 = s; in expmatch() 410 ptr = expmatch (s1, MNEXT(cs), mstring); in expmatch() [all …]
|