xref: /openbsd-src/gnu/usr.bin/cvs/vms/vmsmunch_private.h (revision 50bf276cd1c7e20f1eda64a5e63e0fae39e12a95)
1*50bf276cStholo /*---------------------------------------------------------------------------
2*50bf276cStholo 
3*50bf276cStholo   VMSmunch_private.h
4*50bf276cStholo 
5*50bf276cStholo   Contents of three header files from Joe
6*50bf276cStholo   Meadows' FILE program.  Used by VMSmunch
7*50bf276cStholo 
8*50bf276cStholo 	06-Apr-1994	Jamie Hanrahan	jeh@cmkrnl.com
9*50bf276cStholo 			Moved "contents of three header files" from
10*50bf276cStholo 			vmsmunch.h to vmsmunch_private.h .
11*50bf276cStholo   ---------------------------------------------------------------------------*/
12*50bf276cStholo 
13*50bf276cStholo /*---------------------------------------------------------------------------
14*50bf276cStholo     fatdef.h
15*50bf276cStholo   ---------------------------------------------------------------------------*/
16*50bf276cStholo 
17*50bf276cStholo /* This header file was created by Joe Meadows, and is not copyrighted
18*50bf276cStholo    in any way. No guarantee is made as to the accuracy of the contents
19*50bf276cStholo    of this header file. This header file was last modified on Sep. 22th,
20*50bf276cStholo    1987. (Modified to include this statement) */
21*50bf276cStholo #define FAT$K_LENGTH 32
22*50bf276cStholo #define FAT$C_LENGTH 32
23*50bf276cStholo #define FAT$S_FATDEF 32
24*50bf276cStholo 
25*50bf276cStholo struct fatdef {
26*50bf276cStholo   union  {
27*50bf276cStholo     unsigned char fat$b_rtype;
28*50bf276cStholo     struct  {
29*50bf276cStholo       unsigned fat$v_rtype : 4;
30*50bf276cStholo       unsigned fat$v_fileorg : 4;
31*50bf276cStholo     } fat$r_rtype_bits;
32*50bf276cStholo   } fat$r_rtype_overlay;
33*50bf276cStholo # define FAT$S_RTYPE 4
34*50bf276cStholo # define FAT$V_RTYPE 0
35*50bf276cStholo #   define FAT$C_UNDEFINED 0
36*50bf276cStholo #   define FAT$C_FIXED 1
37*50bf276cStholo #   define FAT$C_VARIABLE 2
38*50bf276cStholo #   define FAT$C_VFC 3
39*50bf276cStholo #   define FAT$C_STREAM 4
40*50bf276cStholo #   define FAT$C_STREAMLF 5
41*50bf276cStholo #   define FAT$C_STREAMCR 6
42*50bf276cStholo # define FAT$S_FILEORG 4
43*50bf276cStholo # define FAT$V_FILEORG 4
44*50bf276cStholo #   define FAT$C_SEQUENTIAL 0
45*50bf276cStholo #   define FAT$C_RELATIVE 1
46*50bf276cStholo #   define FAT$C_INDEXED 2
47*50bf276cStholo #   define FAT$C_DIRECT 3
48*50bf276cStholo   union  {
49*50bf276cStholo     unsigned char fat$b_rattrib;
50*50bf276cStholo     struct  {
51*50bf276cStholo       unsigned fat$v_fortrancc : 1;
52*50bf276cStholo       unsigned fat$v_impliedcc : 1;
53*50bf276cStholo       unsigned fat$v_printcc : 1;
54*50bf276cStholo       unsigned fat$v_nospan : 1;
55*50bf276cStholo     } fat$r_rattrib_bits;
56*50bf276cStholo   } fat$r_rattrib_overlay;
57*50bf276cStholo #   define FAT$V_FORTRANCC 0
58*50bf276cStholo #   define FAT$M_FORTRANCC 1
59*50bf276cStholo #   define FAT$V_IMPLIEDCC 1
60*50bf276cStholo #   define FAT$M_IMPLIEDCC 2
61*50bf276cStholo #   define FAT$V_PRINTCC 2
62*50bf276cStholo #   define FAT$M_PRINTCC 4
63*50bf276cStholo #   define FAT$V_NOSPAN 3
64*50bf276cStholo #   define FAT$M_NOSPAN 8
65*50bf276cStholo   unsigned short int fat$w_rsize;
66*50bf276cStholo   union
67*50bf276cStholo   {
68*50bf276cStholo     unsigned long int fat$l_hiblk;
69*50bf276cStholo     struct
70*50bf276cStholo     {
71*50bf276cStholo       unsigned short int fat$w_hiblkh;
72*50bf276cStholo       unsigned short int fat$w_hiblkl;
73*50bf276cStholo     } fat$r_hiblk_fields;
74*50bf276cStholo   } fat$r_hiblk_overlay;
75*50bf276cStholo   union
76*50bf276cStholo   {
77*50bf276cStholo     unsigned long int fat$l_efblk;
78*50bf276cStholo     struct
79*50bf276cStholo     {
80*50bf276cStholo       unsigned short int fat$w_efblkh;
81*50bf276cStholo       unsigned short int fat$w_efblkl;
82*50bf276cStholo     } fat$r_efblk_fields;
83*50bf276cStholo   } fat$r_efblk_overlay;
84*50bf276cStholo   unsigned short int fat$w_ffbyte;
85*50bf276cStholo   unsigned char fat$b_bktsize;
86*50bf276cStholo   unsigned char fat$b_vfcsize;
87*50bf276cStholo   unsigned short int fat$w_maxrec;
88*50bf276cStholo   unsigned short int fat$w_defext;
89*50bf276cStholo   unsigned short int fat$w_gbc;
90*50bf276cStholo   char fat$fill[8];
91*50bf276cStholo   unsigned short int fat$w_versions;
92*50bf276cStholo };
93*50bf276cStholo 
94*50bf276cStholo /*---------------------------------------------------------------------------
95*50bf276cStholo     fchdef.h
96*50bf276cStholo   ---------------------------------------------------------------------------*/
97*50bf276cStholo 
98*50bf276cStholo /* This header file was created by Joe Meadows, and is not copyrighted
99*50bf276cStholo    in any way. No guarantee is made as to the accuracy of the contents
100*50bf276cStholo    of this header file. This header file was last modified on Sep. 22th,
101*50bf276cStholo    1987. (Modified to include this statement) */
102*50bf276cStholo 
103*50bf276cStholo #define FCH$V_BADACL 0x00B
104*50bf276cStholo #define FCH$M_BADACL (1 << FCH$V_ACL)
105*50bf276cStholo #define FCH$V_BADBLOCK 0x00E
106*50bf276cStholo #define FCH$M_BADBLOCK (1 << FCH$V_BADBLOCK)
107*50bf276cStholo #define FCH$V_CONTIG 0x007
108*50bf276cStholo #define FCH$M_CONTIG (1 << FCH$V_CONTIG)
109*50bf276cStholo #define FCH$V_CONTIGB 0x005
110*50bf276cStholo #define FCH$M_CONTIGB (1 << FCH$V_CONTIGB)
111*50bf276cStholo #define FCH$V_DIRECTORY 0x00D
112*50bf276cStholo #define FCH$M_DIRECTORY (1 << FCH$V_DIRECTORY)
113*50bf276cStholo #define FCH$V_ERASE 0x011
114*50bf276cStholo #define FCH$M_ERASE (1 << FCH$V_ERASE)
115*50bf276cStholo #define FCH$V_LOCKED 0x006
116*50bf276cStholo #define FCH$M_LOCKED (1 << FCH$V_LOCKED)
117*50bf276cStholo #define FCH$V_MARKDEL 0x00F
118*50bf276cStholo #define FCH$M_MARKDEL (1 << FCH$V_MARKDEL)
119*50bf276cStholo #define FCH$V_NOBACKUP 0x001
120*50bf276cStholo #define FCH$M_NOBACKUP (1 << FCH$V_NOBACKUP)
121*50bf276cStholo #define FCH$V_NOCHARGE 0x010
122*50bf276cStholo #define FCH$M_NOCHARGE (1 << FCH$V_NOCHARGE)
123*50bf276cStholo #define FCH$V_READCHECK 0x003
124*50bf276cStholo #define FCH$M_READCHECK (1 << FCH$V_READCHECK)
125*50bf276cStholo #define FCH$V_SPOOL 0x00C
126*50bf276cStholo #define FCH$M_SPOOL (1 << FCH$V_SPOOL)
127*50bf276cStholo #define FCH$V_WRITCHECK 0x004
128*50bf276cStholo #define FCH$M_WRITCHECK (1 << FCH$V_WRITCHECK)
129*50bf276cStholo #define FCH$V_WRITEBACK 0x002
130*50bf276cStholo #define FCH$M_WRITEBACK (1 << FCH$V_WRITEBACK)
131*50bf276cStholo 
132*50bf276cStholo struct fchdef  {
133*50bf276cStholo   unsigned : 1;
134*50bf276cStholo   unsigned fch$v_nobackup : 1 ;
135*50bf276cStholo   unsigned fch$v_writeback : 1;
136*50bf276cStholo   unsigned fch$v_readcheck : 1;
137*50bf276cStholo   unsigned fch$v_writcheck : 1;
138*50bf276cStholo   unsigned fch$v_contigb : 1;
139*50bf276cStholo   unsigned fch$v_locked : 1;
140*50bf276cStholo   unsigned fch$v_contig : 1;
141*50bf276cStholo   unsigned : 3;
142*50bf276cStholo   unsigned fch$v_badacl : 1;
143*50bf276cStholo   unsigned fch$v_spool : 1;
144*50bf276cStholo   unsigned fch$v_directory : 1;
145*50bf276cStholo   unsigned fch$v_badblock : 1;
146*50bf276cStholo   unsigned fch$v_markdel : 1;
147*50bf276cStholo   unsigned fch$v_nocharge : 1;
148*50bf276cStholo   unsigned fch$v_erase : 1;
149*50bf276cStholo };
150*50bf276cStholo 
151*50bf276cStholo /*---------------------------------------------------------------------------
152*50bf276cStholo     fjndef.h
153*50bf276cStholo   ---------------------------------------------------------------------------*/
154*50bf276cStholo 
155*50bf276cStholo /* This header file was created by Joe Meadows, and is not copyrighted
156*50bf276cStholo    in any way. No guarantee is made as to the accuracy of the contents
157*50bf276cStholo    of this header file. This header file was last modified on Sep. 22th,
158*50bf276cStholo    1987. (Modified to include this statement) */
159*50bf276cStholo 
160*50bf276cStholo #define FJN$M_ONLY_RU 1
161*50bf276cStholo #define FJN$M_RUJNL 2
162*50bf276cStholo #define FJN$M_BIJNL 4
163*50bf276cStholo #define FJN$M_AIJNL 8
164*50bf276cStholo #define FJN$M_ATJNL 16
165*50bf276cStholo #define FJN$M_NEVER_RU 32
166*50bf276cStholo #define FJN$M_JOURNAL_FILE 64
167*50bf276cStholo #define FJN$S_FJNDEF 1
168*50bf276cStholo struct fjndef  {
169*50bf276cStholo   unsigned fjn$v_only_ru : 1;
170*50bf276cStholo   unsigned fjn$v_rujnl : 1;
171*50bf276cStholo   unsigned fjn$v_bijnl : 1;
172*50bf276cStholo   unsigned fjn$v_aijnl : 1;
173*50bf276cStholo   unsigned fjn$v_atjnl : 1;
174*50bf276cStholo   unsigned fjn$v_never_ru : 1;
175*50bf276cStholo   unsigned fjn$v_journal_file:1;
176*50bf276cStholo } ;
177