1
/* @(#)filop.h 19.1 (ESO-IPG) 02/25/03 13:49:29 */
5
.IDENTIFICATION filop.h
6
.AUTHOR Francois Ochsenbein [ESO-IPG]
7
.KEYWORDS Operations on Files
10
.VERSION 1.0 24-October-1989 Extracted from stesodef.h
11
--------------------------------------------------------------------------*/
14
#define FILOP_DEF 1 /* Include the definitions */
19
#define FILOP_DEF 0 /* Don't include a second time */
21
#ifndef _TEMPLATES_ /* Are templates allowed ? */
25
#if _TEMPLATES_ /*===> Complete Function Prototypes */
26
int fi_create (char *filename, int filesize, int protection);
27
int fi_load (char *filename, long offset, char *buffer,
28
unsigned int buffer_size);
29
int fi_open (char *filename, int open_mode);
30
char *fi_name (int fid);
31
int fi_close (int fid);
32
int fi_read (int fid, char *buffer, unsigned int buffer_size);
33
int fi_write (int fid, char *buffer, unsigned int buffer_length);
34
long fi_seek (int fid, long offset, int mode);
35
long fi_tell (int fid);
36
int fi_gets (int fid, char *buffer, unsigned int buffer_size);
37
int fi_put (int fid, char *text);
38
int fi_puts (int fid, char *record);
39
int fi_flush (int fid);
40
int fi_chmod (char *filename, int new_protection);
41
int fi_delete (char *filename);
42
int fi_rename (char *filename, char *newname);
43
long fi_size (char *filename);
44
long fi_date (char *filename);
45
#else /*===> Those functions that don't return integer... */
46
long fi_seek(), fi_tell(), fi_date(), fi_size();