Intel® Fortran Compiler 18.0 Developer Guide and Reference

INQUIRE: SHARE Specifier

The SHARE specifier asks the current share status of a file or unit. It takes the following form:

SHARE = shr

shr

Is a scalar default character variable.

On Windows* systems, this variable is assigned one of the following values:

'DENYRW'

If the file is connected for deny-read/write mode

'DENYWR'

If the file is connected for deny-write mode

'DENYRD'

If the file is connected for deny-read mode

'DENYNONE'

If the file is connected for deny-none mode

'UNKNOWN'

If the file or unit is not connected

On Linux* and macOS* systems, this variable is assigned one of the following values:

'DENYRW'

If the file is connected for exclusive access

'DENYNONE'

If the file is connected for shared access

'NODENY'

If the file is connected with default locking

'UNKNOWN'

If the file or unit is not connected