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

« back to all changes in this revision

Viewing changes to incl/filedef.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
/* @(#)filedef.h        17.1 (ESO-IPG) 01/25/02 17:31:09 */
 
2
/*+++++++++++++++++++
 
3
.TYPE                Header
 
4
.LANGUAGE            C
 
5
.IDENTIFICATION      filedef.h
 
6
.AUTHOR              Francois Ochsenbein [ESO-IPG]
 
7
.KEYWORDS            Keywords for Operations on Files
 
8
.ENVIRONMENT         Any
 
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
 
12
 
 
13
 020502         last modif
 
14
--------------------------------------------------------------------------*/
 
15
 
 
16
#ifndef  FILEDEF_DEF 
 
17
#define  FILEDEF_DEF
 
18
 
 
19
#include <unistd.h>
 
20
 
 
21
 
 
22
/*===========================================================================
 
23
 *              Basic Definitions
 
24
 *===========================================================================*/
 
25
 
 
26
#define  CHMOD        0
 
27
#define  CHOWN        1
 
28
 
 
29
#define  READ         0
 
30
#define  WRITE        1
 
31
#define  READ_WRITE   2
 
32
#define  APPEND       3
 
33
 
 
34
#define  FILE_START   SEEK_SET          /* 0 before */
 
35
#define  FILE_CURRENT SEEK_CUR          /* 1 before */
 
36
#define  FILE_END     SEEK_END          /* 2 before */
 
37
 
 
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)    */
 
41
 
 
42
 
 
43
#ifndef EOF
 
44
#define EOF             (-1)            /* End of File          */
 
45
#endif
 
46
 
 
47
/*===========================================================================
 
48
 *              Components of a file name
 
49
 *===========================================================================*/
 
50
 
 
51
#define __NODE_         6       /* To parse file names          */
 
52
#define __PATH_         5       /* To parse file names          */
 
53
#define __FILE_         3
 
54
#define __EXTENSION_    2
 
55
#define __VERSION_      1
 
56
 
 
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_)
 
62
 
 
63
#define __TYPE_         __EXTENSION_
 
64
#define _TYPE_          _EXTENSION_
 
65
 
 
66
#ifndef _TEMPLATES_
 
67
#include <compiler.h>
 
68
#endif
 
69
#if _TEMPLATES_
 
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();
 
78
#endif
 
79
 
 
80
#endif