gn_closecnt Subroutine
Purpose
Maintains the using count on a gnode structure.
Syntax
Parameters
Item | Description | |
---|---|---|
gnode | Points to a gnode structure. | |
flags | Specifies the open mode (FREAD, FWRITE, FEXEC, FRSHARE) from the open file flags. |
Description
The gn_closecnt subroutine
uses the passed in flags value to determine the appropriate
using counts to decrease in the gnode structure. For example,
if the FREAD flag is set, the gn_closecnt subroutine
decreases the gn_rdcnt field. The following table shows the mapping
of the flags value to the counts field in the gnode structure:
Item | Description | |
---|---|---|
FREAD | gn_rdcnt | |
FWRITE | gn_wrcnt | |
FEXEC | gn_excnt | |
FRSHARE | gn_rshcnt |
Return Values
The gn_closecnt subroutine returns no return values.
Error Codes
The gn_closecnt subroutine returns no error codes.