:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / libc / file.h
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
3 #ifndef __dj_include_libc_file_h__
4 #define __dj_include_libc_file_h__
5
6 #include <stdio.h>
7 #include <fcntl.h>
8
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 #ifndef __dj_ENFORCE_ANSI_FREESTANDING
15
16 #ifndef __STRICT_ANSI__
17
18 #ifndef _POSIX_SOURCE
19
20 #ifndef _IORMONCL
21 #define _IORMONCL 004000  /* remove on close, for temp files */
22 #endif
23 /* if _flag & _IORMONCL, ._name_to_remove needs freeing */
24
25 #ifndef _IOUNGETC
26 #define _IOUNGETC 010000  /* there is an ungetc'ed character in the buffer */
27 #endif
28
29 int __set_errno(int err);
30
31 char __is_text_file(FILE *p);
32
33 int __fileno_alloc(void *hFile, int mode);
34
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);
38
39
40 int __fileno_dup2( int handle1, int handle2 );
41 int __fileno_setmode(int _fd, int _newmode);
42 int __fileno_close(int _fd);
43
44
45 #endif /* !_POSIX_SOURCE */
46 #endif /* !__STRICT_ANSI__ */
47 #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
48
49 #ifndef __dj_ENFORCE_FUNCTION_CALLS
50 #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif /* __dj_include_libc_file_h__ */