/titanic_41/usr/src/cmd/sh/ |
H A D | expand.c | 65 unsigned char *s2 = 0; in expand() local 140 s2 = cpystak(s); in expand() 141 trim(s2); in expand() 142 s = s2; in expand() 152 if (s2) in expand() 211 unsigned char *s1, *s2; in addg() local 216 s2 = locstak() + BYTESPERWORD; in addg() 220 if (s2 >= brkend) in addg() 221 growstak(s2); in addg() 222 *s2++ = c; in addg() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | strstr.c | 45 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() 59 while ((c = *++s2) == *s1++ && c != '\0') in strstr() 64 s2 = as2; in strstr() 65 c = *s2; in strstr() 84 const char *s1, *s2; in strnstr() local 90 s2 = as2; in strnstr() 92 if (s2 == NULL || *s2 == '\0') in strnstr() [all …]
|
/titanic_41/usr/src/cmd/sendmail/libsm/ |
H A D | t-strrevcmp.c | 26 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 D | strrevcmp.c | 35 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];
|
/titanic_41/usr/src/lib/libc/port/locale/ |
H A D | wcscasecmp.c | 44 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() 53 s2++; 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() 70 while ((towlower_l(*s1, loc) == towlower_l(*s2, loc)) && n--) { in wcsncasecmp_l() [all …]
|
/titanic_41/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 46 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() 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() 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() [all …]
|
/titanic_41/usr/src/cmd/tr/ |
H A D | tr.c | 52 STR s2 = { STRING2, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL }; variable 143 squeeze = setup(argv[1], &s2, 0, 0); in main() 211 if ((s2.str = strdup(argv[1])) == NULL) in main() 214 s2.str = argv[1]; in main() 216 if (!next(&s2)) in main() 229 s2.state == CCLASS_UPPER && in main() 230 s1.cnt == 1 && s2.cnt == 1) { in main() 241 if (!next(&s2)) in main() 243 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main() 246 s2.state == CCLASS_LOWER && in main() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | stricmp.c | 55 strcasecmp(char *s1, char *s2) in strcasecmp() argument 59 while (cm[*s1] == cm[*s2++]) 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() 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() 86 strnicmp(char *s1, char *s2, int n) in strnicmp() argument 88 return (strncasecmp(s1, s2, n)); in strnicmp()
|
H A D | getenv.c | 58 nvmatch(s1, s2) in nvmatch() argument 59 register char *s1, *s2; in nvmatch() 61 while(*s1 == *s2++) 63 return(s2); 64 if(*s1 == '\0' && *(s2-1) == '=') 65 return(s2);
|
/titanic_41/usr/src/lib/libc/i386/gen/ |
H A D | strcmp.c | 69 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 …]
|
/titanic_41/usr/src/lib/libc/port/i18n/ |
H A D | wcswcs.c | 44 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 D | wscmp.c | 44 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 D | wsncmp.c | 45 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 D | wscpy.c | 45 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()
|
/titanic_41/usr/src/common/util/ |
H A D | string.c | 356 strcat(char *s1, const char *s2) in strcat() argument 363 while ((*s1++ = *s2++) != '\0') in strcat() 379 strcmp(const char *s1, const char *s2) in strcmp() argument 381 while (*s1 == *s2++) in strcmp() 384 return (*(unsigned char *)s1 - *(unsigned char *)--s2); in strcmp() 388 strncmp(const char *s1, const char *s2, size_t n) in strncmp() argument 390 if (s1 == s2) in strncmp() 393 while (--n != 0 && *s1 == *s2++) in strncmp() 396 return ((n == 0) ? 0 : *(unsigned char *)s1 - *(unsigned char *)--s2); in strncmp() 435 strcasecmp(const char *s1, const char *s2) in strcasecmp() 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() 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()
|
/titanic_41/usr/src/cmd/lp/lib/lp/ |
H A D | Syscalls.c | 197 char * s2 in _Link() argument 200 _Link (s1, s2) in _Link() 202 char * s2; 207 while ((n = link(s1, s2)) == -1 && errno == EINTR) 298 char * s2, in _Readlink() argument 302 _Readlink (s1, s2, j) in _Readlink() 304 char * s2; 310 while ((n = readlink(s1, s2, j)) == -1 && errno == EINTR) 319 char * s2 in _Rename() argument 322 _Rename (s1, s2) in _Rename() [all …]
|
H A D | cs_strcmp.c | 39 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 D | cs_strncmp.c | 40 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)));
|
/titanic_41/usr/src/lib/libgen/common/ |
H A D | strfind.c | 43 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()
|
/titanic_41/usr/src/common/net/wanboot/crypt/ |
H A D | aes.c | 759 uint32_t s0, s1, s2, s3, t0, t1, t2, t3; in aes_encrypt() local 776 s2 = GETU32(block + 8) ^ rk[2]; in aes_encrypt() 788 s2 = (((uint32_t)block[8] << 24) | ((uint32_t)block[9] << 16) | in aes_encrypt() 806 ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff]) in aes_encrypt() 807 #define tsr1 (Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] \ in aes_encrypt() 809 #define tsr2 (Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] \ in aes_encrypt() 812 ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff]) in aes_encrypt() 830 s2 = ssr2 ^ rk[10]; in aes_encrypt() 840 s2 = ssr2 ^ rk[18]; in aes_encrypt() 850 s2 = ssr2 ^ rk[26]; in aes_encrypt() [all …]
|
/titanic_41/usr/src/lib/libc/sparcv9/gen/ |
H A D | ascii_strcasecmp.s | 128 subcc %i0, %i1, %i2 ! s1 == s2 ? 156 ldub [%i1], %g1 ! s2[1] 163 cmp %l1, ('Z' - 'A') ! s2[1] uppercase? 165 add %g1, ('a' - 'A'), %g1 ! s2[1] = tolower(s2[1]) 167 subcc %i0, %g1, %i0 ! tolower(s1[1]) != tolower(s2[1]) ? 169 inc %i1 ! s1++, s2++ 195 andcc %i1, 3, %i3 ! s2 word-aligned ? 207 andcc %i1, 3, %i3 ! s2 word aligned ? 212 bz .word4 ! yup, s2 word-aligned 215 add %i2, %i3, %i2 ! start adjusting offset s1-s2 [all …]
|
/titanic_41/usr/src/lib/libc/sparc/gen/ |
H A D | ascii_strcasecmp.s | 128 subcc %i0, %i1, %i2 ! s1 == s2 ? 156 ldub [%i1], %g1 ! s2[1] 163 cmp %l1, ('Z' - 'A') ! s2[1] uppercase? 165 add %g1, ('a' - 'A'), %g1 ! s2[1] = tolower(s2[1]) 167 subcc %i0, %g1, %i0 ! tolower(s1[1]) != tolower(s2[1]) ? 169 inc %i1 ! s1++, s2++ 195 andcc %i1, 3, %i3 ! s2 word-aligned ? 207 andcc %i1, 3, %i3 ! s2 word aligned ? 212 bz .word4 ! yup, s2 word-aligned 215 add %i2, %i3, %i2 ! start adjusting offset s1-s2 [all …]
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | utility.c | 47 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);
|
/titanic_41/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.strtok.d | 89 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,
|