I have been following Johnny's and Ian's discussion, but since I know
so little about the internals of RSX-11 and VMS, I have not commented.

>Johnny Billquist wrote:
$OPEN, $CLOSE, and so on, are in RMS. RMS in turn do $QIO calls to perform the neccesary operations on the device. $QIO is the system call. $OPEN is an RMS function. RMS can, and will, definitely call the system to perform operations. But you can also circumvent RMS if you want to, by calling the device directly on your own.
Under RT-11, many of the distributed SAV programs
circumvent the USR and perform disk I/O directly,
especially when READ  ONLY access to the disk
is sufficient.

DIR, PIP and BINCOM are examples.  They read
the directories to obtain access to the files on the
disk, in particular when a "wild card" specification
is used for the files name.  I would imagine that this
would allow a system job access to the directory
on the disk even if a lower priority job was using the
USR.  I have never tested to determine if this is true,
but it is very likely.

Sometimes, both direct access and the USR are required,
in particular when some files are read and others are
written.  If examples of this type of activity are of interest,
please ask.

Jerome Fine