Guardian Programmer's Guide

Table Of Contents
Introduction to Guardian Programming
Guardian Programmer’s Guide 421922-014
1 - 5
The File System
Operations that you can perform on file names are described in Section 13,
Manipulating File Names. For example, you can scan a string of characters to see
whether it contains a valid file name, or you can modify portions of a file name.
Concurrent File Access
Because the operating system provides a multiprocessing environment, it is possible
that more than one process may try to access the same data concurrently. The
operating system therefore provides services that each process can use when
accessing data and devices to protect them from corruption by other processes. You
can apply this protection at the file or record level.
Section 3, Coordinating Concurrent File Access, provides details of file-level locking
and concurrency control for all types of files. Section 5, Communicating With Disk
Files, provides information about locking at the record level for disk files.
Waited and Nowait I/O
Having initiated an I/O operation, a process normally waits for the I/O operation to
finish before it continues. This operation is known as waited I/O.
In nowait I/O, a process continues processing after initiating the I/O. The process and
the I/O then proceed in parallel. This feature of nowait I/O can be used, for example,
in a process that prompts several terminals for input. Such a process can have several
I/O operations outstanding at once, and it can then respond to the first terminal that
responds.
In addition to allowing the application to proceed in parallel with an I/O operation,
nowait I/O can also be used to specify a time limit for an I/O operation. For example,
an application can prompt a user to log on to the application, then stop itself if the user
does not respond within a given time.
Section 4, Using Nowait Input/Output, provides details of waited and nowait I/O.
Disk-File Access
Disk files are either NonStop SQL files or Enscribe files. For information on how to
access NonStop SQL files, see the NonStop SQL manuals. This guide discusses
Enscribe files.
Using the Enscribe database record manager, you can work with key-sequenced files,
entry-sequenced files, and relative files, as well as with unstructured files.
Section 5, Communicating With Disk Files, describes access to Enscribe disk data files
using Guardian procedure calls.
In addition to accessing Enscribe files directly through the Guardian procedures
described in this guide, you can also access disk files using the TM/MP software; see
the NonStop TM/MP Application Programmers Guide for details.