home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / clib / __stdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-17  |  644 b   |  32 lines

  1. #ifndef ___STDIO_H
  2. #define ___STDIO_H
  3.  
  4. /*
  5.     (C) 1995-96 AROS - The Amiga Replacement OS
  6.     $Id: __stdio.h,v 1.4 1997/01/17 16:31:16 digulla Exp $
  7.  
  8.     Desc: internal header file for stdio
  9.     Lang: english
  10. */
  11. #include <stdio.h>
  12. #include <stddef.h>
  13. #include <exec/lists.h>
  14.  
  15. typedef struct __FILENODE
  16. {
  17.     struct MinNode Node;
  18.     int  fd;
  19.     FILE File;
  20. } FILENODE;
  21.  
  22. extern struct MinList __stdio_files;
  23. extern int __stdio_fd;
  24.  
  25. #define FILENODE2FILE(fn)       (&((fn)->File))
  26. #define FILE2FILENODE(f)        ((FILENODE *)(((char *)(f))-offsetof(FILENODE,File)))
  27.  
  28. /* Prototypes */
  29. FILENODE * GetFilenode4fd (int fd);
  30.  
  31. #endif /* ___STDIO_H */
  32.