Intel® Fortran Libraries Reference
Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference
2 Intel Fortran Libraries Referencemode(Input) Character*(*). Modes of accessibility to check for. Must be a character string of length oneor greater containing only the characters "r", "w", "x", or "" (a blank). These characters areinterpreted as follows.Characterrwx(blank)MeaningTests for read permissionTests for write permissionTests for execute permission. On Windows* systems, theextension of name must be .COM, .EXE, .BAT, .CMD, .PL, .KSH,or .CSH.Tests for existenceThe characters within mode can appear in any order or combination. For example, wrx and r arelegal forms of mode and represent the same set of inquiries.Results:The value of the result is INTEGER(4). It is zero if all inquiries specified by mode are true. Ifeither argument is invalid, or if the file cannot be accessed in all of the modes specified, one of thefollowing error codes is returned:• EACCES: Access denied; the file’s permission setting does not allow the specified access.• EINVAL: The mode argument is invalid.• ENOENT: File or path not found.For a list of error codes, see “IERRNO”.The name argument can contain either forward or backward slashes for path separators.On Windows* systems, all files are readable. A test for read permission always returns 0.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “GETFILEINFOQQ”, the INQUIRE statement in the Language ReferenceExampleUSE IFPORT! checks for read and write permission on the file "DATAFILE.TXT"J = ACCESS ("DATAFILE.TXT", "rw")PRINT *, J! checks whether "DATAFILE.TXT" is executable. It is not, since! it does not end in .COM, .EXE, .BAT, or .CMD2-4
Descriptions of the Library Routines 2J = ACCESS ("DATAFILE.TXT","x")PRINT *, JALARMPortability Function: Causes a subroutine to begin execution after a specified amount of time haselapsed.Module: USE IFPORTSyntaxresult = ALARM (time, proc)time(Input) Integer. Specifies the time delay, in seconds, between the call to ALARM and the timewhen proc is to begin execution. If time is 0, the alarm is turned off and no routine is called.proc(Input) Name of the procedure to call. The procedure takes no arguments and must be declaredEXTERNAL.Results:The return value is INTEGER(4). It is zero if no alarm is pending. If an alarm is pending (hasalready been set by a previous call to ALARM), it returns the number of seconds remaining untilthe previously set alarm is to go off, rounded up to the nearest second.After ALARM is called and the timer starts, the calling program continues for time seconds. Thecalling program then suspends and calls proc, which runs in another thread. When proc finishes,the alarm thread terminates, the original thread resumes, and the calling program resets the alarm.Once the alarm goes off, it is disabled until set again.If proc performs I/O or otherwise uses the Fortran library, you need to compile it with one of themultithread libraries. For more information on multithreading, see "Creating MultithreadApplications" in your user’s guide.The thread that proc runs in has a higher priority than any other thread in the process. All otherthreads are essentially suspended until proc terminates, or is blocked on some other event, such asI/O.No alarms can occur after the main process ends. If the main program finishes or any threadexecutes an EXIT call, than any pending alarm is deactivated before it has a chance to run.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “RUNQQ”2-5
- Page 5 and 6: ContentsCOMMITQQ...................
- Page 7 and 8: ContentsGETDRIVESIZEQQ.............
- Page 9 and 10: ContentsISATTY.....................
- Page 11 and 12: ContentsPXFCFGETISPEED ............
- Page 13 and 14: ContentsPXFPUTC ...................
- Page 15 and 16: ContentsSCROLLTEXTWINDOW ..........
- Page 17 and 18: ContentsSSWRQQ ....................
- Page 19 and 20: About This ManualThis manual descri
- Page 21 and 22: About This ManualAssociated Intel D
- Page 23 and 24: About This ManualCTRL{choice1 | cho
- Page 25 and 26: About This ManualPlatformLanguage O
- Page 27 and 28: Overview of the Libraries 1This cha
- Page 29 and 30: Overview of the Libraries 1Table 1-
- Page 31 and 32: Overview of the Libraries 1Table 1-
- Page 33 and 34: Overview of the Libraries 1Table 1-
- Page 35 and 36: Overview of the Libraries 1Table 1-
- Page 37 and 38: Overview of the Libraries 1TimeThe
- Page 39 and 40: Overview of the Libraries 1Table 1-
- Page 41 and 42: Overview of the Libraries 1Table 1-
- Page 43 and 44: Overview of the Libraries 1Table 1-
- Page 45 and 46: Overview of the Libraries 1Table 1-
- Page 47 and 48: Overview of the Libraries 1Table 1-
- Page 49 and 50: Overview of the Libraries 1Table 1-
- Page 51 and 52: Overview of the Libraries 1Table 1-
- Page 53 and 54: Descriptions of the LibraryRoutines
- Page 55: Descriptions of the Library Routine
- Page 59 and 60: Descriptions of the Library Routine
- Page 61 and 62: Descriptions of the Library Routine
- Page 63 and 64: Descriptions of the Library Routine
- Page 65 and 66: Descriptions of the Library Routine
- Page 67 and 68: Descriptions of the Library Routine
- Page 69 and 70: Descriptions of the Library Routine
- Page 71 and 72: Descriptions of the Library Routine
- Page 73 and 74: Descriptions of the Library Routine
- Page 76 and 77: 2 Intel Fortran Libraries Reference
- Page 79 and 80: Descriptions of the Library Routine
- Page 82 and 83: 2 Intel Fortran Libraries Reference
- Page 84 and 85: 2 Intel Fortran Libraries Reference
- Page 86 and 87: 2 Intel Fortran Libraries Reference
- Page 88 and 89: 2 Intel Fortran Libraries Reference
- Page 90 and 91: 2 Intel Fortran Libraries Reference
- Page 92 and 93: 2 Intel Fortran Libraries Reference
- 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
2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>mode(Input) Character*(*). Modes of accessibility to check for. Must be a character string of length oneor greater containing only the characters "r", "w", "x", or "" (a blank). These characters areinterpreted as follows.Characterrwx(blank)MeaningTests for read permissionTests for write permissionTests for execute permission. On Windows* systems, theextension of name must be .COM, .EXE, .BAT, .CMD, .PL, .KSH,or .CSH.Tests for existenceThe characters within mode can appear in any order or combination. For example, wrx and r arelegal forms of mode and represent the same set of inquiries.Results:The value of the result is INTEGER(4). It is zero if all inquiries specified by mode are true. Ifeither argument is invalid, or if the file cannot be accessed in all of the modes specified, one of thefollowing error codes is returned:• EACCES: Access denied; the file’s permission setting does not allow the specified access.• EINVAL: The mode argument is invalid.• ENOENT: File or path not found.For a list of error codes, see “IERRNO”.The name argument can contain either forward or backward slashes for path separators.On Windows* systems, all files are readable. A test for read permission always returns 0.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “GETFILEINFOQQ”, the INQUIRE statement in the Language <strong>Reference</strong>ExampleUSE IFPORT! checks for read and write permission on the file "DATAFILE.TXT"J = ACCESS ("DATAFILE.TXT", "rw")PRINT *, J! checks whether "DATAFILE.TXT" is executable. It is not, since! it does not end in .COM, .EXE, .BAT, or .CMD2-4