1 /*-----------------------------------------------------------------------
\r
3 ; XFILEIO - header file
\r
7 ; ****** XLIB - Mode X graphics library ****************
\r
8 ; ****** ****************
\r
9 ; ****** Written By Themie Gouthas ****************
\r
11 ; egg@dstos3.dsto.gov.au
\r
12 ; teg@bart.dsto.gov.au
\r
14 ; Terminology & notes:
\r
16 ; SRAM == System RAM
\r
17 ; X coordinates are in pixels unless explicitly stated
\r
19 ;-----------------------------------------------------------------------*/
\r
28 #define SEEK_START 0
\r
34 #define FIO_INVALID_METHOD 1
\r
35 #define FIO_FILE_NOT_FOUND 2
\r
36 #define FIO_PATH_NOT_FOUND 3
\r
37 #define FIO_HANDLE_UNAVAIL 4
\r
38 #define FIO_ACCESS_DENIED 5
\r
39 #define FIO_INVALID_HANDLE 6
\r
41 extern int file_err;
\r
43 /* FUNCTIONS =========================================================== */
\r
50 int f_open( /* Open a file returning its handle */
\r
54 int f_close( /* Close a file */
\r
57 int f_read( /* Read a block of data from a file */
\r
62 int f_write( /* Write a block of data to a file */
\r
67 int f_readfar( /* Read a block of data from a file */
\r
72 int f_writefar( /* Write a block of data to a file */
\r
77 long int f_seek( /* Position the file pointer */
\r
82 long int f_tell( /* return position the file pointer */
\r
85 long int f_filelength( /* Return the length of the file */
\r