/external/mksh/src/ |
D | shf.c | 37 static int shf_fillbuf(struct shf *); 38 static int shf_emptybuf(struct shf *, int); 44 struct shf * 47 struct shf *shf; in shf_open() local 52 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open() 53 shf->areap = ATEMP; in shf_open() 54 shf->buf = (unsigned char *)&shf[1]; in shf_open() 55 shf->bsize = bsize; in shf_open() 56 shf->flags = SHF_ALLOCS; in shf_open() 61 afree(shf, shf->areap); in shf_open() [all …]
|
D | tree.c | 29 #define tputc(c, shf) shf_putchar(c, shf); argument 30 static void ptree(struct op *, int, struct shf *); 31 static void pioact(struct shf *, int, struct ioword *); 32 static void tputC(int, struct shf *); 33 static void tputS(char *, struct shf *); 34 static void vfptreef(struct shf *, int, const char *, va_list); 42 ptree(struct op *t, int indent, struct shf *shf) in ptree() argument 55 fptreef(shf, indent, "%S ", *w++); in ptree() 57 shf_puts("#no-vars# ", shf); in ptree() 60 fptreef(shf, indent, "%S ", *w++); in ptree() [all …]
|
D | sh.h | 645 struct shf *shf; member 830 #define shf_fileno(shf) ((shf)->fd) argument 831 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd)) argument 833 int shf_getc(struct shf *); 834 int shf_putc(int, struct shf *); 836 #define shf_getc(shf) ((shf)->rnleft > 0 ? \ argument 837 (shf)->rnleft--, *(shf)->rp++ : \ 838 shf_getchar(shf)) 839 #define shf_putc(c, shf) ((shf)->wnleft == 0 ? \ argument 840 shf_putchar((c), (shf)) : \ [all …]
|
D | main.c | 336 s->u.shf = shf_open(s->file, O_RDONLY, 0, in mksh_init() 338 if (s->u.shf == NULL) { in mksh_init() 350 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in mksh_init() 356 s->u.shf->flags |= SHF_INTERRUPT; in mksh_init() 487 struct shf *shf; in include() local 492 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI | SHF_CLEXEC); in include() 493 if (shf == NULL) in include() 506 quitenv(s ? s->u.shf : NULL); in include() 537 s->u.shf = shf; in include() 540 quitenv(s->u.shf); in include() [all …]
|
D | histrap.c | 71 struct shf *shf; in c_fc() local 232 if (!(shf = tf->shf)) { in c_fc() 239 shf_fprintf(shf, "%s\n", *hp); in c_fc() 240 if (shf_close(shf) == EOF) { in c_fc() 265 if (!(shf = shf_open(tf->name, O_RDONLY, 0, 0))) { in c_fc() 272 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) { in c_fc() 279 tf->name, strerror(shf_errno(shf))); in c_fc() 280 shf_close(shf); in c_fc() 283 shf_close(shf); in c_fc()
|
D | jobs.c | 131 static struct shf *shl_j; 141 static void j_print(Job *, int, struct shf *); 1304 j_print(Job *j, int how, struct shf *shf) in j_print() argument 1321 shf_fprintf(shf, "%d\n", (int)(j->pgrp ? j->pgrp : in j_print() 1372 shf_fprintf(shf, "[%d] %c ", j->job, jobchar); in j_print() 1374 shf_fprintf(shf, "%s", filler); in j_print() 1378 shf_fprintf(shf, "%5d ", (int)p->pid); in j_print() 1383 shf_fprintf(shf, "%s%s ", in j_print() 1388 shf_fprintf(shf, "%-20s %s%s%s", buf, p->command, in j_print() 1398 shf_fprintf(shf, "%s%5d %-20s %s%s", filler, in j_print() [all …]
|
D | eval.c | 40 struct shf *shf; /* file */ member 725 while ((c = shf_getc(x.u.shf)) == 0 || c == '\n') in expand() 730 shf_ungetc(c, x.u.shf); in expand() 737 shf_close(x.u.shf); in expand() 1120 struct shf *shf; in comsub() local 1140 shf = shf_open(name = evalstr(io->name, DOTILDE), O_RDONLY, 0, in comsub() 1142 if (shf == NULL) in comsub() 1148 shf = shf_fdopen(pv[0], SHF_RD, NULL); in comsub() 1160 xp->u.shf = shf; in comsub()
|
D | lex.c | 1409 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf); in getsc_line() 1411 if (!p && shf_error(s->u.shf) && in getsc_line() 1412 shf_errno(s->u.shf) == EINTR) { in getsc_line() 1413 shf_clearerr(s->u.shf); in getsc_line() 1432 shf_flush(s->u.shf); in getsc_line() 1468 shf_fdclose(s->u.shf); in getsc_line() 1499 struct shf *shf; in set_prompt() local 1504 shf = shf_sopen(NULL, strlen(ps1) * 2, in set_prompt() 1508 shf_putchar(*ps1++, shf); in set_prompt() 1510 shf_fprintf(shf, "%d", in set_prompt() [all …]
|
D | exec.c | 1257 struct shf *volatile shf; in herein() local 1271 if (!(shf = h->shf) || (fd = open(h->name, O_RDONLY, 0)) < 0) { in herein() 1274 !shf ? "create" : "open", in herein() 1276 if (shf) in herein() 1277 shf_close(shf); in herein() 1286 quitenv(shf); in herein() 1298 shf_puts(evalstr(yylval.cp, 0), shf); in herein() 1300 shf_puts(content, shf); in herein() 1304 if (shf_close(shf) == EOF) { in herein()
|
D | funcs.c | 175 static void p_time(struct shf *, bool, long, int, int, 1987 struct shf *shf; in c_read() local 2026 shf = shf_reopen(fd, SHF_RD | SHF_INTERRUPT | can_seek(fd), shl_spare); in c_read() 2062 c = shf_getc(shf); in c_read() 2065 if (c == EOF && shf_error(shf) && in c_read() 2066 shf_errno(shf) == EINTR) { in c_read() 2075 shf_clearerr(shf); in c_read() 2124 shf_flush(shf); in c_read() 2132 shf_flush(shf); in c_read() 2138 shf_flush(shf); in c_read() [all …]
|
D | misc.c | 932 print_columns(struct shf *shf, int n, in print_columns() argument 963 shf_fprintf(shf, "%s \n", in print_columns() 983 shf_fprintf(shf, "%*s", max_col, in print_columns() 986 shf_fprintf(shf, "%*s", nspace, null); in print_columns() 989 shf_putchar('\n', shf); in print_columns()
|
/external/libvpx/vp8/common/x86/ |
D | boolcoder.cxx | 282 shf( 32 - s.w), in bool_reader() 293 cuint32 S = s << shf; in raw() 296 assert( s && s < Range && (L >> shf) < Range); in raw() 307 assert( L < (s << shf)); in raw()
|
/external/mksh/ |
D | Android.mk | 30 src/lex.c src/main.c src/misc.c src/shf.c \
|