1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
3 #ifndef __dj_include_libc_file_h__
4 #define __dj_include_libc_file_h__
14 #ifndef __dj_ENFORCE_ANSI_FREESTANDING
16 #ifndef __STRICT_ANSI__
21 #define _IORMONCL 004000 /* remove on close, for temp files */
23 /* if _flag & _IORMONCL, ._name_to_remove needs freeing */
26 #define _IOUNGETC 010000 /* there is an ungetc'ed character in the buffer */
29 int __set_errno(int err);
31 char __is_text_file(FILE *p);
33 int __fileno_alloc(void *hFile, int mode);
35 int _doprnt(const char *fmt, va_list args, FILE *f);
36 int _doscan(FILE *iop, const char *fmt, void **argp);
37 int _dowscan(FILE *iop, const wchar_t *fmt, void **argp);
40 int __fileno_dup2( int handle1, int handle2 );
41 int __fileno_setmode(int _fd, int _newmode);
42 int __fileno_close(int _fd);
45 #endif /* !_POSIX_SOURCE */
46 #endif /* !__STRICT_ANSI__ */
47 #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
49 #ifndef __dj_ENFORCE_FUNCTION_CALLS
50 #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
56 #endif /* __dj_include_libc_file_h__ */