Usermode/libc - scanf() and many other cleanups
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / stdio_int.h
1 /*
2  * AcessOS Standard C Library
3  * SDTIO_INT.H
4  * Configuration Options
5  */
6 #ifndef _STDIO_INT_H
7 #define _STDIO_INT_H
8
9 #include <sys/types.h>
10 #include <stddef.h>
11
12 // === CONSTANTS ===
13 #define FILE_FLAG_MODE_MASK     0x0007
14 #define FILE_FLAG_MODE_READ     0x0001
15 #define FILE_FLAG_MODE_WRITE    0x0002
16 #define FILE_FLAG_MODE_EXEC     0x0003
17 #define FILE_FLAG_MODE_APPEND   0x0004
18 #define FILE_FLAG_M_EXT         0x0010
19 #define FILE_FLAG_M_BINARY      0x0020
20 #define FILE_FLAG_EOF           0x0100
21 #define FILE_FLAG_DIRTY         0x0200
22 #define FILE_FLAG_ALLOC         0x1000
23
24 // === TYPES ===
25 struct sFILE {
26          int    Flags;
27          int    FD;
28         off_t   Pos;    
29
30         #if DEBUG_BUILD
31         char    *FileName;      // heap
32         #endif
33         void    *Buffer;
34         off_t   BufferStart;
35         size_t  BufferSize;
36 };
37
38 #endif

UCC git Repository :: git.ucc.asn.au