/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | getline.h | 44 #define IS_CTRL_CHAR(c) ((unsigned char)(c) < ' ' || (unsigned char)(c)=='\177') argument 50 #define IS_META_CHAR(c) (((unsigned char)(c) & 0x80) && !isprint((int)(unsigned char)(c))) argument 56 #define MAKE_CTRL(c) ((c)=='?' ? '\177' : ((unsigned char)toupper(c) & ~0x40)) argument 62 #define MAKE_META(c) ((unsigned char)(c) | 0x80) argument 68 #define CTRL_TO_CHAR(c) (toupper((unsigned char)(c) | 0x40)) argument 74 #define META_TO_CHAR(c) ((unsigned char)(c) & ~0x80) argument
|
/illumos-gate/usr/src/psm/stand/lib/promif/sparcv9/ieee1275/sun4u/ |
H A D | Makefile | 48 prom_tlb.c 51 prom_alloc.c \ 52 prom_cpuctl.c \ 53 prom_fio.c \ 56 prom_idprom.c \ 57 prom_init.c \ 59 prom_map.c \ 60 prom_mem.c \ 61 prom_mmu.c \ 63 prom_sparc.c \ [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmword.c | 46 register int c; in tmword() local 52 while (c = *s++) in tmword() 54 if (c != '.') in tmword() 56 if (!isalpha(c) || c != *t && (islower(c) ? toupper(c) : tolower(c)) != *t) in tmword() 62 if (!isalpha(c)) in tmword() 64 if (c == '_') in tmword() 76 while (isalpha(c = *s++) && (c == *t || (islower(c) ? toupper(c) : tolower(c)) == *t)) t++; in tmword() 77 if (!*t && !isalpha(c)) in tmword() 79 if (c != '_') in tmword()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | tolower.c | 26 tolower_l(int c, locale_t loc) in tolower_l() argument 28 return (((unsigned)c > 255) ? c : loc->ctype->lc_trans_lower[c]); in tolower_l() 32 toupper_l(int c, locale_t loc) in toupper_l() argument 34 return (((unsigned)c > 255) ? c : loc->ctype->lc_trans_upper[c]); in toupper_l() 39 tolower(int c) in tolower() argument 41 return (isascii(c) ? __trans_lower[c] : tolower_l(c, uselocale(NULL))); in tolower() 46 toupper(int c) in toupper() argument 48 return (isascii(c) ? __trans_upper[c] : toupper_l(c, uselocale(NULL))); in toupper()
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | Makefile | 32 SRCS = b.c lib.c main.c parse.c run.c tran.c 37 $(SRCS:%.c=%.o) 55 CLEANFILES = proctab.c y.tab.h y.tab.c awk.h awk.g.c \ 56 tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \ 85 awk.g.c + awk.h : awk.g.y 86 $(RM) awk.g.c awk.h 88 $(MV) y.tab.c awk.g.c 91 awk.lx.c: awk.lx.l 94 tmptoken.c : tokenscript token.c 110 $(NATIVEDIR)/%.o : %.c [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppfsm.c | 642 for (c = 0; c <= MAX; c++) in ppfsm() 687 if (rp[c] >= 0) rp[c] = ~rp[c]; in ppfsm() 691 for (c = 0; c <= MAX; c++) in ppfsm() 710 do setsplice(c = *s++); while (c); in ppfsm() 746 if (rp[c] > 0) rp[c] = ~rp[c]; in ppfsm() 747 else if (!rp[c]) rp[c] = ~i; in ppfsm() 753 while (c = *s++) setsplice(c); in ppfsm() 832 fsm[QUICK][c] = fsm[QCOM][c] = fsm[QTOK][c] = n; in ppfsm() 895 c = 0; in refill() 900 c = in refill() [all …]
|
H A D | ppcall.c | 185 if ((c = *p) != '(' && c != '/' && c != 0 && c != MARK) in ppcall() 209 if (c) in ppcall() 241 c = 0; in ppcall() 256 for (c = 0; c < mac->arity; c++) in ppcall() 257 mp->arg[c] = mac->args.key[c].value + 1; in ppcall() 278 for (c = 0; c < mac->arity; c++) in ppcall() 280 c = 0; in ppcall() 286 for (c = 0; c < mac->arity; c++) in ppcall() 293 if (!c) in ppcall() 407 c++; in ppcall() [all …]
|
/illumos-gate/usr/src/cmd/sgs/lex/common/ |
H A D | parser.y | 598 while((c=gch()) && c != '\n'); 723 while(c && c!='}'){ 747 while(c != ',' && c && c != '>'){ 767 } while(c && c != '>'); 796 while((c=gch()) && c != '"' && c != '\n'){ 797 if(c == '\\') c = usescape(c=gch()); 831 while(c != ']' && c){ 839 c = usescape(c=gch()); 847 c=usescape(c=gch()); 899 c = usescape(c=gch()); [all …]
|
/illumos-gate/usr/src/cmd/valtools/ |
H A D | Makefile | 101 $(LINT.c) ckint.c $(LDLIBS) 102 $(LINT.c) ckitem.c $(LDLIBS) 103 $(LINT.c) ckpath.c $(LDLIBS) 104 $(LINT.c) ckrange.c $(LDLIBS) 105 $(LINT.c) ckstr.c $(LDLIBS) 106 $(LINT.c) ckyorn.c $(LDLIBS) 107 $(LINT.c) ckkeywd.c $(LDLIBS) 108 $(LINT.c) ckdate.c $(LDLIBS) 109 $(LINT.c) cktime.c $(LDLIBS) 110 $(LINT.c) ckuid.c $(LDLIBS) [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | setenv.c | 58 char *c; in setenv() local 67 if (strlen(c) >= l_value) { /*%< old larger; copy over */ in setenv() 68 while (*c++ = *value++); in setenv() 93 for (c = (char *)name; *c && *c != '='; ++c); /*%< no `=' in name */ in setenv() 95 malloc((size_t)((int)(c - name) + l_value + 2)))) in setenv() 97 for (c = environ[offset]; (*c = *name++) && *c != '='; ++c); in setenv() 98 for (*c++ = '='; *c++ = *value++;); in setenv() 129 char **p, *c; in findenv() local 137 for (p = environ; (c = *p) != NULL; ++p) in findenv() 138 if (strncmp(c, name, len) == 0 && c[len] == '=') { in findenv() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | head.c | 140 if (nextword(c, hl->hl_from, &c) != 0) { in parse_headline() 152 if (nextword(c, hl->hl_from, &c) != 0) { in parse_headline() 159 if (c != NULL) { in parse_headline() 201 if (!in_quotes && (*c == ' ' || *c == '\t')) { in nextword() 216 c++; in nextword() 230 } else if (*c != ' ' && *c != '\t') { in nextword() 234 *nextword = c; in nextword() 237 c++; in nextword() 266 int c; in any() local 269 c = ch; in any() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | efx_hash.c | 120 uint32_t c; in efx_hash_dwords() local 130 c += input[2]; in efx_hash_dwords() 131 EFX_HASH_MIX(a, b, c); in efx_hash_dwords() 140 c += input[2]; in efx_hash_dwords() 155 return (c); in efx_hash_dwords() 169 uint32_t c; in efx_hash_bytes() local 188 EFX_HASH_MIX(a, b, c); in efx_hash_bytes() 238 return (c); in efx_hash_bytes() 252 uint32_t c; in efx_hash_bytes() local 271 EFX_HASH_MIX(a, b, c); in efx_hash_bytes() [all …]
|
/illumos-gate/usr/src/cmd/soelim/ |
H A D | soelim.c | 58 register int c; local 73 c = getc(soee); 74 if (c == EOF) 76 if (c != '.') 78 c = getc(soee); 79 if (c != 's') { 90 while (c == ' ' || c == '\t'); 94 switch (c) { 103 *cp++ = c; 120 if (c == EOF) [all …]
|
/illumos-gate/usr/src/cmd/ed/ |
H A D | ed.c | 150 #define UNGETC(c) (peekc = c) argument 655 if ((c = getchr()) < 'a' || c > 'z') in commands() 960 if ('0' <= c && c <= '9') { in address() 1108 if (c == 'p' || c == 'l' || c == 'n') { in newline() 1127 if (c == '\n' || c == EOF) { in filename() 1154 if (c == EOF || (c == ' ' && !Xqt)) in filename() 1555 while ((c = get_wchr()) != '\n' && c != '%' && c != '\\') { in unixcom() 2055 c = c*10 + i-'0'; in compsub() 2296 for (c = 0; c < nbra; c++) { in execute() 2611 if (c == 'a' || c == 'i' || c == 'c') in globaln() [all …]
|
H A D | Makefile | 35 SRCS= ./ed.c ../expr/compile.c 60 %.po: ../expr/%.c 82 $(COMPILE.c) -o $@ ../expr/compile.c 84 edobjs.xpg4/%.o: %.c 85 $(COMPILE.c) -o $@ $< 88 $(COMPILE.c) -o $@ $< 90 edobjs.xpg6/%.o: %.c 91 $(COMPILE.c) -o $@ $< 111 $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg4.c 114 $(COMPILE.c) -o $@ ../../lib/crt/common/values-xpg6.c [all …]
|
/illumos-gate/usr/src/common/crypto/md5/ |
H A D | md5.c | 70 #define F(b, c, d) (((b) & (c)) | ((~b) & (d))) argument 71 #define G(b, c, d) (((b) & (d)) | ((c) & (~d))) argument 72 #define H(b, c, d) ((b) ^ (c) ^ (d)) argument 73 #define I(b, c, d) ((c) ^ ((b) | (~d))) argument 86 #define FF(a, b, c, d, x, s, ac) { \ argument 87 (a) += F((b), (c), (d)) + (x) + ((unsigned long long)(ac)); \ 92 #define GG(a, b, c, d, x, s, ac) { \ argument 93 (a) += G((b), (c), (d)) + (x) + ((unsigned long long)(ac)); \ 98 #define HH(a, b, c, d, x, s, ac) { \ argument 104 #define II(a, b, c, d, x, s, ac) { \ argument [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | terminfo.c | 58 char c; in ti_unescape_memory() local 64 c = *(in++); in ti_unescape_memory() 65 switch (c) in ti_unescape_memory() 79 c = *(in++); in ti_unescape_memory() 80 if (c >= '0' && c <= '9') in ti_unescape_memory() 87 c = *(in++); in ti_unescape_memory() 89 while (c >= '0' && c <= '9'); in ti_unescape_memory() 99 switch (c) in ti_unescape_memory() 141 *out++ = c; in ti_unescape_memory() 163 char c; in ti_escape_memory() local [all …]
|
/illumos-gate/usr/src/common/util/ |
H A D | strtoul.c | 63 int c; in ddi_strtoul() local 82 while (isspace(c)) in ddi_strtoul() 83 c = *++ustr; in ddi_strtoul() 84 switch (c) { in ddi_strtoul() 89 c = *++ustr; in ddi_strtoul() 93 if (c != '0') in ddi_strtoul() 104 if (!lisalnum(c) || (xx = DIGIT(c)) >= base) { in ddi_strtoul() 117 val = DIGIT(c); in ddi_strtoul() 118 for (c = *++ustr; lisalnum(c) && (xx = DIGIT(c)) < base; ) { in ddi_strtoul() 125 c = *++ustr; in ddi_strtoul() [all …]
|
H A D | strtoull.c | 65 int c; in ddi_strtoull() local 84 while (isspace(c)) in ddi_strtoull() 85 c = *++ustr; in ddi_strtoull() 86 switch (c) { in ddi_strtoull() 91 c = *++ustr; in ddi_strtoull() 95 if (c != '0') in ddi_strtoull() 106 if (!lisalnum(c) || (xx = DIGIT(c)) >= base) { in ddi_strtoull() 119 val = DIGIT(c); in ddi_strtoull() 120 for (c = *++ustr; lisalnum(c) && (xx = DIGIT(c)) < base; ) { in ddi_strtoull() 127 c = *++ustr; in ddi_strtoull() [all …]
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | sincospi.c | 102 *s = *c = x - x; in sincospi() 107 *c = 1.0; in sincospi() 111 *c = 1.0; in sincospi() 114 *c = -1.0; in sincospi() 119 *c = 1.0; in sincospi() 122 *c = 0.0; in sincospi() 126 *c = -*c; in sincospi() 156 *c = 1.0; in sincospi() 159 *c = 0.0; in sincospi() 165 *c = -*c; in sincospi() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | bootinfo32.c | 58 if (c) \ 66 if (c) \ 71 #define MOD_NAME(a, s, c) MOD_STR(MODINFO_NAME, a, s, c) argument 72 #define MOD_TYPE(a, s, c) MOD_STR(MODINFO_TYPE, a, s, c) argument 73 #define MOD_ARGS(a, s, c) MOD_STR(MODINFO_ARGS, a, s, c) argument 78 if (c) \ 83 #define MOD_ADDR(a, s, c) MOD_VAR(MODINFO_ADDR, a, s, c) argument 84 #define MOD_SIZE(a, s, c) MOD_VAR(MODINFO_SIZE, a, s, c) argument 89 if (c) \ 104 int c; in bi_copymodules32() local [all …]
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_printf.c | 48 **p = c; in _sput() 108 if (c == '\0') in _doprint() 110 if (c == '\n') in _doprint() 112 (*emit)(c, bp); in _doprint() 115 c = *fmt++; in _doprint() 117 for (pad = ' '; c == '0'; c = *fmt++) in _doprint() 120 for (width = 0; c >= '0' && c <= '9'; c = *fmt++) in _doprint() 123 for (ells = 0; c == 'l'; c = *fmt++) in _doprint() 126 switch (c) { in _doprint() 175 if (c == '\n') in _doprint() [all …]
|
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | utility.c | 170 (void) wmove(Sub(f), c -> frow, c -> fcol); in _pos_form_cursor() 197 c->fcol, c->frow, c->fcol + c->cols - 1, in _update_current() 228 c -> frow + ys - T(f), c -> fcol, in _update_current() 230 c -> fcol + c -> cols - 1, FALSE); in _update_current() 522 c = field; in _set_current_field() 524 if (!Opt(c, O_PUBLIC) || Scrollable(c)) in _set_current_field() 525 w = newwin(c -> drows, c -> dcols, 0, 0); in _set_current_field() 527 w = derwin(Sub(f), c -> rows, c -> cols, c -> frow, in _set_current_field() 533 C(f) = c; in _set_current_field() 535 wbkgdset(w, Pad(c) | Back(c)); in _set_current_field() [all …]
|
/illumos-gate/usr/src/ucbcmd/tr/ |
H A D | tr.c | 57 int c, d; in main() local 103 if(c==0) break; in main() 121 if(c = code[c&0377]&0377) in main() 122 if(!sflag || c!=save || !squeez[c&0377]) { in main() 160 int c, i, n; in nextc() local 162 c = *s->p++; in nextc() 163 if(c=='\\') { in nextc() 165 while(i<3 && (c = *s->p)>='0' && c<='7') { in nextc() 170 if(i>0) c = n; in nextc() 171 else c = *s->p++; in nextc() [all …]
|
/illumos-gate/usr/src/cmd/sort/ |
H A D | Makefile | 89 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 105 %.o : %.c 106 $(COMPILE.c) -o $@ $< 109 xpg4_%.o : %.c 110 $(COMPILE.c) -o $@ $< 113 SRCS = check.c fields.c initialize.c internal.c \ 114 main.c merge.c options.c streams.c \ 115 streams_array.c streams_mmap.c streams_stdio.c \ 116 streams_wide.c utility.c 118 POFILES = $(SRCS:.c=.po) [all …]
|