Home
last modified time | relevance | path

Searched refs:shf (Results 1 - 15 of 15) sorted by relevance

/third_party/mksh/
H A Dshf.c1 /* $OpenBSD: shf.c,v 1.16 2013/04/19 17:36:09 millert Exp $ */
30 __RCSID("$MirOS: src/bin/mksh/shf.c,v 1.102 2020/06/22 17:11:03 tg Exp $");
42 static int shf_fillbuf(struct shf *);
43 static int shf_emptybuf(struct shf *, int);
50 struct shf *
53 struct shf *shf; in shf_open() local
60 shf = alloc(sizeof(struct shf) + bsize, ATEMP); in shf_open()
61 shf in shf_open()
129 shf_fdopen(int fd, int sflags, struct shf *shf) shf_fdopen() argument
164 shf_reopen(int fd, int sflags, struct shf *shf) shf_reopen() argument
198 shf_sopen(char *buf, ssize_t bsize, int sflags, struct shf *shf) shf_sopen() argument
231 shf_close(struct shf *shf) shf_close() argument
250 shf_fdclose(struct shf *shf) shf_fdclose() argument
273 shf_sclose(struct shf *shf) shf_sclose() argument
292 shf_flush(struct shf *shf) shf_flush() argument
326 shf_emptybuf(struct shf *shf, int flags) shf_emptybuf() argument
409 shf_fillbuf(struct shf *shf) shf_fillbuf() argument
455 shf_read(char *buf, ssize_t bsize, struct shf *shf) shf_read() argument
491 shf_getse(char *buf, ssize_t bsize, struct shf *shf) shf_getse() argument
549 shf_getchar(struct shf *shf) shf_getchar() argument
566 shf_ungetc(int c, struct shf *shf) shf_ungetc() argument
604 shf_putchar(int c, struct shf *shf) shf_putchar() argument
648 shf_puts(const char *s, struct shf *shf) shf_puts() argument
658 shf_write(const char *buf, ssize_t nbytes, struct shf *shf) shf_write() argument
730 shf_fprintf(struct shf *shf, const char *fmt, ...) shf_fprintf() argument
745 struct shf shf; shf_snprintf() local
765 struct shf shf; shf_smprintf() local
790 shf_vfprintf(struct shf *shf, const char *fmt, va_list args) shf_vfprintf() argument
1079 shf_getc(struct shf *shf) shf_getc() argument
1085 shf_putc(int c, struct shf *shf) shf_putc() argument
[all...]
H A Dtree.c30 static void ptree(struct op *, int, struct shf *);
31 static void pioact(struct shf *, struct ioword *);
32 static const char *wdvarput(struct shf *, const char *, int, int);
33 static void vfptreef(struct shf *, int, const char *, va_list);
43 static struct shf ptree_heredoc;
44 #define ptree_outhere(shf) do { \
46 shf_puts(shf_sclose(&ptree_heredoc), (shf)); \
47 shf_putc('\n', (shf)); \
59 ptree(struct op *t, int indent, struct shf *shf) in ptree() argument
249 pioact(struct shf *shf, struct ioword *iop) pioact() argument
319 wdvarput(struct shf *shf, const char *wp, int quotelevel, int opmode) wdvarput() argument
439 fptreef(struct shf *shf, int indent, const char *fmt, ...) fptreef() argument
453 struct shf shf; snptreef() local
466 vfptreef(struct shf *shf, int indent, const char *fmt, va_list va) vfptreef() argument
478 shf_putchar(va_arg(va, int), shf); vfptreef() local
482 shf_puts(va_arg(va, char *), shf); vfptreef() local
498 ptree(va_arg(va, struct op *), indent, shf); vfptreef() local
679 struct shf shf; wdstrip() local
772 fpFUNCTf(struct shf *shf, int i, bool isksh, const char *k, struct op *v) fpFUNCTf() argument
830 dumpchar(struct shf *shf, unsigned char c) dumpchar() argument
842 dumpwdvar_i(struct shf *shf, const char *wp, int quotelevel) dumpwdvar_i() argument
936 dumpwdvar(struct shf *shf, const char *wp) dumpwdvar() argument
942 dumpioact(struct shf *shf, struct op *t) dumpioact() argument
1001 dumptree(struct shf *shf, struct op *t) dumptree() argument
[all...]
H A Dsh.h2 /* $OpenBSD: shf.h,v 1.6 2005/12/11 18:53:51 deraadt Exp $ */
289 /* see the large comment in shf.c for an EBCDIC primer */
988 EXTERN const char Tbad_bsize[] E_INIT("bad shf/buf/bsize");
1154 #define Tbad_bsize "bad shf/buf/bsize"
1317 struct shf *shf; member
1694 #define shf_fileno(shf) ((shf)->fd)
1695 #define shf_setfileno(shf,nfd) ((shf)
1729 struct shf { global() struct
2167 struct shf *shf; global() member
2196 struct shf *shf; global() member
[all...]
H A Dmain.c544 s->u.shf = shf_open(s->file, O_RDONLY | O_MAYEXEC, 0, in main_init()
546 if (s->u.shf == NULL) { in main_init()
558 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0), in main_init()
564 s->u.shf->flags |= SHF_INTERRUPT; in main_init()
769 struct shf *shf; in include() local
774 shf = shf_open(name, O_RDONLY | O_MAYEXEC, 0, SHF_MAPHI | SHF_CLEXEC); in include()
775 if (shf == NULL) in include()
787 quitenv(s ? s->u.shf : NULL); in include()
821 s->u.shf in include()
1054 quitenv(struct shf *shf) quitenv() argument
2067 struct shf *shf; init_environ() local
[all...]
H A Deval.c46 struct shf *shf; member
814 struct shf shf; in expand() local
816 shf_sopen(NULL, 0, SHF_WR|SHF_DYNAMIC, &shf); in expand()
817 print_value_quoted(&shf, str_val(st->var)); in expand()
818 x.str = shf_sclose(&shf); in expand()
998 if (x.u.shf == NULL) { in expand()
1008 while ((c = shf_getc(x.u.shf)) == 0 || in expand()
1012 c = shf_getc(x.u.shf); in expand()
1524 struct shf *shf; comsub() local
[all...]
H A Dlex.c1400 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf); in getsc_line()
1402 if (!p && shf_error(s->u.shf) && in getsc_line()
1403 shf_errno(s->u.shf) == EINTR) { in getsc_line()
1404 shf_clearerr(s->u.shf); in getsc_line()
1423 * TODO: reduce size of shf buffer (~128?) if SSTDIN in getsc_line()
1426 shf_flush(s->u.shf); in getsc_line()
1445 shf_fdclose(s->u.shf); in getsc_line()
1485 struct shf *shf; in set_prompt() local
1491 shf in set_prompt()
[all...]
H A Dmisc.c206 co.shf = shl_stdout; in printoptions()
1395 print_value_quoted(struct shf *shf, const char *s) in print_value_quoted() argument
1403 shf_putc('\'', shf); in print_value_quoted()
1404 shf_putc('\'', shf); in print_value_quoted()
1417 shf_puts(s, shf); in print_value_quoted()
1430 shf_putc('\'', shf); in print_value_quoted()
1433 shf_putc('\\', shf); in print_value_quoted()
1435 shf_putc('\'', shf); in print_value_quoted()
1438 shf_putc(c, shf); in print_value_quoted()
[all...]
H A Dhistrap.c87 struct shf *shf; in c_fc() local
296 if (!(shf = tf->shf)) { in c_fc()
302 shf_fprintf(shf, Tf_sN, *hp); in c_fc()
303 if (shf_close(shf) == -1) { in c_fc()
320 if (!(shf = shf_open(tf->tffn, O_RDONLY, 0, 0))) { in c_fc()
334 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) { in c_fc()
341 cstrerror(shf_errno(shf))); in c_fc()
343 shf_close(shf); in c_fc()
[all...]
H A Djobs.c147 static struct shf *shl_j;
157 static void j_print(Job *, int, struct shf *);
193 * an interrupt handler, so need a distinct shf) in j_init()
1546 j_print(Job *j, int how, struct shf *shf) argument
1565 shf_fprintf(shf, Tf_dN, (int)(j->pgrp ? j->pgrp :
1631 shf_fprintf(shf, "[%d] %c ", j->job, jobchar);
1633 shf_puts(filler, shf);
1637 shf_fprintf(shf, "%5d ", (int)p->pid);
1643 shf_fprintf(shf, "
[all...]
H A Dexec.c1588 hereinval(struct ioword *iop, int sub, char **resbuf, struct shf *shf) in hereinval() argument
1597 quitenv(shf); in hereinval()
1615 shf_puts(ccp, shf); in hereinval()
1627 struct shf *shf; in herein() local
1643 if (!(shf = h->shf) || (fd = binopen3(h->tffn, O_RDONLY, 0)) < 0) { in herein()
1646 !shf ? Tcreate : Topen, h->tffn, cstrerror(i)); in herein()
1647 if (shf) in herein()
[all...]
H A Dfuncs.c245 static void p_time(struct shf *, bool, long, int, int,
531 co.shf = shf_sopen(NULL, 128, SHF_WR | SHF_DYNAMIC, NULL); in c_print()
538 w = co.shf->wp - co.shf->buf; in c_print()
540 memcpy(xp, co.shf->buf, w); in c_print()
542 shf_sclose(co.shf); in c_print()
1187 co.shf = shl_stdout; in c_kill()
2347 p_time(struct shf *shf, bool posix, long tv_sec, int tv_usec, int width, in p_time() argument
2352 shf_fprintf(shf, " in p_time()
[all...]
H A Dedit.c286 co.shf = shl_out; in x_print_expansions()
5732 struct shf shf; in x_quote_region_helper() local
5736 shf_sopen(alloc(newlen, AEDIT), newlen, SHF_WR | SHF_DYNAMIC, &shf); in x_quote_region_helper() local
5737 shf.areap = AEDIT; in x_quote_region_helper()
5738 shf.flags |= SHF_ALLOCB; in x_quote_region_helper()
5739 print_value_quoted(&shf, s); in x_quote_region_helper()
5741 return (shf_sclose(&shf)); in x_quote_region_helper()
/third_party/node/deps/v8/src/diagnostics/mips64/
H A Ddisasm-mips64.cc2328 Format(instr, "shf.b 'wd, 'ws, 'imm8"); in DecodeTypeMsaI8()
2331 Format(instr, "shf.h 'wd, 'ws, 'imm8"); in DecodeTypeMsaI8()
2334 Format(instr, "shf.w 'wd, 'ws, 'imm8"); in DecodeTypeMsaI8()
/third_party/python/Lib/
H A Dturtle.py2456 shf = self._shearfactor
2458 self._shapetrafo = ( scx*ca, scy*(shf*ca + sa),
2459 -scx*sa, scy*(ca - shf*sa))
/third_party/node/deps/v8/src/diagnostics/mips/
H A Ddisasm-mips.cc2041 Format(instr, "shf.b 'wd, 'ws, 'imm8"); in DecodeTypeMsaI8()
2044 Format(instr, "shf.h 'wd, 'ws, 'imm8"); in DecodeTypeMsaI8()
2047 Format(instr, "shf.w 'wd, 'ws, 'imm8"); in DecodeTypeMsaI8()

Completed in 36 milliseconds