~ubuntu-branches/ubuntu/wily/eso-midas/wily-proposed

« back to all changes in this revision

Viewing changes to incl/filop.h

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)filop.h  19.1 (ESO-IPG) 02/25/03 13:49:29 */
 
2
/*+++++++++++++++++++
 
3
.TYPE                Header
 
4
.LANGUAGE            C
 
5
.IDENTIFICATION      filop.h
 
6
.AUTHOR              Francois Ochsenbein [ESO-IPG]
 
7
.KEYWORDS            Operations on Files
 
8
.ENVIRONMENT         Any
 
9
.COMMENTS            
 
10
.VERSION 1.0    24-October-1989  Extracted from stesodef.h
 
11
--------------------------------------------------------------------------*/
 
12
 
 
13
#ifndef  FILOP_DEF 
 
14
#define  FILOP_DEF      1       /* Include the definitions      */
 
15
#endif
 
16
 
 
17
#if     FILOP_DEF
 
18
#undef  FILOP_DEF
 
19
#define FILOP_DEF       0       /* Don't include a second time  */
 
20
 
 
21
#ifndef _TEMPLATES_     /* Are templates allowed ?      */
 
22
#include <compiler.h>
 
23
#endif
 
24
 
 
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();
 
47
char    *fi_name();
 
48
#endif
 
49
        
 
50
 
 
51
#endif