HP 3000 Manuals

Accessing Files Programmer's Guide MPE/iX 5.0 Documentation


Accessing Files Programmer's Guide

Table of Contents

 Accessing Files Programmer's Guide
   Accessing Files Programmer's Guide : COPYRIGHT NOTICE

   Ch 1.  Introduction
      Disk Files and Device Files
      Topics in this Manual

   Ch 2.  Creating A File
      The HPFOPEN Intrinsic
          NOWAIT I/O
          NOWAIT I/O intrinsics
          Aborting NOWAIT I/O
          Limitations
      The FOPEN Intrinsic
      The BUILD Command
      The FILE Command
      Summary of Overrides
      Specifying a Record Format
          Fixed-length records
          Variable-length records
          Undefined-length records
      Specifying a File Type
          Standard files
          KSAM files
          RIO files
          Circular files
          Message files
      Specifying Record Size
      Specifying Disk Volume Restrictions
      Specifying a File Code
      Specifying Storage Format

   Ch 3.  Specifying a File Designation
      MPE/iX File Designators
      User-Defined Files
          Lockwords
          Backreferencing files
      System-Defined Files
          Input/Output sets
          Passed files
      Using Command Interpreter Variables and Expressions Within File Designators
      Parsing and Validating File Designators

   Ch 4.  Specifying a File Domain
      New Files
      Temporary Files
      Permanent Files
      Changing Domains
      Searching File Directories
      Listing Files

   Ch 5.  Opening a File
      How the File System Opens a File
      Which to Use: HPFOPEN or FOPEN
      Opening a Disk File
          Opening a new disk file
          Opening a permanent disk file
      Opening a System-Defined File
          Opening $STDIN
          Opening $STDLIST
      Opening a Device File
          Device-dependent file characteristics
          New and permanent device files
          Opening an unlabeled magnetic tape file
          Opening a labeled magnetic tape file

   Ch 6.  Closing a File
      How the File System Closes a File
      Closing a Disk File
          Closing a new disk file as permanent
          Closing a permanent disk file
      Closing a Magnetic Tape File

   Ch 7.  Record Selection and Data Transfer
      Record Pointers
      Record Selection
          Sequential access
          Random access
          Update access
          RIO access
      Multiple Record Transfers
      Control Operations
          Spacing
          Pointing
          Rewinding
      Magnetic Tape Considerations

   Ch 8.  Writing to a File
      Sequential Access and Random Access
          Writing to a disk file using sequential access
          Writing to a disk file using random access
      Writing to $STDLIST
      Writing Messages to the System Console
          Writing a message to the system console
          Writing a message to the system console and requesting a reply
      Writing to a Magnetic Tape File
          Writing to an unlabeled magnetic tape file
          Writing to a labeled magnetic tape file
      Writing a File Label to a Labeled Tape File
      Writing User Data in ANSI Labels

   Ch 9.  Reading from a File
      Sequential Access and Random Access
          Reading from a disk file using sequential access
          Reading from a disk file using random access
          Increasing I/O performance using FREADSEEK
      Reading From $STDIN
      Reading From a Magnetic Tape File
      Reading a File Label from a Labeled Tape File

   Ch 10.  Updating a File

   Ch 11.  Accessing a File Using Mapped Access
      How to Access a File Mapped
          Advantages of mapped access
          Short-mapped access
          Long-mapped access
      Opening a File Mapped

   Ch 12.  Sharing a File
      Simultaneous Access of Files
          Exclusive access
          Semi-exclusive access
          Shared access
          Multiaccess
          Global multiaccess
      Sharing the File Using FLOCK and FUNLOCK

   Ch 13.  Maintaining File Security
      Access Control Definition Security (ACD)
          ACD scope
          Owners
             Files
             Devices
          How acds work
          ACD modes
          Managing ACDs with commands and intrinsics
             Commands
             Intrinsics
          Preserving ACDs
          Managing ACDs
             Creating ACDs
             Examples
             Listing ACDs
             Examples
             Copying ACDs
             Examples
             Modifying ACDs
             Adding ACD pairs
             Replacing ACDs
             Deleting ACDs
             Migrating ACDs
          Logging system events
             Log of system logging configuration
             Log of restore
             Log of printer access failure
             Log of stream initiation
             Log of user logging
             Log of process creation
          Logging a specific user
          Logging file security related events
             Log of password changes
             Log of ACD changes
      Traditional Mechanism for File Security
          Specifying and restricting file access by access mode
          Specifying and restricting file access by type or user
             Account-level security
             Group-level security
             File-level security
          Changing security provisions of disk files
          Suspending and restoring security provisions

   Ch 14.  Getting File Information
      Displaying General File Information
          Displaying permanent file information with LISTFILE
             Specifying a file reference
             Specifying the list level
             Specifying an alternate output file
             LISTFILE examples
          Displaying temporary file information with LISTFILE...(;TEMP)
          Displaying file equations with LISTEQ
      Retrieving Specific File Information
          [:CMD] FINFO
          FFILEINFO
          FGETINFO
          FLABELINFO
      Determining Interactive/Duplicative Files with FRELATE
      Displaying File Error Information
          FCHECK
          FERRMSG
          PRINTFILEINFO
          Writing a file system error-check procedure

   Ap A. HP Pascal/XL Program Examples
      Program Example A-2
          Program Algorithm
          Source code listing
      Program Example A-3
          Program Algorithm
          Source code listing
      Program Example A-4
          Program Algorithm
          Source code listing
      Program Example A-5
          Program Algorithm
          Source code listing
   INDEX
       Index



MPE/iX 5.0 Documentation