Searched defs:shf (Results 1 - 13 of 13) sorted by relevance

/external/mksh/src/
H A Dshf.c1 /* $OpenBSD: shf.c,v 1.15 2006/04/02 00:48:33 deraadt Exp $ */
27 __RCSID("$MirOS: src/bin/mksh/shf.c,v 1.56 2013/01/01 03:32:44 tg Exp $");
39 static int shf_fillbuf(struct shf *);
40 static int shf_emptybuf(struct shf *, int);
47 struct shf *
50 struct shf *shf; local
57 shf = alloc(sizeof(struct shf) + bsize, ATEMP);
58 shf
122 shf_fdopen(int fd, int sflags, struct shf *shf) argument
157 shf_reopen(int fd, int sflags, struct shf *shf) argument
191 shf_sopen(char *buf, ssize_t bsize, int sflags, struct shf *shf) argument
223 shf_close(struct shf *shf) argument
242 shf_fdclose(struct shf *shf) argument
265 shf_sclose(struct shf *shf) argument
284 shf_flush(struct shf *shf) argument
316 shf_emptybuf(struct shf *shf, int flags) argument
399 shf_fillbuf(struct shf *shf) argument
445 shf_read(char *buf, ssize_t bsize, struct shf *shf) argument
480 shf_getse(char *buf, ssize_t bsize, struct shf *shf) argument
520 shf_getchar(struct shf *shf) argument
536 shf_ungetc(int c, struct shf *shf) argument
573 shf_putchar(int c, struct shf *shf) argument
616 shf_puts(const char *s, struct shf *shf) argument
626 shf_write(const char *buf, ssize_t nbytes, struct shf *shf) argument
697 shf_fprintf(struct shf *shf, const char *fmt, ...) argument
712 struct shf shf; local
732 struct shf shf; local
759 shf_vfprintf(struct shf *shf, const char *fmt, va_list args) argument
1069 shf_getc(struct shf *shf) argument
1075 shf_putc(int c, struct shf *shf) argument
[all...]
H A Dtree.c30 static void ptree(struct op *, int, struct shf *);
31 static void pioact(struct shf *, int, struct ioword *);
32 static const char *wdvarput(struct shf *, const char *, int, int);
33 static void vfptreef(struct shf *, int, const char *, va_list);
46 ptree(struct op *t, int indent, struct shf *shf) argument
73 fptreef(shf, indent, "%S", t->vars[0]);
80 fptreef(shf, indent, "%S ", *w++);
82 shf_puts("#no-vars# ", shf);
86 fptreef(shf, inden
247 pioact(struct shf *shf, int indent, struct ioword *iop) argument
294 wdvarput(struct shf *shf, const char *wp, int quotelevel, int opmode) argument
407 fptreef(struct shf *shf, int indent, const char *fmt, ...) argument
421 struct shf shf; local
434 vfptreef(struct shf *shf, int indent, const char *fmt, va_list va) argument
443 shf_putchar(va_arg(va, int), shf); local
447 shf_puts(va_arg(va, char *), shf); local
463 ptree(va_arg(va, struct op *), indent, shf); local
634 struct shf shf; local
731 fpFUNCTf(struct shf *shf, int i, bool isksh, const char *k, struct op *v) argument
786 dumpchar(struct shf *shf, int c) argument
798 dumpwdvar_i(struct shf *shf, const char *wp, int quotelevel) argument
878 dumpwdvar(struct shf *shf, const char *wp) argument
884 dumpioact(struct shf *shf, struct op *t) argument
943 dumptree(struct shf *shf, struct op *t) argument
[all...]
H A Deval.c41 struct shf *shf; /* file */ member in union:Expand::__anon10322
421 struct shf shf; local
423 shf_sopen(NULL, 0, SHF_WR|SHF_DYNAMIC, &shf);
424 print_value_quoted(&shf, str_val(st->var));
425 x.str = shf_sclose(&shf);
858 while ((c = shf_getc(x.u.shf)) == 0 || c == '\n')
863 shf_ungetc(c, x.u.shf);
870 shf_close(x.u.shf);
1290 struct shf *shf; local
[all...]
H A Dexec.c1435 hereinval(const char *content, int sub, char **resbuf, struct shf *shf) argument
1444 quitenv(shf);
1460 shf_puts(ccp, shf);
1472 struct shf *shf; local
1495 if (!(shf = h->shf) || (fd = open(h->tffn, O_RDONLY, 0)) < 0) {
1498 !shf ? "create" : "open", h->tffn, cstrerror(i));
1499 if (shf)
[all...]
H A Dhistrap.c90 struct shf *shf; local
298 if (!(shf = tf->shf)) {
305 shf_fprintf(shf, "%s\n", *hp);
306 if (shf_close(shf) == EOF) {
332 if (!(shf = shf_open(tf->tffn, O_RDONLY, 0, 0))) {
347 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) {
354 "read", tf->tffn, cstrerror(shf_errno(shf)));
356 shf_close(shf);
[all...]
H A Djobs.c136 static struct shf *shl_j;
146 static void j_print(Job *, int, struct shf *);
188 * an interrupt handler, so need a distinct shf)
1458 j_print(Job *j, int how, struct shf *shf) argument
1475 shf_fprintf(shf, "%d\n", (int)(j->pgrp ? j->pgrp :
1528 shf_fprintf(shf, "[%d] %c ", j->job, jobchar);
1530 shf_puts(filler, shf);
1534 shf_fprintf(shf, "%5d ", (int)p->pid);
1539 shf_fprintf(shf, "
[all...]
H A Dlex.c1392 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf);
1394 if (!p && shf_error(s->u.shf) &&
1395 shf_errno(s->u.shf) == EINTR) {
1396 shf_clearerr(s->u.shf);
1415 * TODO: reduce size of shf buffer (~128?) if SSTDIN
1418 shf_flush(s->u.shf);
1436 shf_fdclose(s->u.shf);
1469 struct shf *shf; local
1474 shf
[all...]
H A Dmain.c483 s->u.shf = shf_open(s->file, O_RDONLY, 0,
485 if (s->u.shf == NULL) {
497 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0),
503 s->u.shf->flags |= SHF_INTERRUPT;
677 struct shf *shf; local
682 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI | SHF_CLEXEC);
683 if (shf == NULL)
695 quitenv(s ? s->u.shf : NULL);
728 s->u.shf
951 quitenv(struct shf *shf) argument
[all...]
H A Dmisc.c1053 print_value_quoted(struct shf *shf, const char *s) argument
1068 shf_puts(s, shf);
1081 shf_putc('\'', shf);
1084 shf_putc('\\', shf);
1086 shf_putc('\'', shf);
1089 shf_putc(c, shf);
1096 shf_putc('$', shf);
1097 shf_putc('\'', shf);
1103 shf_fprintf(shf, "\\
1170 print_columns(struct shf *shf, unsigned int n, char *(*func)(char *, size_t, unsigned int, const void *), const void *arg, size_t max_oct, size_t max_colz, bool prefcol) argument
[all...]
H A Dfuncs.c222 static void p_time(struct shf *, bool, long, int, int,
2490 p_time(struct shf *shf, bool posix, long tv_sec, int tv_usec, int width, argument
2495 shf_fprintf(shf, "%s%*ld.%02d%s", prefix, width,
2498 shf_fprintf(shf, "%s%*ldm%d.%02ds%s", prefix, width,
H A Dsh.h2 /* $OpenBSD: shf.h,v 1.6 2005/12/11 18:53:51 deraadt Exp $ */
821 struct shf *shf; member in struct:temp
1025 #define shf_fileno(shf) ((shf)->fd)
1026 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd))
1027 #define shf_getc_i(shf) ((shf)->rnleft > 0 ? \
1028 (shf)
1060 struct shf { struct
1499 struct shf *shf; /* shell file */ member in union:source::__anon10338
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.osgi_3.6.1.R36x_v20100806.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.osgi_3.6.2.R36x_v20101103.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 355 milliseconds