added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / devs / afs / filehandles.h
blob1d641fc982bed7e13f8ae580a7ddbd18c7d71e83
1 #ifndef FILEHANDLES_H
2 #define FILEHANDLES_H
4 /*
5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include "os.h"
11 struct Position
13 ULONG block; // current extensionblock
14 UWORD filekey; // pointer to next/current datablock to read
15 UWORD byte; // bytes left in a block to read
16 ULONG offset; // offset in bytes within a file
19 struct AfsHandle
21 struct AfsHandle *next;
22 ULONG header_block;
23 ULONG mode;
24 struct Position current;
25 ULONG filesize; // size of file in bytes
26 ULONG dirpos; // current position for ExamineAll
27 struct Volume *volume; // the volume the handle refers to
30 #endif