prevent null pointer access crashes/memory trashing.
[AROS.git] / compiler / stdc / __stdio.h
blob3f5fa29f50e9225faead0f76eff82318db87d6b1
1 #ifndef ___STDIO_H
2 #define ___STDIO_H
4 /*
5 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: internal header file for stdio
9 Lang: English
12 #include <dos/dos.h>
13 #include <exec/lists.h>
15 struct __sFILE
17 struct MinNode node;
18 BPTR fh;
19 int flags;
22 #define __STDCIO_STDIO_EOF 0x0001L
23 #define __STDCIO_STDIO_ERROR 0x0002L
24 #define __STDCIO_STDIO_READ 0x0004L
25 #define __STDCIO_STDIO_WRITE 0x0008L
26 #define __STDCIO_STDIO_APPEND 0x0010
27 #define __STDCIO_STDIO_TMP 0x0020L
28 #define __STDCIO_STDIO_DONTCLOSE 0x0040L
29 #define __STDCIO_STDIO_DONTFREE 0x0080L
30 #define __STDCIO_STDIO_FLUSHONREAD 0x0100L
31 #define __STDCIO_STDIO_RDWR __STDCIO_STDIO_WRITE | __STDCIO_STDIO_READ
33 #endif /* ___STDIO_H */