clean up bcm bases and add primecell peripheral defines
[AROS.git] / compiler / clib / __stdio.h
blob29276b8a7cd1537337dd6320a2cc688f16017b8a
1 #ifndef ___STDIO_H
2 #define ___STDIO_H
4 /*
5 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: internal header file for stdio
9 Lang: English
12 #include <stdio.h>
13 #include <stddef.h>
14 #include <exec/lists.h>
16 struct __sFILE
18 int fd;
19 int flags;
22 #define _STDIO_EOF 0x0001L
23 #define _STDIO_ERROR 0x0002L
24 #define _STDIO_WRITE 0x0004L
25 #define _STDIO_READ 0x0008L
26 #define _STDIO_RDWR _STDIO_WRITE | _STDIO_READ
27 #define _STDIO_APPEND 0x0010L
29 typedef struct
31 struct MinNode Node;
32 FILE File;
33 } FILENODE;
35 #define FILENODE2FILE(fn) (&((fn)->File))
36 #define FILE2FILENODE(f) ((FILENODE *)(((char *)(f))-offsetof(FILENODE,File)))
38 int __smode2oflags(const char *mode);
39 int __oflags2sflags(int oflags);
41 #endif /* ___STDIO_H */