/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | mime.c | 154 for (; isspace(*s); s++); in mimeset() 155 if (*s && *s != '#') in mimeset() 288 char* s; in mimeload() local 316 sfwrite(mp->buf, s, e - s); in mimeload() 479 for (s = pp->next; isspace(*s) && *s != '\n'; s++); in arg() 480 if (!*s || *s == '\n') in arg() 532 for (s--; s > pp->name.data && isspace(*(s - 1)); s--); in arg() 570 for (t = s; *s && *s != e; s++); in expand() 597 for (t = s; *s && *s != '}'; s++); in expand() 648 if (s = expand(mp, s, name, type, opts)) in mimeview() [all …]
|
H A D | conformance.c | 127 if (!s) in conformance() 128 s = dflt[1]; in conformance() 131 e = s + n; in conformance() 132 if (*s == '(') in conformance() 133 s++; in conformance() 136 while (s < e && (isspace(*s) || *s == ',' || *s == '|')) in conformance() 137 s++; in conformance() 140 for (t = s; s < e && !isspace(*s) && *s != ',' && *s != '|' && *s != ')'; s++); in conformance() 141 if (s == t) in conformance() 147 if (s < e) in conformance() [all …]
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | deflate.h | 274 #define put_byte(s, c) {s->pending_buf[s->pending++] = (Bytef)(c);} argument 282 #define MAX_DIST(s) ((s)->w_size-MIN_LOOKAHEAD) argument 321 s->sym_buf[s->sym_next++] = 0; \ 322 s->sym_buf[s->sym_next++] = 0; \ 323 s->sym_buf[s->sym_next++] = cc; \ 325 flush = (s->sym_next == s->sym_end); \ 330 s->sym_buf[s->sym_next++] = dist; \ 331 s->sym_buf[s->sym_next++] = dist >> 8; \ 332 s->sym_buf[s->sym_next++] = len; \ 336 flush = (s->sym_next == s->sym_end); \ [all …]
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | charsets.c | 81 char c, *s; in unpercent() local 87 for (s = component; (c = *s) != 0; s++) { in unpercent() 90 if ((hi = xtoi(s[1])) > 15 || (lo = xtoi(s[2])) > 15) in unpercent() 99 memmove(s+1, s+3, strlen(s+3) + 1); in unpercent() 208 CFStringRef s; in convert_wincs_to_utf8() local 234 CFRelease(s); in convert_wincs_to_utf8() 240 CFRelease(s); in convert_wincs_to_utf8() 243 CFRelease(s); in convert_wincs_to_utf8() 258 CFStringRef s; in convert_utf8_to_wincs() local 276 CFRelease(s); in convert_utf8_to_wincs() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | fmtmsglib.c | 104 if ((s = getenv(MM_SEVERITY_ENV)) && *s) 106 e = s; 110 switch (*s++) 145 strcpy(s, e); 149 p->name = s; 153 switch (*s++) 204 register char* s; 235 s = t; 250 s = ++t; 266 strcpy(lab, s); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathkey.c | 191 ver[1] = k = (s = strrchr(path, '/')) ? s + 1 : path; in pathkey_20100601() 192 s = buf; in pathkey_20100601() 215 *s++ = c; in pathkey_20100601() 217 *s = 0; in pathkey_20100601() 221 for (k = *p; *k && *k == *s; k++, s++); in pathkey_20100601() 227 for (t = k; *t && *t != '=' && *t++ == *s; s++); in pathkey_20100601() 228 if (*t == '=' && (!*s || (s - ver[c]) > 1)) in pathkey_20100601() 237 s = buf; in pathkey_20100601() 248 for (k = *p; *k && *k == *s; k++, s++); in pathkey_20100601() 249 if (*k == '=' && (!*s || *s == ':' || *s == ' ')) in pathkey_20100601() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/acpi/ |
H A D | acmacros.h | 211 #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ argument 249 #define ACPI_MOVE_16_TO_16(d, s) *(UINT16 *)(void *)(d) = *(UINT16 *)(void *)(s) argument 250 #define ACPI_MOVE_16_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT16 *)(void *)(s) argument 251 #define ACPI_MOVE_16_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT16 *)(void *)(s) argument 256 #define ACPI_MOVE_32_TO_32(d, s) *(UINT32 *)(void *)(d) = *(UINT32 *)(void *)(s) argument 257 #define ACPI_MOVE_32_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT32 *)(void *)(s) argument 263 #define ACPI_MOVE_64_TO_64(d, s) *(UINT64 *)(void *)(d) = *(UINT64 *)(void *)(s) argument 439 #define ACPI_IS_ALIGNED(a, s) (((a) & ((s) - 1)) == 0) argument 571 #define ACPI_ERROR_METHOD(s, n, p, e) AcpiUtMethodError (AE_INFO, s, n, p, e); argument 575 #define ACPI_ERROR_ONLY(s) s argument [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPParseSrvURL.c | 213 s[i] == '/' || s[i] == ':' || s[i] == '-' || in checkURLString() 214 s[i] == ':' || s[i] == '.' || s[i] == '%' || in checkURLString() 215 s[i] == '_' || s[i] == '\''|| s[i] == '*' || in checkURLString() 216 s[i] == '(' || s[i] == ')' || s[i] == '$' || in checkURLString() 217 s[i] == '!' || s[i] == ',' || s[i] == '+' || in checkURLString() 218 s[i] == '\\'|| s[i] == ';' || s[i] == '@' || in checkURLString() 219 s[i] == '?' || s[i] == '&' || s[i] == '=') in checkURLString() 233 s[i] != '-' && in validateTypeChars() 234 s[i] != '+' && in validateTypeChars() 235 s[i] != '.' && in validateTypeChars() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/gnu/ |
H A D | funstack.awk | 621 return (substr(s,1,n) arg html_fonts(substr(s,k))) 625 return (s) 912 s = "" 914 s = s ((k > 1) ? "$" : "") \ 920 return (s) 930 return (s) 947 s = html_accents(s) 948 s = html_fonts(s) 960 return (s) 964 function trim(s) [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | var.c | 41 s = string; 43 if (*s == '{') { 44 s++; 58 line, *s); 76 free(s); 91 for (s = oldstring; *s != '\0'; s++) 93 *s = '\0'; 94 s++; 96 switch (*s) 99 bcopy(s, s - 1, strlen(s)); [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_util.c | 238 char *s; in sdup() local 354 char *s; in lastChar() local 368 void *s; in appendString2SingleVal() local 596 for (s = 0; (s < len) && (addr[s] == ' ' || addr[s] == '\t'); s++); in checkIPaddress() 732 if (*s == '#' || *s == ',' || *s == '+' || *s == '"' || in escapeSpecialChars() 733 *s == '\\' || *s == '<' || *s == '>' || *s == ';') in escapeSpecialChars() 745 if (*s == '#' || *s == ',' || *s == '+' || *s == '"' || in escapeSpecialChars() 746 *s == '\\' || *s == '<' || *s == '>' || *s == ';') in escapeSpecialChars() 776 for (d = s; s < end; s++, d++) { in removeEscapeChars() 785 for (; s < end; s++) { in removeEscapeChars() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/ |
H A D | msgcvt.c | 52 #define SPACE(s) (isspace(*s)&&(s+=1)||*s=='\\'&&(*(s+1)=='n'||*(s+1)=='t')&&(s+=2)) argument 467 c = *s++; in msg2html() 469 s--; in msg2html() 472 s++; in msg2html() 513 s--; in msg2html() 529 s--; in msg2html() 540 s = ""; in msg2html() 582 s--; in msg2html() 601 if (*s == 'a' || *s == 'b' || *s == '0') in msg2html() 624 while (isspace(*s) || *s == '\\' && (*(s + 1) == 'n' || *(s + 1) == 't') && s++) in msg2html() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | sincospi.c | 106 *s = 0.0; in sincospi() 110 *s = 0.0; in sincospi() 113 *s = -0.0; in sincospi() 118 *s = 0.0; in sincospi() 121 *s = 1.0; in sincospi() 125 *s = -*s; in sincospi() 155 *s = 0.0; in sincospi() 158 *s = 1.0; in sincospi() 163 *s = -*s; in sincospi() 174 *s = -*s; in sincospi() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | sset.h | 24 extern void sset_free(struct sset *s); 29 s->nbr = 0; in sset_reset() 34 unsigned int __idx = idx - s->off; in sset_add() 35 unsigned int n = s->nbr++; in sset_add() 36 s->sets[__idx] = n; in sset_add() 37 s->sets[s->size + n] = __idx; in sset_add() 42 unsigned int __idx = idx - s->off; in sset_test() 43 unsigned int n = s->sets[__idx]; in sset_test() 45 return (n < s->nbr) && (s->sets[s->size + n] == __idx); in sset_test() 50 if (sset_test(s, idx)) in sset_testset() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/ |
H A D | chat.c | 258 char *s; in copy_of() 260 return dup_mem (s, strlen (s) + 1); 851 if (s) 852 str = s; 897 char *s; in chat_expect() 1014 s = clean(s, 1); 1015 write(2, s, strlen(s)); 1273 s = clean(s, 1); 1293 c = *s++; 1343 write(2, s, strlen(s)); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | uname.c | 257 register char* s; in b_uname() local 329 if (!streq(argv[0], s) && (!eaccess(s, X_OK) || !eaccess(s+=4, X_OK))) in b_uname() 331 argv[0] = s; in b_uname() 377 s = buf; in b_uname() 389 s = ut.nodename; in b_uname() 398 s = ut.machine; in b_uname() 416 if (!*s) in b_uname() 459 s = ut.m_type; in b_uname() 465 s = ut.base_rel; in b_uname() 490 s = t = last; in b_uname() [all …]
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | fmaf.c | 47 unsigned u, s; in __fmaf() local 77 if (u & (s - 1)) in __fmaf() 78 u |= s; in __fmaf() 84 u |= s; in __fmaf() 96 if (u & (s - 1)) in __fmaf() 97 u |= s; in __fmaf() 103 u |= s; in __fmaf() 168 if (u & (s - 1)) in __fmaf() 169 u |= s; in __fmaf() 175 u |= s; in __fmaf() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfpopen.c | 64 for(s = (char*)argcmd; *s; ++s) 76 s += 1; 86 while(s[0] && !isspace(s[0])) 87 s += 1; 88 if(!s[0]) 89 *s++ = 0; 97 for(s = cmd+strlen(cmd)-1; s >= cmd; --s) 103 for(s = cmd+strlen(cmd)-1; s >= cmd+2; --s) 104 if(s[0] == '.' && s[-1] == '.' && s[-2] == '.') 124 for(s = interp+strlen(interp)-1; s >= interp; --s) [all …]
|
/illumos-gate/usr/src/common/mpi/ |
H A D | mp_gf2m.c | 75 s = tab[b >> 3 & 0x7]; l ^= s << 3; h = s >> 29; in s_bmul_1x1() 76 s = tab[b >> 6 & 0x7]; l ^= s << 6; h ^= s >> 26; in s_bmul_1x1() 77 s = tab[b >> 9 & 0x7]; l ^= s << 9; h ^= s >> 23; in s_bmul_1x1() 78 s = tab[b >> 12 & 0x7]; l ^= s << 12; h ^= s >> 20; in s_bmul_1x1() 79 s = tab[b >> 15 & 0x7]; l ^= s << 15; h ^= s >> 17; in s_bmul_1x1() 80 s = tab[b >> 18 & 0x7]; l ^= s << 18; h ^= s >> 14; in s_bmul_1x1() 81 s = tab[b >> 21 & 0x7]; l ^= s << 21; h ^= s >> 11; in s_bmul_1x1() 82 s = tab[b >> 24 & 0x7]; l ^= s << 24; h ^= s >> 8; in s_bmul_1x1() 83 s = tab[b >> 27 & 0x7]; l ^= s << 27; h ^= s >> 5; in s_bmul_1x1() 84 s = tab[b >> 30 ]; l ^= s << 30; h ^= s >> 2; in s_bmul_1x1() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/ |
H A D | sfkeyprintf.c | 64 char* s; member 91 b = ++s; in getfield() 102 if (*s) in getfield() 103 s++; in getfield() 220 value->c = s ? *s : n; in getfmt() 234 if (s) in getfmt() 239 if (s) in getfmt() 242 value->s = fmtquote(s, "$'", "'", strlen(s), 0); in getfmt() 252 s = ""; in getfmt() 310 value->s = s; in getfmt() [all …]
|
/illumos-gate/usr/src/ucbcmd/tr/ |
H A D | tr.c | 136 if(s->max) { in next() 137 if(s->last++ < s->max) in next() 139 s->max = s->last = 0; in next() 141 if(s->last && *s->p=='-') { in next() 143 s->max = nextc(s); in next() 145 s->p--; in next() 148 if(s->max < s->last) { in next() 149 s->last = s->max-1; in next() 154 return(s->last = nextc(s)); in next() 162 c = *s->p++; in nextc() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | uuid_from_string.c | 52 fromhex(const char *s, int len, int *ok) in fromhex() argument 61 h = hex2int(s[i]); in fromhex() 93 if (s == NULL || *s == '\0') { in uuid_from_string() 100 if (strlen(s) != 36) in uuid_from_string() 103 if (s[8] != '-' || s[13] != '-' || s[18] != '-' || s[23] != '-') in uuid_from_string() 106 u->time_low = fromhex(s , 8, &ok); in uuid_from_string() 107 u->time_mid = fromhex(s + 9, 4, &ok); in uuid_from_string() 108 u->time_hi_and_version = fromhex(s + 14, 4, &ok); in uuid_from_string() 110 u->clock_seq_hi_and_reserved = fromhex(s + 19, 2, &ok); in uuid_from_string() 111 u->clock_seq_low = fromhex(s + 21, 2, &ok); in uuid_from_string() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | lc.c | 190 t = s; in match() 278 s = buf; in canonical() 284 for (t = lp->code; s < e && (*s = *t++); s++); in canonical() 305 for (t = lp->code; s < e && (*s = *t++); s++); in canonical() 335 for (t = tp->code; s < e && (*s = toupper(*t++)); s++); in canonical() 357 for (; s < e && (c = *t++); s++) in canonical() 360 for (t = cp->code; s < e && (c = *t++); s++) in canonical() 372 for (t = ap->attribute->name; s < e && (*s = *t++); s++); in canonical() 544 *s = 0; in lcmake() 573 else if (streq(s, "c") || streq(s, "posix")) in lcmake() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | semaphore.c | 123 sema_impl_t *s; in sema_queue() local 147 sema_impl_t *s; in sema_dequeue() local 179 sema_impl_t *s; in sema_unsleep() local 229 sema_impl_t *s; in sema_p() local 247 s->s_count--; in sema_p() 262 sema_impl_t *s; in sema_p_sig() local 322 s->s_count--; in sema_p_sig() 334 sema_impl_t *s; in sema_v() local 345 s->s_count++; in sema_v() 346 sq = s->s_slpq; in sema_v() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regsubcomp.c | 59 s--; in regsubflags() 71 while (*s >= '0' && *s <= '9') in regsubflags() 90 s--; in regsubflags() 143 o = s; in regsubcomp() 159 r = s; in regsubcomp() 174 s++; in regsubcomp() 177 else if (*s++ == '\\' && !*s++) in regsubcomp() 190 s = r; in regsubcomp() 257 s--; in regsubcomp() 271 s++; in regsubcomp() [all …]
|