Home | History | Annotate | Download | only in src

Lines Matching refs:shf

2 /*	$OpenBSD: shf.h,v 1.6 2005/12/11 18:53:51 deraadt Exp $	*/
820 struct shf *shf;
1026 #define shf_fileno(shf) ((shf)->fd)
1027 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd))
1028 #define shf_getc_i(shf) ((shf)->rnleft > 0 ? \
1029 (shf)->rnleft--, *(shf)->rp++ : \
1030 shf_getchar(shf))
1031 #define shf_putc_i(c, shf) ((shf)->wnleft == 0 ? \
1032 shf_putchar((c), (shf)) : \
1033 ((shf)->wnleft--, *(shf)->wp++ = (c)))
1034 #define shf_eof(shf) ((shf)->flags & SHF_EOF)
1035 #define shf_error(shf) ((shf)->flags & SHF_ERROR)
1036 #define shf_errno(shf) ((shf)->errnosv)
1037 #define shf_clearerr(shf) ((shf)->flags &= ~(SHF_EOF | SHF_ERROR))
1053 #define SHF_ALLOCS 0x0200 /* shf and shf->buf were alloc()ed */
1054 #define SHF_ALLOCB 0x0400 /* shf->buf was alloc()ed */
1061 struct shf {
1062 Area *areap; /* area shf/buf were allocated in */
1076 extern struct shf shf_iob[];
1495 struct shf *shf; /* shell file */
1841 void quitenv(struct shf *);
1909 void print_value_quoted(struct shf *, const char *);
1911 void print_columns(struct shf *, unsigned int,
1928 /* shf.c */
1929 struct shf *shf_open(const char *, int, int, int);
1930 struct shf *shf_fdopen(int, int, struct shf *);
1931 struct shf *shf_reopen(int, int, struct shf *);
1932 struct shf *shf_sopen(char *, ssize_t, int, struct shf *);
1933 int shf_close(struct shf *);
1934 int shf_fdclose(struct shf *);
1935 char *shf_sclose(struct shf *);
1936 int shf_flush(struct shf *);
1937 ssize_t shf_read(char *, ssize_t, struct shf *);
1938 char *shf_getse(char *, ssize_t, struct shf *);
1939 int shf_getchar(struct shf *s);
1940 int shf_ungetc(int, struct shf *);
1942 int shf_getc(struct shf *);
1943 int shf_putc(int, struct shf *);
1948 int shf_putchar(int, struct shf *);
1949 ssize_t shf_puts(const char *, struct shf *);
1950 ssize_t shf_write(const char *, ssize_t, struct shf *);
1951 ssize_t shf_fprintf(struct shf *, const char *, ...)
1958 ssize_t shf_vfprintf(struct shf *, const char *, va_list)
1967 void fptreef(struct shf *, int, const char *, ...);
1977 void dumpchar(struct shf *, int);
1978 void dumptree(struct shf *, struct op *);
1979 void dumpwdvar(struct shf *, const char *);
1980 void dumpioact(struct shf *shf, struct op *t);
1983 void fpFUNCTf(struct shf *, int, bool, const char *, struct op *);