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

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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