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

/netbsd-6-1-5-RELEASE/bin/ksh/
H A Dshf.h1 /* $NetBSD: shf.h,v 1.2 1997/01/12 19:12:14 tls Exp $ */
9 /* $Id: shf.h,v 1.3 1999/10/20 15:10:00 hubertf Exp $ */
13 #define shf_fileno(shf) ((shf)->fd)
14 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd))
15 #define shf_getc(shf) ((shf)->rnleft > 0 ? (shf)->rnleft--, *(shf)
46 struct shf { struct
[all...]
H A Dshf.c1 /* $NetBSD: shf.c,v 1.6 2004/07/07 19:20:09 mycroft Exp $ */
9 __RCSID("$NetBSD: shf.c,v 1.6 2004/07/07 19:20:09 mycroft Exp $");
28 static int shf_fillbuf ARGS((struct shf *shf));
29 static int shf_emptybuf ARGS((struct shf *shf, int flags));
35 struct shf *
42 struct shf *shf; local
47 shf
769 shf_fprintf(struct shf *shf, const char *fmt, ...) argument
798 struct shf shf; local
823 struct shf shf; local
[all...]
H A Dtree.c17 #define tputc(c, shf) shf_putchar(c, shf);
18 static void ptree ARGS((struct op *t, int indent, struct shf *f));
19 static void pioact ARGS((struct shf *f, int indent, struct ioword *iop));
20 static void tputC ARGS((int c, struct shf *shf));
21 static void tputS ARGS((char *wp, struct shf *shf));
22 static void vfptreef ARGS((struct shf *shf, in
379 fptreef(struct shf *shf, int indent, const char *fmt, ...) argument
410 struct shf shf; local
438 tputc(va_arg(va, int), shf); local
460 ptree(va_arg(va, struct op *), indent, shf); local
616 struct shf shf; local
[all...]
H A Dio.c189 static struct shf *kshdebug_shf;
262 struct shf shf_iob[3];
528 tp->shf = (struct shf *) 0;
534 tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
545 tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
H A Dlex.h18 struct shf *shf; /* shell file */ member in union:source::__anon15
H A Dmain.c318 s->u.shf = shf_open(s->file, O_RDONLY, 0, SHF_MAPHI|SHF_CLEXEC);
319 if (s->u.shf == NULL) {
328 s->u.shf = shf_fdopen(0, SHF_RD | can_seek(0),
329 (struct shf *) 0);
334 s->u.shf->flags |= SHF_INTERRUPT;
464 struct shf *shf; local
469 shf = shf_open(name, O_RDONLY, 0, SHF_MAPHI|SHF_CLEXEC);
470 if (shf == NULL)
484 shf_close(s->u.shf);
[all...]
H A Dc_sh.c253 struct shf *shf; local
296 shf = shf_reopen(fd, SHF_RD | SHF_INTERRUPT | can_seek(fd), shl_spare);
332 c = shf_getc(shf);
339 if (c == EOF && shf_error(shf)
340 && shf_errno(shf) == EINTR)
350 shf_clearerr(shf);
399 shf_flush(shf);
406 shf_flush(shf);
411 shf_flush(shf);
[all...]
H A Dlex.c1043 char *p = shf_getse(xp, Xnleft(s->xs, xp), s->u.shf);
1045 if (!p && shf_error(s->u.shf)
1046 && shf_errno(s->u.shf) == EINTR)
1048 shf_clearerr(s->u.shf);
1064 * todo: reduce size of shf buffer (~128?) if SSTDIN
1067 shf_flush(s->u.shf);
1085 shf_fdclose(s->u.shf);
1126 struct shf *shf; local
1131 shf
[all...]
H A Djobs.c196 static struct shf *shl_j;
223 static void j_print ARGS((Job *j, int how, struct shf *shf));
258 * an interrupt handler, so need a distinct shf)
260 shl_j = shf_fdopen(2, SHF_WR, (struct shf *) 0);
1513 j_print(j, how, shf)
1516 struct shf *shf;
1532 shf_fprintf(shf, "%d\n", j->pgrp ? j->pgrp
1580 shf_fprintf(shf, "[
[all...]
H A Dhistory.c86 struct shf *shf; local
240 if (!(shf = tf->shf)) {
247 shf_fprintf(shf, "%s\n", *hp);
248 if (shf_close(shf) == EOF) {
273 if (!(shf = shf_open(tf->name, O_RDONLY, 0, 0))) {
278 n = fstat(shf_fileno(shf), &statb) < 0 ? 128
281 while ((n = shf_read(xp, Xnleft(xs, xp), shf)) > 0) {
288 tf->name, strerror(shf_errno(shf)));
[all...]
H A Deval.c32 struct shf *shf;/* file */ member in union:Expand::__anon13
535 while ((c = shf_getc(x.u.shf)) == 0 || c == '\n')
539 shf_ungetc(c, x.u.shf);
546 shf_close(x.u.shf);
861 struct shf *shf; local
881 shf = shf_open(name = evalstr(io->name, DOTILDE), O_RDONLY, 0,
883 if (shf == NULL)
889 shf
[all...]
H A DMakefile12 main.c misc.c path.c shf.c sigact.c syn.c table.c trap.c \
H A Dexec.c1454 struct shf *volatile shf; local
1468 if (!(shf = h->shf) || (fd = open(h->name, O_RDONLY, 0)) < 0) {
1470 !shf ? "create" : "open",
1472 if (shf)
1473 shf_close(shf);
1483 shf_close(shf); /* after quitenv */
1495 shf_puts(evalstr(yylval.cp, 0), shf); local
1497 shf_puts(content, shf);
[all...]
H A Dproto.h197 void print_columns ARGS((struct shf *, int,
244 int fptreef ARGS((struct shf *, int, const char *, ...));
H A Dsh.h533 struct shf *shf; member in struct:temp
723 #include "shf.h"
/netbsd-6-1-5-RELEASE/usr.bin/window/
H A Dlcmd1.c76 char *shf, **sh; local
108 shf = *(sh = argv);
109 if ((*sh = strrchr(shf, '/')))
112 *sh = shf;
115 shf = default_shellfile;
118 haspty ? WWT_PTY : WWT_SOCKET, hasframe ? WWU_HASFRAME : 0, shf,
H A Dwin.c69 openwin(int id, int row, int col, int nrow, int ncol, int nline, char *label, int type, int uflags, char *shf, char **sh) argument
101 if (wwspawn(w, shf, sh) < 0) {
102 error("Can't execute %s: %s.", shf, wwerror());
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/config/mcore/
H A Dmcore.c759 unsigned HOST_WIDE_INT bit, shf, rot;
822 shf = value;
843 if (shf & 1)
844 shf = 0; /* Can't use logical shift, low order bit is one. */
846 shf >>= 1;
848 if (shf != 0 && const_ok_for_mcore (shf))
851 *x = shf;
756 unsigned HOST_WIDE_INT bit, shf, rot; local
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/config/mcore/
H A Dmcore.c747 unsigned bit, shf, rot;
810 shf = value;
831 if (shf & 1)
832 shf = 0; /* Can't use logical shift, low order bit is one. */
834 shf >>= 1;
836 if (shf != 0 && const_ok_for_mcore (shf))
839 *x = shf;
745 unsigned bit, shf, rot; local
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/gold/
H A Doutput.h145 is_section_flag_set(elfcpp::Elf_Xword shf) const
146 { return this->do_is_section_flag_set(shf); }

Completed in 324 milliseconds