|
|
900 Series HP 3000 Computer Systems: MPE/iX Architected Interface Facility: Operating System Reference Manual > Chapter 3 Architected Interface DescriptionsAIFFILELGET |
|
Returns process-specific file information.
The fnum parameter passes the file number returned by the file system to the calling process at open (FOPEN/HPFOPEN) time. It is the number used to invoke the various file system intrinsics. PID passes the PID of the process that issued the FOPEN/HPFOPEN call. PID is optional and defaults to the calling process's PID. If there is no active process associated with PID, AIFFILELGET returns an error condition. If there is no process-specific active file associated with fnum, AIFFILELGET returns an error condition. The PID/file number pairs are obtainable in the following ways:
Since the PID/file number pair does not specify a file unique over the lifetime of a process, there is provision for accepting a UFID as a confirmation key. The PID/file number pair selects a particular file on the system, which can then be confirmed uniquely by matching its UFID with the UFID passed. If the confirmation fails, the AIFFILEGGET returns an error condition. If no UFID is passed, no such check is carried out. AIFFILEGGET is designed to make the differences between NM and CM files transparent. Thus, it can determine whether the file is an NM file or not. If it is an NM file, only the NM structures are accessed. However, if it is a CM file, the CM structures (PACB, LACB) need to be accessed. Note that this AIF will return an error (-33, "Invalid Fnum PID combination"), if an attempt is made to retrieve information for a remote file. MPE Files When you are interested in MPE file names only, the following items should be used. These items will continue to work exactly as they did before the introduction of the Hierarchical File System.
Note that the UFID item will still return valid data for an HFS file since a UFID is still unique for every file on the system. However, the UFID alone will not be enough information to identify a unique filename for a HFS file since the filename is no longer kept in the file label. MPE and HFS Files When interested in all files, the following items should be used:
Items Returned for Directory Files Prior to POSIX, these AIFs would return the value 0 for certain items when the file specified was a DIRECTORY file. Since users can now open DIRECTORY files, values other than 0 may be returned for these items. Below is a list of the items which would previously return 0 for DIRECTORY files:
You should exercise caution when retrieving the list of file sharers (item 4017) for the system directory file, $ROOT, since every process will have this file opened. System performance could be adversely effected. |
|