1 /* BEGIN INCLUDE FILE gtss_dfd_ext_.incl.pl1 */
  2 /*
  3   Created:  (Wardd Multics)  06/09/78 1650.6 mst Fri
  4 */
  5 
  6 dcl 1 gtss_dfd_ext_$disk_file_data (41) aligned ext,                  /* disk_file_data structure */
  7 
  8     3 gtss_disk,
  9       4 dir_name char (168) unal,                           /* containing directory for file */
 10       4 entry_name char (32) unal,                          /* entry name for file */
 11       4 fcb_ptr ptr aligned,                                /* ptr to file control block */
 12       4 msf_array_ptr ptr,                                  /* Pointer to an array of pointers for a msf. Each
 13                                                                component which has been accessed has a corresponding
 14                                                                initialized pointer.  Currently 500 components
 15                                                                are supported. */
 16       4 single_segment_ptr ptr,                             /* Pointer to segment for single segment file */
 17       4 indicators aligned,                                 /* one word of flags */
 18 
 19         5 msf bit (1) unaligned,                            /* 1=msf segment | 0= single segment */
 20         5 protected_file bit (1) unaligned,                 /* 1=file uses protections | 0= unprotected */
 21         5 fill bit (34) unal,
 22 
 23       4 permissions aligned,
 24         5 read bit (1) unaligned,                           /* 1=read permission  */
 25         5 execute bit (1) unaligned,                        /* 1=execute permission */
 26         5 write bit (1) unaligned,                          /* 1=write permission */
 27         5 fill2 bit (33) unaligned,                         /* unused at this time */
 28 
 29       4 access_mode bit (6) aligned,                        /* contains the mode by which the file was accessed */
 30       4 component fixed bin,                                /* current component value (first component = 0) */
 31       4 offset fixed bin (24),                              /* current word offset in the component */
 32       4 file_position fixed bin (30),                       /* current file position in words */
 33       4 file_size fixed bin (30),                           /* size of file in words */
 34       4 no_components fixed bin (24),                       /* number of components for a msf */
 35       4 attributes_ptr ptr,                                 /* Pointer to the attributes structure
 36                                                                for this file. (See gtss_file_attributes.incl.pl1) */
 37 
 38       4 pat_body,
 39 
 40         5 word_0,
 41           6 defective bit (1) unal,                         /* 1 = file has defective space */
 42           6 io_errors bit (1) unal,                         /* 1 = I/O errors encountered on file */
 43           6 reserved bit (2) unal,                          /* Reserved for GCOS */
 44           6 sct bit (12) unal,                              /* address of SCT for device on which
 45                                                                file begins or if cataloged,
 46                                                                for device with file catalog entry */
 47           6 reserved2 bit (2) unal,                         /* Reserved for GCOS */
 48 
 49         5 word_1,
 50           6 io_time fixed bin (35),                         /* I/O time for this file */
 51 
 52         5 word_2,
 53           6 protected bit (1) unal,                         /* 1 = file has protected allocation */
 54           6 hash_code bit (5) unal,                         /* hash code of user name under which
 55                                                                file is cataloged */
 56           6 not_cat bit (1) unal,                           /* 1 = file is not cataloged */
 57           6 last_desc bit (1) unal,                         /* 1 = last descriptor for file is not in memory */
 58           6 random bit (1) unal,                            /* 1 = access to file is random */
 59           6 perm bit (1) unal,                              /* 1 = file space is permanently assigned */
 60           6 first_desc bit (1) unal,                        /* 1 = first descriptor for file is not in memory */
 61           6 creator bit (1) unal,                           /* 1 = user is not creator of file */
 62           6 disposition bit (2) unal,                       /* Abort disposition code
 63                                                                00 = Release
 64                                                                01 = Dismount
 65                                                                10 = Save
 66                                                                11 = Continue */
 67           6 ids1 bit (1) unal,                              /* 1 = file is an I-D-S/I file */
 68           6 write_performed bit (1) unal,                   /* 1 = write was performed on file */
 69           6 unpermitted_access bit (1) unal,                /* 1 = unpermitted access to file attempted or seek
 70                                                                attempted to part of file marked defective (only
 71                                                                for procted allocation) */
 72           6 purge bit (1) unal,                             /* 1 = file space to be purgedbefore deallocating file. */
 73           6 sector_number bit (18) unal,                    /* If cataloged file, sector number of file catalog
 74                                                                (on device with SCT referenced in word 0).  If
 75                                                                cataloged file that is proctected (bit 0 ON in this
 76                                                                word), memory location of table in File Management
 77                                                                Supervisor Executive.  If user temporary file,
 78                                                                largest size file has ever attained, in llinks.
 79                                                                If system value equals 777777 octal, it is system
 80                                                                file created by System Input. */
 81 
 82         5 word_3,
 83           6 llink_size bit (14) unal,                       /* 0-13 ^= 0, Current total file size in llinks
 84                                                                0-13 = 0, File size is greater than 16,383 llinks,
 85                                                                and if the file is cataloged, call to .MFS19,5 with
 86                                                                offset to PAT pointer in index 5 will cause bits
 87                                                                14-35 of Q-register to be set to file size. (Unless
 88                                                                there is a Seek error on file catalog in which case
 89                                                                zero is returned. )
 90                                                                */
 91           6 llink_position bit (22) unal,                   /* Relative llink position within the space descriptors
 92                                                                in memory. */
 93 
 94         5 word_4,
 95           6 not_last_desc bit (1) unal,                     /* 1 = not last descriptor in memory */
 96           6 space_desc bit (1) unal,                        /* 0 = this is space descriptor */
 97           6 space_defective bit (1) unal,                   /* 1 = Space is defective */
 98           6 extent bit (15) unal,                           /* Number of llinks in this extent (area defined by this
 99                                                                descriptor) */
100           6 origin bit (18) unal;                           /* device llinks number of origin of this extent */
101 /*   END INCLUDE FILE gtss_dfd_ext_.incl.pl1 */