Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries ReferenceElement Description Values or Notesstatb(1) Device the file resides on W*32, W*64: Always 0L*X: System dependentstatb(2) File inode number W*32, W*64: Always 0L*X: System dependentstatb(3) Access mode of the file See the table in Resultsstatb(4) Number of hard links to the file W*32, W*64: Always 1L*X: System dependentstatb(5) User ID of owner W*32, W*64: Always 1L*X: System dependentstatb(6) Group ID of owner W*32, W*64: Always 1L*X: System dependentstatb(7) Raw device the file resides on W*32, W*64: Always 0L*X: System dependentstatb(8) Size of the filestatb(9) Time when the file was last accessed 1W*32, W*64: Only available onnon-FAT file systems; undefined onFAT systemsL*X: System dependentstatb(10) Time when the file was last modified 1statb(11) Time of last file status change 1 W*32, W*64: Same as stat(10)L*X: System dependentstatb(12) Blocksize for file system I/O operations W*32, W*64: Always 1L*X: System dependent1. Times are in the same format returned by the TIME function (number of seconds since 00:00:00 Greenwich mean time, January 1, 1970).Results:The result type is INTEGER(4). The result is zero if successful; otherwise, returns an error codeequal to EINVAL (lunit is not a valid unit number, or is not open).The access mode (the third element of statb) is a bitmap consisting of an IOR of the followingconstants:Symbolic name Constant Description NotesS_IFMT O'0170000' Type of fileS_IFDIR O'0040000' DirectoryS_IFCHR O'0020000' Character special Never set on Windows* systems2-92
Descriptions of the Library Routines 2Symbolic name Constant Description NotesS_IFBLK O'0060000' Block special Never set on Windows systemsS_IFREG O'0100000' RegularS_IFLNK O'0120000' Symbolic link Never set on Windows systemsS_IFSOCK O'0140000' Socket Never set on Windows systemsS_ISUID O'0004000' Set user ID on execution Never set on Windows systemsS_ISGID O'0002000' Set group ID on execution Never set on Windows systemsS_ISVTX O'0001000' Save swapped text Never set on Windows systemsS_IRWXU O'0000700' Owner’s file permissionsS_IRUSR, S_IREAD O'0000400' Owner’s read permission Always true on Windows systemsS_IWUSR, S_IWRITE O'0000200' Owner’s write permissionS_IXUSR, S_IEXEC O'0000100' Owner’s execute permission Based on file extension (.EXE, .COM,.CMD, or .BAT)S_IRWXG O'0000070' Group’s file permissions Same as S_IRWXU on WindowssystemsS_IRGRP O'0000040' Group’s read permission Same as S_IRUSR on WindowssystemsS_IWGRP O'0000020' Group’s write permission Same as S_IWUSR on WindowssystemsS_IXGRP O'0000010' Group’s execute permission Same as S_IXUSR on WindowssystemsS_IRWXO O'0000007' Other’s file permissions Same as S_IRWXU on WindowssystemsS_IROTH O'0000004' Other’s read permission Same as S_IRUSR on WindowssystemsS_IWOTH O'0000002' Other’s write permission Same as S_IWUSR on WindowssystemsS_IXOTH O'0000001' Other’s execute permission Same as S_IXUSR on WindowssystemsSTAT returns the same information as FSTAT, but accesses files by name instead of external unitnumber.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: the INQUIRE statement in the Language Reference, “STAT”2-93
- Page 94 and 95: 2 Intel Fortran Libraries Reference
- Page 96: 2 Intel Fortran Libraries Reference
- Page 100 and 101: 2 Intel Fortran Libraries Reference
- Page 102 and 103: 2 Intel Fortran Libraries Reference
- Page 104 and 105: 2 Intel Fortran Libraries Reference
- Page 106 and 107: 2 Intel Fortran Libraries Reference
- Page 108 and 109: 2 Intel Fortran Libraries Reference
- Page 110 and 111: 2 Intel Fortran Libraries Reference
- Page 112 and 113: 2 Intel Fortran Libraries Reference
- Page 114 and 115: 2 Intel Fortran Libraries Reference
- Page 116 and 117: 2 Intel Fortran Libraries Reference
- Page 118 and 119: 2 Intel Fortran Libraries Reference
- Page 120 and 121: 2 Intel Fortran Libraries Reference
- Page 122 and 123: 2 Intel Fortran Libraries Reference
- Page 124 and 125: 2 Intel Fortran Libraries Reference
- Page 126 and 127: 2 Intel Fortran Libraries Reference
- Page 128 and 129: 2 Intel Fortran Libraries Reference
- Page 130 and 131: 2 Intel Fortran Libraries Reference
- Page 132 and 133: 2 Intel Fortran Libraries Reference
- Page 134 and 135: 2 Intel Fortran Libraries Reference
- Page 136 and 137: 2 Intel Fortran Libraries Reference
- Page 138 and 139: 2 Intel Fortran Libraries Reference
- Page 140 and 141: 2 Intel Fortran Libraries Reference
- Page 142 and 143: 2 Intel Fortran Libraries Reference
- Page 146 and 147: 2 Intel Fortran Libraries Reference
- Page 148 and 149: 2 Intel Fortran Libraries Reference
- Page 150 and 151: 2 Intel Fortran Libraries Reference
- Page 152 and 153: 2 Intel Fortran Libraries Reference
- Page 154 and 155: 2 Intel Fortran Libraries Reference
- Page 156 and 157: 2 Intel Fortran Libraries Reference
- Page 158 and 159: 2 Intel Fortran Libraries Reference
- Page 160 and 161: 2 Intel Fortran Libraries Reference
- Page 162 and 163: 2 Intel Fortran Libraries Reference
- Page 164 and 165: 2 Intel Fortran Libraries Reference
- Page 166 and 167: 2 Intel Fortran Libraries Reference
- Page 168 and 169: 2 Intel Fortran Libraries Reference
- Page 170 and 171: 2 Intel Fortran Libraries Reference
- Page 172 and 173: 2 Intel Fortran Libraries Reference
- Page 174 and 175: 2 Intel Fortran Libraries Reference
- Page 176 and 177: 2 Intel Fortran Libraries Reference
- Page 178 and 179: 2 Intel Fortran Libraries Reference
- Page 180 and 181: 2 Intel Fortran Libraries Reference
- Page 182 and 183: 2 Intel Fortran Libraries Reference
- Page 184 and 185: 2 Intel Fortran Libraries Reference
- Page 186 and 187: 2 Intel Fortran Libraries Reference
- Page 188 and 189: 2 Intel Fortran Libraries Reference
- Page 190 and 191: 2 Intel Fortran Libraries Reference
- Page 192 and 193: 2 Intel Fortran Libraries Reference
2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>Element Description Values or Notesstatb(1) Device the file resides on W*32, W*64: Always 0L*X: System dependentstatb(2) File inode number W*32, W*64: Always 0L*X: System dependentstatb(3) Access mode of the file See the table in Resultsstatb(4) Number of hard links to the file W*32, W*64: Always 1L*X: System dependentstatb(5) User ID of owner W*32, W*64: Always 1L*X: System dependentstatb(6) Group ID of owner W*32, W*64: Always 1L*X: System dependentstatb(7) Raw device the file resides on W*32, W*64: Always 0L*X: System dependentstatb(8) Size of the filestatb(9) Time when the file was last accessed 1W*32, W*64: Only available onnon-FAT file systems; undefined onFAT systemsL*X: System dependentstatb(10) Time when the file was last modified 1statb(11) Time of last file status change 1 W*32, W*64: Same as stat(10)L*X: System dependentstatb(12) Blocksize for file system I/O operations W*32, W*64: Always 1L*X: System dependent1. Times are in the same format returned by the TIME function (number of seconds since 00:00:00 Greenwich mean time, January 1, 1970).Results:The result type is INTEGER(4). The result is zero if successful; otherwise, returns an error codeequal to EINVAL (lunit is not a valid unit number, or is not open).The access mode (the third element of statb) is a bitmap consisting of an IOR of the followingconstants:Symbolic name Constant Description NotesS_IFMT O'0170000' Type of fileS_IFDIR O'0040000' DirectoryS_IFCHR O'0020000' Character special Never set on Windows* systems2-92