1
/* @(#)filedef.h 17.1 (ESO-IPG) 01/25/02 17:31:09 */
5
.IDENTIFICATION filedef.h
6
.AUTHOR Francois Ochsenbein [ESO-IPG]
7
.KEYWORDS Keywords for Operations on Files
9
.COMMENTS Definitions related to File Management
10
.VERSION 1.0 24-Oct-1989 Extracted from osfile.h
11
.VERSION 1.1 31-Jan-1990 Added filename operations
14
--------------------------------------------------------------------------*/
22
/*===========================================================================
24
*===========================================================================*/
34
#define FILE_START SEEK_SET /* 0 before */
35
#define FILE_CURRENT SEEK_CUR /* 1 before */
36
#define FILE_END SEEK_END /* 2 before */
38
#define PROTECTION 0755 /* Default Protection to create Files */
39
#define LARGE_BUFFER 0x8000 /* Large Blocking Option */
40
#define NOATTR 0x10000 /* VMS only (no record attr) */
44
#define EOF (-1) /* End of File */
47
/*===========================================================================
48
* Components of a file name
49
*===========================================================================*/
51
#define __NODE_ 6 /* To parse file names */
52
#define __PATH_ 5 /* To parse file names */
54
#define __EXTENSION_ 2
57
#define _NODE_ (1<<__NODE_)
58
#define _PATH_ (1<<__PATH_)
59
#define _FILE_ (1<<__FILE_)
60
#define _EXTENSION_ (1<<__EXTENSION_)
61
#define _VERSION_ (1<<__VERSION_)
63
#define __TYPE_ __EXTENSION_
64
#define _TYPE_ _EXTENSION_
70
/*===========================================================================
71
* Operations on FileNames
72
*===========================================================================*/
73
char *osfparse (char *phname, unsigned int components);
74
char *osfsupply (char *phname, char *template);
75
char *osftr (char *logname);
76
#else /* No templates ... */
77
char *osfparse(), *osfsupply(), *osftr();