diff options
Diffstat (limited to 'win32/win32io.h')
-rw-r--r-- | win32/win32io.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/win32/win32io.h b/win32/win32io.h new file mode 100644 index 0000000000..cb0c692da4 --- /dev/null +++ b/win32/win32io.h @@ -0,0 +1,59 @@ +#ifndef WIN32IO_H +#define WIN32IO_H + +typedef struct { +int signature_begin; +int * (*pfnerrno)(void); +FILE* (*pfnstdin)(void); +FILE* (*pfnstdout)(void); +FILE* (*pfnstderr)(void); +int (*pfnferror)(FILE *fp); +int (*pfnfeof)(FILE *fp); +char* (*pfnstrerror)(int e); +int (*pfnvfprintf)(FILE *pf, const char *format, va_list arg); +int (*pfnvprintf)(const char *format, va_list arg); +size_t (*pfnfread)(void *buf, size_t size, size_t count, FILE *pf); +size_t (*pfnfwrite)(const void *buf, size_t size, size_t count, FILE *pf); +FILE* (*pfnfopen)(const char *path, const char *mode); +FILE* (*pfnfdopen)(int fh, const char *mode); +FILE* (*pfnfreopen)(const char *path, const char *mode, FILE *pf); +int (*pfnfclose)(FILE *pf); +int (*pfnfputs)(const char *s,FILE *pf); +int (*pfnfputc)(int c,FILE *pf); +int (*pfnungetc)(int c,FILE *pf); +int (*pfngetc)(FILE *pf); +int (*pfnfileno)(FILE *pf); +void (*pfnclearerr)(FILE *pf); +int (*pfnfflush)(FILE *pf); +long (*pfnftell)(FILE *pf); +int (*pfnfseek)(FILE *pf,long offset,int origin); +int (*pfnfgetpos)(FILE *pf,fpos_t *p); +int (*pfnfsetpos)(FILE *pf,const fpos_t *p); +void (*pfnrewind)(FILE *pf); +FILE* (*pfntmpfile)(void); +void (*pfnabort)(void); +int (*pfnfstat)(int fd,struct stat *bufptr); +int (*pfnstat)(const char *name,struct stat *bufptr); +int (*pfnpipe)( int *phandles, unsigned int psize, int textmode ); +FILE* (*pfnpopen)( const char *command, const char *mode ); +int (*pfnpclose)( FILE *pf); +int (*pfnsetmode)( int fd, int mode); +long (*pfnlseek)( int fd, long offset, int origin); +long (*pfntell)( int fd); +int (*pfndup)( int fd); +int (*pfndup2)(int h1, int h2); +int (*pfnopen)(const char *path, int oflag,...); +int (*pfnclose)(int fd); +int (*pfneof)(int fd); +int (*pfnread)(int fd, void *buf, unsigned int cnt); +int (*pfnwrite)(int fd, const void *buf, unsigned int cnt); +int (*pfnopenmode)(int mode); +int (*pfn_open_osfhandle)(long handle, int flags); +long (*pfn_get_osfhandle)(int fd); +int (*pfnspawnvpe)(int mode, const char *cmdname, const char *const *argv, const char *const *envp); +int signature_end; +} WIN32_IOSUBSYSTEM; + +typedef WIN32_IOSUBSYSTEM *PWIN32_IOSUBSYSTEM; + +#endif // WIN32IO_H |