This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
48
libsrc/common/_file.h
Normal file
48
libsrc/common/_file.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* _file.h
|
||||
*
|
||||
* Ullrich von Bassewitz, 02.06.1998
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#ifndef __FILE_H
|
||||
#define __FILE_H
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
/* Definition of struct _FILE */
|
||||
struct _FILE {
|
||||
char f_fd;
|
||||
char f_flags;
|
||||
};
|
||||
|
||||
/* File table. Beware: FOPEN_MAX is hardcoded in the ASM files! */
|
||||
extern FILE _filetab [FOPEN_MAX];
|
||||
|
||||
/* Flags field */
|
||||
#define _FCLOSED 0x00
|
||||
#define _FOPEN 0x01
|
||||
#define _FEOF 0x02
|
||||
#define _FERROR 0x04
|
||||
|
||||
|
||||
|
||||
FILE* _fopen (const char* name, const char* mode, FILE* f);
|
||||
/* Open the specified file and fill the descriptor values into f */
|
||||
|
||||
FILE* _fdesc (void);
|
||||
/* Find a free FILE descriptor */
|
||||
|
||||
|
||||
|
||||
/* End of _file.h */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user