Communicator 3000 MPE/iX Release 6.0 (Platform Software Release C.60.00) (30216-90269)

Chapter 10 197
Technical Articles
CI Enhancements
The FLABELINFO intrinsic and FINFO() function are able to return
the number of sectors and extents a file occupies, file creation time,
and the number of accessors to a file.
The PAUSE command can now wait for one or more jobs to complete,
to change state from waiting to executing, or to begin execution.
The INPUT command allows the number of characters to read from
$STDIN to be specified.
The PRINT command is now able to display all data in a file, even if
this data appears to be line numbers. The new NONUM option enables
this feature.
LISTF/LISTFILE Enhancements
Syntax
LISTF [fileset][,listlevel][;listfile]
LISTFILE [fileset[,fileset[,...]]]
[[;FORMAT=]format_opt]
[[;SELEQ=]select_eq indir]
[[;NAME=] pattern]
[;PASS]
[;{PERM}{TEMP}{PERMTEMP}]
[;USENAME][;TREE][;NOTREE]
The LISTF and LISTFILE commands allow users to discover who is
accessing files on their system, including remote accessors. The existing
syntaxes remain the same; however, new format numbers, format
mnemonics, and selection equations can be specified as a result of this
enhancement.
New Formats
Two new formats have been added: format 8 or "access," and format 9 or
"locks." Both the LISTFILE and LISTF commands support these
formats, although only LISTFILE is able to use the format mnemonic.
Format 8 shows greater access-related details compared to the existing
format 3, as well as displaying individual file accessors. Format 9 is a
superset of format 8. All of the format 8 data is shown with specific
details about each process accessing the file, including information
about which locks a process owns or is waiting for. A detailed
description of the items displayed for the two new formats and
examples are shown below.
The selection equation parameter of the LISTFILE command is also
enhanced. The new SELEQ= choices allow selection of only files that are
currently opened, in use, locked, or opened exclusively. If a file is not
opened as specified in the selection equation, it is skipped. Also, files
can be selected based on their file code number or mnemonic. The file
code mnemonic PRIV includes all privileged files, that is, those files
with a negative file code. More details on the access SELEQ choices
appear later in this article.