Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

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* 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