Guardian Programmer's Guide

Table Of Contents
Introduction to Guardian Programming
Guardian Programmer’s Guide 421922-014
1 - 4
The File System
By interacting with the Tandem Advanced Command Language (TACL) command
interpreter
This guide describes how to use Guardian procedures. For information about entering
commands at the command-interpreter prompt, see the TACL Reference Manual.
The following paragraphs describe the system services available to the application or
system programmer through Guardian procedures and provide an overview of how
these services might be used when writing an application.
The File System
The file system provides access to data and devices. Specifically, the file system
provides the following services to the application or system programmer:
File identification through file names
Control over concurrent access to files
Waited and nowait I/O
Access to structured and unstructured disk files through the Enscribe database
record manager
Communication between processes (interprocess communication)
The ability to perform file-name substitution or pass values to a process using
DEFINEs
Access to devices
The following paragraphs introduce each of these services and two additional sets of
routines that are related to the file system but not part of it: the SIO (sequential
input/output) routines and the IOEdit routines.
Files and File Names
The file system provides a set of Guardian procedures that you can use not only to
access files on disk but also to access a wide variety of other entities, including
terminals, printers, tapes, and processes; in other words, anything your program can
do I/O to. It is possible to do this because the file system treats all these entities as
files. This way, the file system is able to mask as far as practical the differences
between devices but give access to file-type-specific features where needed.
A file name is not necessarily the name of a disk file. A file name is a character string
pr
esented to a Guardian procedure (such as the FILE_OPEN_ procedure) in order to
open a connection through the file system. The file name identifies an object to read or
write, such as a disk file, a terminal, a printer, or a process.
Section 2, Using the File System, describes files and file names in detail and provides
information on how to perform common tasks on files, such as opening, closing,
reading, and writing.