Lines Matching refs:shf
1317 struct shf *shf; member
1694 #define shf_fileno(shf) ((shf)->fd) argument
1695 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd)) argument
1696 #define shf_getc_i(shf) ((shf)->rnleft > 0 ? \ argument
1697 (shf)->rnleft--, (int)ord(*(shf)->rp++) : \
1698 shf_getchar(shf))
1699 #define shf_putc_i(c,shf) ((shf)->wnleft == 0 ? \ argument
1700 shf_putchar((uint8_t)(c), (shf)) : \
1701 ((shf)->wnleft--, *(shf)->wp++ = (c)))
1702 #define shf_eof(shf) ((shf)->flags & SHF_EOF) argument
1703 #define shf_error(shf) ((shf)->flags & SHF_ERROR) argument
1704 #define shf_errno(shf) ((shf)->errnosv) argument
1705 #define shf_clearerr(shf) ((shf)->flags &= ~(SHF_EOF | SHF_ERROR)) argument
1729 struct shf { struct
1744 extern struct shf shf_iob[]; argument
2167 struct shf *shf; member
2196 struct shf *shf; member
2582 void quitenv(struct shf *);
2652 void print_value_quoted(struct shf *, const char *);
2681 struct shf *shf_open(const char *, int, int, int);
2682 struct shf *shf_fdopen(int, int, struct shf *);
2683 struct shf *shf_reopen(int, int, struct shf *);
2684 struct shf *shf_sopen(char *, ssize_t, int, struct shf *);
2685 int shf_close(struct shf *);
2686 int shf_fdclose(struct shf *);
2687 char *shf_sclose(struct shf *);
2688 int shf_flush(struct shf *);
2689 ssize_t shf_read(char *, ssize_t, struct shf *);
2690 char *shf_getse(char *, ssize_t, struct shf *);
2691 int shf_getchar(struct shf *s);
2692 int shf_ungetc(int, struct shf *);
2694 int shf_getc(struct shf *);
2695 int shf_putc(int, struct shf *);
2700 int shf_putchar(int, struct shf *);
2701 ssize_t shf_puts(const char *, struct shf *);
2702 ssize_t shf_write(const char *, ssize_t, struct shf *);
2703 ssize_t shf_fprintf(struct shf *, const char *, ...)
2710 ssize_t shf_vfprintf(struct shf *, const char *, va_list)
2720 void fptreef(struct shf *, int, const char *, ...);
2728 void dumpchar(struct shf *, unsigned char);
2729 void dumptree(struct shf *, struct op *);
2730 void dumpwdvar(struct shf *, const char *);
2731 void dumpioact(struct shf *shf, struct op *t);
2734 void fpFUNCTf(struct shf *, int, bool, const char *, struct op *);