Trailing-Edge
-
PDP-10 Archives
-
ap-c800d-sb
-
ftdefs.mac
There are 9 other files named ftdefs.mac in the archive. Click here to see a list.
; UPD ID= 1664 on 1/12/79 at 3:10 PM by N:<NIXON>
UNIVERSAL FTDEFS FILE-TABLE DEFINIFITIONS FOR CBLIO AND SORT
;THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED
; OR COPIED IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE.
;
;COPYRIGHT (C) 1975, 1979 BY DIGITAL EQUIPMENT CORPORATION
;****** REVISION HISTORY
; EDIT 545 STORE NO. OF CHARACTERS IN VAR. LEN. RECORD IN FILE TABLE.
;***** V11 *****
; EDIT 427 FIX STAND ALONE CSORT SO FILE TABLE IS SET UP PROPERLY
; EDIT 422 FIX STAND ALONE CSORT SO IT WON' T ALWAYS ASK THE 'IS FILE PRESENT' QUESTION
%%FTDF==2 ;EDIT NUMBER
I16==16 ;16 HAS POINTER TO FILE-TABLE
;DEVICE TABLE CONSTANTS JUN-78 TABLE IS 40 WORDS LONG
D.CLRR==-34 ;[545] NO. OF CHARACTERS IN LAST RECORD READ
D.WPR=-33 ; NO. OF WORDS PER RECORD
D.LBN=-32 ; LAST BLOCK OF SEQIO FILE
D.FCPL=-31 ; FREE CHARS PER LOG-BLOCK
D.TCPL=-30 ; TOTAL CHARS PER LOG-BLOCK
D.WCNV=-27 ; THE WRITE CONVERSION INSTRUCTION
D.RCNV=-26 ; THE READ CONVERSION INSTRUCTION
D.BPW=-25 ;BYTES PER WORD
D.RD=-24 ;RERUN DEVICE NAME IN SIXBIT
D.F1=-23 ;0-17 FLG1
D.IBL=-23 ; [377] 18-35 ISAM SAVE AREA FOR SHARED BUFFER
D.IE=-22 ;# OF INPUTS EXECUTED
D.OE=-21 ;# OF OUTPUTS EXECUTED
D.LRS=-20 ;18-35 LABEL RECORD SIZE
D.BL=-20 ;0-17 BUFFER LOCATION
D.RFLG=-17 ; 18-35 FLAGS, SASCII=1
D.HF=-17 ;BIT-17 HUF FLAG
D.LF=-17 ;BIT-16 LOCK FLAG
D.CN=-17 ;12-15 IO CHANNEL NUMBER
D.RN=-17 ;0-11 MAGTAPE REEL NUMBER
D.CBN=-16 ;CURRENT PHYSCIAL BLOCK NUMBER
D.BPL=-15 ;# OF BUFFERS PER LOGICAL BLOCK
D.BCL=-14 ;# OF BUFFERS TO FILL CURRENT LOGICAL BLOCK
D.RCL=-13 ;# OF RECORDS TO FILL CURRENT LOGICAL BLOCK
D.ICD=-12 ;IOWD FOR CURRENT DEVICE
D.OBH=-11 ;OUTPUT BUFFER HEADER
D.OBB=-10 ;OUTPUT BUFFER BYTE POINTER
D.OBC=-7 ;OUTPUT BUFFER BYTE COUNT
D.IBH=-6 ;INPUT BUFFER HEADER
D.IBB=-5 ;INPUT BUFFER BYTE POINTER
D.IBC=-4 ;INPUT BUFFER BYTE COUNT
D.RRD=-3 ;# OF RECORDS TO A RERUN DUMP
D.RP=-2 ;# OF RECORDS PROCESSED
D.DC=-1 ;DEVICE CHARACTERISTICS
D.OPT=-1 ;-1 IF A "NOT-PRESENT" OPTIONAL ISAM FILE
DB.HF==1B17 ;HUF (HEAD UNDER FILE) FLAG
F%BLF==POINT 1,D.LF(I16),16 ;LOCK FLAG
F%BHF==POINT 1,D.HF(I16),17 ;HUF FLAG
F%BCN==POINT 4,D.CN(I16),15 ;CHANNEL NUMBER
F%BIBS==POINT 6,D.IBB(I16),11 ;INPUT BUFFER BYTE SIZE
F%BOBS==POINT 6,D.OBB(I16),11 ;OUTPUT BUFFER BYTE SIZE
F%BRN==POINT 12,D.RN(I16),11 ;MTA REEL NUMBER
;FILE TABLE CONSTANTS
F.SIZE==40 ; SIZE OF FILE TABLE
F.WFNM==0 ; 30 CHARACTER PROGRAM NAME - SIXBIT
F.WCVR==5 ; COMPILER'S VERSION NUMBER
F.WBLC==5 ; BUFFER LOCATION IS ASSIGNED - BUFLOC
F.WSDF==5 ; SORT-DESCRIPTION FILE FLAG - SRTFIL
F.WNOD==5 ; NUMBER OF DEVICES ASSIGNED TO FILE
F.WDNM==5 ; ADR OF FIRST DEVICE NAME - SIXBIT
F.WNFL==6 ; [68] NUMBER OF FILE LIMIT CLAUSES
F.WFAM==6 ; [74] FILE ACCESS MODE
F.WPMT==6 ; FILE POSITION ON MAG-TAPE
F.RNFT==6 ; LINK TO NEXT FILE TABLE
F.WNAB==7 ; NUMBER OF ALTERNATE BUFFERS
F.WMRS==7 ; MAXIMUM RECORD SIZE IN CHARS
F.RRRC==7 ; NUMBER OF RECORDS BETWEEN RERUN DUMPS
F.WFLG==10 ; FLAGS,,ADR OF RECORD AREA
F.RREC==10 ; ADDRESS OF RECORD AREA
F.LNLS==11 ; SIZE OF NON-STANDARD LABEL
F.RFSD==11 ; LINK TO FILE-TABLE THAT SHARES DEVICE
F.WBKF==12 ; THE BLOCKING FACTOR
F.RACK==12 ; ADR OF ACTUAL KEY TABLE
F.WVID==13 ; BYTE POINTER TO VALUE OF ID
F.WVDW==14 ; BYTE POINTER TO VALUE OF DATE WRITTEN
F.LSBA==15 ; LINK TO FILE-TABLE THAT SHARES BUFFER AREA
F.REUP==15 ; ADR OF ERROR USE PROCEDURE
;[68] COBOL-68 ITEMS
F.LBBR==16 ; BEFORE-BEGINNING-REEL USE PROCEDURE
F.RBBF==16 ; BEFORE-BEGINNING-FILE USE PROCEDURE
F.LABR==17 ; AFTER-BEGINNING-REEL USE PROCEDURE
F.RABF==17 ; AFTER-BEGINNING-FILE USE PROCEDURE
F.LBER==20 ; BEFORE-ENDING-REEL USE PROCEDURE
F.RBEF==20 ; BEFORE-ENDING-FILE USE PROCEDURE
F.LAER==21 ; AFTER-ENDING-REEL USE PROCEDURE
F.RAEF==21 ; AFTER-ENDING-FILE USE PROCEDURE
;[74] COBOL-74 ITEMS
F.LCP==16 ;LINAGE-COUNTER POINTER
F.LPP==17 ;LINES PER PAGE (LHS)
F.WFA==17 ;WITH FOOTING AT (RHS)
F.LAT==20 ;LINES AT TOP (LHS)
F.LAB==20 ;LINES AT BOTTOM (RHS)
F.LCI==21 ;LINAGE COUNTER INITAILIZATION (RHS)
F.WDNS==22 ; MAG-TAPE DENSITY
F.WDIO==22 ; DEFERRED ISAM OUTPUT FLAG
F.WOUP==22 ; OPEN USE-PROCEDURE WHEN ENTER FAILS
F.RPPN==22 ; ADR OF USER-NUMBER
F.RMS==22 ; RMS FLAG
F.WBM==22 ; BYTE MODE
F.CKP==22 ; CHECKPOINT FLAG
F.WBSK==23 ; BYTE POINTER TO SYMBOLIC KEY
F.WBRK==24 ; BYTE POINTER TO RECORD KEY
F.WIKD==25 ; ISAM KEY DESCRIPTION WORD
F.WSMU==26 ; 0-8= OWNER ACCESS 9-17= OTHERS ACCESS
; 18-35= RETAINED REC COUNT
F.WPFS==27 ; POINTER TO FILE-STATUS DATA-ITEM
F.WPEN==30 ; POINTER TO ERROR-NUMBER DATA-ITEM
F.WPAC==31 ; POINTER TO ACTION-CODE DATA-ITEM
F.WPID==32 ; POINTER TO VALUE-OF-ID DATA-ITEM
F.WPBN==33 ; POINTER TO BLOCK-NUMBER DATA-ITEM
F.WPRN==34 ; POINTER TO RECORD-NUMBER DATA-ITEM
F.WPFN==35 ; POINTER TO FILE-NAME DATA-ITEM
F.WPFT==36 ; POINTER TO FILE-TABLE ADR DATA-ITEM
F.WLHL==37 ; POINTER TO LOW,,HIGH FILE LIMIT
F%BCVR==POINT 6,F.WCVR(I16),5 ; COMPILER'S VERSION NUMBER
F%BBLC==POINT 1,F.WBLC(I16),6 ; BUFFER LOCATION IS ASSIGNED - BUFLOC
F%BSDF==POINT 1,F.WSDF(I16),7 ; SORT-DESCRIPTION FILE FLAG - SRTFIL
F%BNOD==POINT 6,F.WNOD(I16),17 ; NUMBER OF DEVICES ASSIGNED TO FILE
F%BDNM==POINT 18,F.WDNM(I16),35 ; ADR OF FIRST DEVICE NAME
F%BNFL==POINT 5,F.WNFL(I16),4 ; [68] NUMBER OF FILE LIMIT CLAUSES
F%BFAM==POINT 2,F.WFAM(I16),4 ; [74] FILE ACCESS MODE
F%BPMT==POINT 6,F.WPMT(I16),17 ; FILE POSITION ON MAG-TAPE
F%BNFT==POINT 18,F.RNFT(I16),35 ; LINK TO NEXT FILE-TABLE
F%BNAB==POINT 6,F.WNAB(I16),5 ; NUMBER OF ALTERNATE BUFFERS
F%BMRS==POINT 12,F.WMRS(I16),17 ; MAXIMUM RECORD SIZE IN CHARS
F%BLTP==POINT 2,F.WFLG(I16),3 ; LABEL TYPE
F%BDDM==POINT 3,F.WFLG(I16),9 ; DEVICE DATA MODE
F%BCDM==POINT 2,F.WFLG(I16),15 ; CORE DATA MODE
F%BREC==POINT 18,F.RREC(I16),35 ; ADR OF RECORD AREA
F%BNLS==POINT 18,F.LNLS(I16),17 ; SIZE OF NON-STD-LABEL RECORD
F%BBKF==POINT 12,F.WBKF(I16),17 ; THE BLOCKING FACTOR
F%BPPN==POINT 18,F.RPPN(I16),35 ; ADR OF PPN
F%BPAR==POINT 1,F.WDNS(I16),4 ; MAG-TAPE PARITY
F%BDNS==POINT 3,F.WDNS(I16),2 ; MAG-TAPE DENSITY
F%BDIO==POINT 1,F.WDIO(I16),5 ; DEFERRED ISAM OUTPUT FLAG
F%BOUP==POINT 1,F.WOUP(I16),6 ; OPEN USE-PROCEDURE WHEN ENTER FAILS
F%BRMS==POINT 1,F.RMS(I16),7 ; RMS FLAG
F%BBM==POINT 1,F.WBM(I16),8 ; BYTE MODE FLAG
F%BCKP==POINT 1,F.CKP(I16),9 ; CHECKPOINT ISAM FLAG
;FLAGS IN LEFT SIDE OF "F.WFLG(I16)" BEFORE RESET
BR%VLE==1B0 ;VARIABLE LENGTH EBCDIC RECORDS
BR%NSL==1B2 ;NON STANDARD LABELS
BR%STL==1B3 ;STANDARD LABELS
BR%IO==1B6 ;FILE IS AN INPUT/OUTPUT FILE
;BIT 7-9 ;0 = SIXBIT DEVICE DATA MODE
;1 = BINARY
;2 = ASCII
;3 = EBCDIC
;4 = ASCII-8
;5-7 NOT USED
BR%RER==1B10 ;RERUN DUMP AT END-OF-REEL
BR%RRC==1B11 ;RERUN DUMP VIA RECORD-COUNT
BR%OPF==1B13 ;OPTIONAL FILE
;BIT 14-15 ;0 = SIXBIT CORE DATA MODE
;1 = BINARY
;2 = ASCII
;3 = EBCDIC
;BIT 16-17 ;0 = SEQUENTIAL FILE
;1 = RANDOM FILE
;2 = INDEXED-SEQ FILE
;3 = NOT USED
;[427] POINTERS TO THINGS AFTER RESET.
F%ADDM==POINT 4,F.WFLG(I16),3 ;[427] DEVICE DATA MODE
;[427] ASCII 10
;[427] SIXBIT 04
;[427] EBCDIC 02
;[427] BINARY 01
F%ACDM==POINT 3,F.WFLG(I16),14 ;[427] CORE DATA MODE.
;[427] ASCII 4
;[427] SIXBIT 2
;[427] EBCDIC 1
;RANDOM ACCESS CONSTANTS
R.IOWD==0 ; IOWRD FOR RANDOM/IO FILES
R.TERM==1 ; IOWRD TERMINATOR
R.BPNR==2 ; BYTE POINTER TO NEXT RECORD IN BUFFER
R.BPLR==3 ; LAST RECORD
R.BPFR==4 ; FIRST RECORD
R.DATA==6 ; BUFFER HAS ACTIVE DATA TO BE WRITTEN OUT
R.WRIT==7 ; LAST IO OPERATION FOR THIS FILE WAS A WRITE
R.FLMT==10 ;[68] AOBJ POINTER TO FILE LIMITS
R.STRT==10 ;[74] LAST IO OPERATION FOR THIS FILE WAS A START
END