FTAM/9000 Programmer's Guide

148 Chapter 3
HP FTAM/9000 Data Structures
Ft_processing_mode
Ft_processing_mode
typedef Uint16 Ft_processing_mode;
Ft_processing_mode specifies the current file action for ft_open () (i.e.,
specifies an action you want to perform now).
These actions must be a subset of those actions selected in
requested_access (FT_FA_XXX defined constants).
Only after closing the file can you specify other actions through
Ft_processing_mode (if you first re-open the file).
You must use one of the following FT_PM_XXX defined constants to
specify Ft_processing_mode:
Ft_processing_mode Input
To These Functions
Ft_processing_mode Is Output
From These Functions
ft_open() None
FT_PM_READ Reads contents of the file (FTAM-1, FTAM-3,
INTAP-1, and NBS-9) or of the FADU
(FTAM-2).
FT_PM_INSERT Inserts data at the end of a file (FTAM-2 only).
FT_PM_REPLACE Replaces the existing FADU contents (FTAM-1,
FTAM-3, and INTAP-1 only).
FT_PM_EXTEND Appends data to the end of the existing FADU
(FTAM-1, FTAM-3, and INTAP-1 only).
FT_PM_ERASE Erases the entire file. (FTAM-1, FTAM-2,
FTAM-3, and INTAP-1 only).