diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-08-08 22:51:53 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-08-08 22:51:53 +0300 |
commit | 49658bfd0ef5d4efccd210c48560c43bf455ee16 (patch) | |
tree | 424786ecd8935fa1c7a281076ce70f896bb8ce3a /awk.h | |
parent | 88e81c931345aa485e55c6d6c7f3ad61dc200fed (diff) | |
download | egawk-49658bfd0ef5d4efccd210c48560c43bf455ee16.tar.gz egawk-49658bfd0ef5d4efccd210c48560c43bf455ee16.tar.bz2 egawk-49658bfd0ef5d4efccd210c48560c43bf455ee16.zip |
Move struct stat into IOBUF_PUBLIC.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -889,7 +889,6 @@ typedef struct exp_instruction { typedef struct iobuf { IOBUF_PUBLIC public; /* exposed to extensions */ - struct stat sbuf; /* stat buf */ char *buf; /* start data buffer */ char *off; /* start of current record in buffer */ char *dataend; /* first byte in buffer to hold new data, @@ -1533,7 +1532,7 @@ extern int os_devopen(const char *name, int flag); extern void os_close_on_exec(int fd, const char *name, const char *what, const char *dir); extern int os_isatty(int fd); extern int os_isdir(int fd); -extern int os_isreadable(int fd, bool *isdir); +extern int os_isreadable(const IOBUF_PUBLIC *iobuf, bool *isdir); extern int os_is_setuid(void); extern int os_setbinmode(int fd, int mode); extern void os_restore_mode(int fd); @@ -1694,8 +1693,6 @@ extern uintmax_t adjust_uint(uintmax_t n); #define adjust_uint(n) (n) #endif -#define INVALID_HANDLE (-1) - #ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> #endif |