muimaster.library: support Listview_List in List
[AROS.git] / compiler / posixc / __stdio.h
blobad90d1dae1bcc90e0902e3d7d8ca322cc3130281
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 __POSIXC_STDIO_EOF 0x0001L
23 #define __POSIXC_STDIO_ERROR 0x0002L
24 #define __POSIXC_STDIO_WRITE 0x0004L
25 #define __POSIXC_STDIO_READ 0x0008L
26 #define __POSIXC_STDIO_RDWR __POSIXC_STDIO_WRITE | __POSIXC_STDIO_READ
27 #define __POSIXC_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 */