[differences between cumulative patch application and perl5.004_01]
[p5sagit/p5-mst-13.2.git] / win32 / win32io.h
CommitLineData
0a753a76 1#ifndef WIN32IO_H
2#define WIN32IO_H
3
3e3baf6d 4#ifdef __BORLANDC__
5#include <stdarg.h>
6#endif
7
0a753a76 8typedef struct {
68dc0745 9int signature_begin;
10int * (*pfnerrno)(void);
dcb2879a 11char ***(*pfnenviron)(void);
0a753a76 12FILE* (*pfnstdin)(void);
13FILE* (*pfnstdout)(void);
14FILE* (*pfnstderr)(void);
68dc0745 15int (*pfnferror)(FILE *fp);
16int (*pfnfeof)(FILE *fp);
0a753a76 17char* (*pfnstrerror)(int e);
68dc0745 18int (*pfnvfprintf)(FILE *pf, const char *format, va_list arg);
19int (*pfnvprintf)(const char *format, va_list arg);
0a753a76 20size_t (*pfnfread)(void *buf, size_t size, size_t count, FILE *pf);
21size_t (*pfnfwrite)(const void *buf, size_t size, size_t count, FILE *pf);
22FILE* (*pfnfopen)(const char *path, const char *mode);
23FILE* (*pfnfdopen)(int fh, const char *mode);
24FILE* (*pfnfreopen)(const char *path, const char *mode, FILE *pf);
68dc0745 25int (*pfnfclose)(FILE *pf);
26int (*pfnfputs)(const char *s,FILE *pf);
27int (*pfnfputc)(int c,FILE *pf);
28int (*pfnungetc)(int c,FILE *pf);
29int (*pfngetc)(FILE *pf);
30int (*pfnfileno)(FILE *pf);
0a753a76 31void (*pfnclearerr)(FILE *pf);
68dc0745 32int (*pfnfflush)(FILE *pf);
0a753a76 33long (*pfnftell)(FILE *pf);
68dc0745 34int (*pfnfseek)(FILE *pf,long offset,int origin);
35int (*pfnfgetpos)(FILE *pf,fpos_t *p);
36int (*pfnfsetpos)(FILE *pf,const fpos_t *p);
0a753a76 37void (*pfnrewind)(FILE *pf);
38FILE* (*pfntmpfile)(void);
39void (*pfnabort)(void);
40int (*pfnfstat)(int fd,struct stat *bufptr);
41int (*pfnstat)(const char *name,struct stat *bufptr);
68dc0745 42int (*pfnpipe)( int *phandles, unsigned int psize, int textmode );
0a753a76 43FILE* (*pfnpopen)( const char *command, const char *mode );
68dc0745 44int (*pfnpclose)( FILE *pf);
45int (*pfnsetmode)( int fd, int mode);
0a753a76 46long (*pfnlseek)( int fd, long offset, int origin);
47long (*pfntell)( int fd);
68dc0745 48int (*pfndup)( int fd);
49int (*pfndup2)(int h1, int h2);
50int (*pfnopen)(const char *path, int oflag,...);
51int (*pfnclose)(int fd);
52int (*pfneof)(int fd);
53int (*pfnread)(int fd, void *buf, unsigned int cnt);
54int (*pfnwrite)(int fd, const void *buf, unsigned int cnt);
55int (*pfnopenmode)(int mode);
56int (*pfn_open_osfhandle)(long handle, int flags);
0a753a76 57long (*pfn_get_osfhandle)(int fd);
3e3baf6d 58int (*pfnspawnvp)(int mode, const char *cmdname, const char *const *argv);
5aabfad6 59int (*pfnmkdir)(const char *path);
60int (*pfnrmdir)(const char *path);
61int (*pfnchdir)(const char *path);
c90c0ff4 62int (*pfnflock)(int fd, int oper);
0a753a76 63int signature_end;
64} WIN32_IOSUBSYSTEM;
65
66typedef WIN32_IOSUBSYSTEM *PWIN32_IOSUBSYSTEM;
67
68dc0745 68#endif /* WIN32IO_H */