make.tmpl: add missing compiler attribute to build_progs
[AROS.git] / arch / all-unix / hidd / unixio / include / unixio.h
blobbed36a7a84298253508487ca74240521178ea961
1 #ifndef HIDD_UNIXIO_H
2 #define HIDD_UNIXIO_H
4 /*
5 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Unix filedescriptor/socket IO Include File
9 Lang: english
12 #include <exec/libraries.h>
13 #include <exec/ports.h>
14 #include <oop/oop.h>
15 #include <interface/Hidd_UnixIO.h>
17 #define CLID_Hidd_UnixIO "unixio.hidd"
19 struct uioInterrupt
21 struct MinNode Node;
22 int fd;
23 int mode;
24 void (*handler)(int, int, void *);
25 void *handlerData;
29 * (Semi)-public part of unixio.hidd library base.
30 * Normally you don't need to access it at all. However it can be
31 * useful if you want to use more specific operations on filedescriptors.
32 * For example emul-handler needs this.
34 struct UnixIOBase
36 struct Library uio_Library; /* Library node */
37 APTR uio_LibcHandle; /* hostlib.resource's handle to host libc */
38 int *uio_ErrnoPtr; /* Pointer to host's errno variable */
41 /* I/O mode flags */
42 #define vHidd_UnixIO_Read 0x1
43 #define vHidd_UnixIO_Write 0x2
44 #define vHidd_UnixIO_RW (vHidd_UnixIO_Read | vHidd_UnixIO_Write)
45 #define vHidd_UnixIO_Error 0x10
47 #endif /* HIDD_UNIXIO_H */