home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1B
/
DATAFILE_PDCD1B.iso
/
_pocketbk
/
pocketbook
/
004
/
isameg_zip
/
L_FILE.OPH
< prev
next >
Wrap
Text File
|
1993-01-19
|
7KB
|
181 lines
/*
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
File : L_FILE.OPH
Project : HC OPL Development Kit (\OPLLIB\INC\)
Source : PC OPL/g Graphical OPL
Target : HC Corporate Hand Held
Copyright 1992 - Psion UK plc
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ EDITION HISTORY ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Date Version Author Comments ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ 18/NOV/92 2.00 HOWARD Created ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
General Module Description:
I/O system control block definitions and error numbers
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
*/
#define L_FILE_OPH
/* Wait Handler defines */
#define SIGNAL_UNUSED 0 /* signal not used by waithandler */
#define SIGNAL_ENABLE 1 /* signal used by handler, I/O's still pending */
#define SIGNAL_DISABLE 2 /* signal used by handler, no I/O's pending */
/* open service mode flags */
#define FOPEN $0000 /* Open i/o service */
#define FCREATE $0001 /* Create file */
#define FREPLACE $0002 /* Replace file */
#define FAPPEND $0003 /* Append records */
#define FUNIQUE $0004 /* Unique file open */
#define FSER_MASK $000f /* File service mask */
#define FSTREAM $0000 /* Stream access to a binary file */
#define FSTREAM_TEXT $0010 /* Stream access to a text file */
#define FTEXT $0020 /* Record access to a text file */
#define FDIR $0030 /* Record access to a directory file */
#define FFORMAT $0040 /* Format a device */
#define FDEVICE $0050 /* Record access to device name list */
#define FNODE $0060 /* Record access to node name list */
#define FMT_MASK $00f0 /* File format mask */
#define FUPDATE $0100 /* Read and write access */
#define FRANDOM $0200 /* Random access */
#define FSHARE $0400 /* File can be shared */
#define FACC_MASK $0f00 /* mask for access types */
/* io/iow function constants */
/* Generic I/O functions */
#define FPANIC 0 /* Panic the device */
#define FREAD 1 /* Read */
#define FWRITE 2 /* Write */
#define FCLOSE 3 /* Close */
#define FCANCEL 4 /* Cancel io */
#define FATTACH 5 /* attach this pseudo device */
#define FDETACH 6 /* detach this pseudo device */
#define FSET 7 /* set channel characteristics */
#define FSENSE 8 /* sense channel characteristics */
#define FFLUSH 9 /* Flush buffers */
/* Now follows the device specific functions */
/* Files */
#define FSEEK 10 /* Seek */
#define FSETEOF 11 /* Set end of file */
/* Timer */
#define FRELATIVE 1 /* Relative timer */
#define FABSOLUTE 2 /* Absolute timer */
/* Data Link I/O + wserv */
#define FCONNECT 10 /* Queue a link connect request */
#define FDISCONNECT 11 /* Disconnect the link */
/* wserv functions */
#define FWRITE_REPLY 12 /* FWRITE + read a reply from the server */
/* Serial/llmac */
#define FTEST 10 /* return no. of bytes in serial receieve buffer */
#define FCTRL 11 /* serial port control lines */
#define FINQ 12 /* inquire of device capabilities */
#define FRSUPER 13 /* read a supervisory frame (llmac) */
#define FSTOP 14 /* stop LLMAC mode */
#define FSTART 15 /* start LLMAC mode */
/* Serial LDD to Serial PDD I/O defines */
#define FENABLE 16 /* Enable transmit interrupts */
#define FSETINT 17 /* set the serial Interrupt code ptrs */
/* modem functions */
#define FMINIT 16 /* modem initialization function */
#define FMDIAL 17 /* modem dial function */
#define FMWAITCALL 18 /* wait for an incoming call */
#define FMSENSE 19 /* Sense Modem characteristics */
#define FMSET 20 /* Set Modem characteristics */
#define FMCANCEL 21 /* Cancel outstanding mode request */
/* ioseek() mode constants */
#define FABS 1 /* Position absolute in the file */
#define FEND 2 /* Position relative from the end of file */
#define FCUR 3 /* Position relative to the current pos */
#define FRSENSE 4 /* Sense the record position */
#define FRSET 5 /* Set the record position */
#define FREWIND 6 /* Rewind a text file */
/* defines for changing directories */
#define CD_ROOT 0 /* goto root directory */
#define CD_PARENT 1 /* goto parent directory */
#define CD_SUBDIR 2 /* goto subdirectory */
/* masks for status flag of INFO */
#define FAWRITE $01 /* can the file be written to? */
#define FAHIDDEN $02 /* set if file is hidden */
#define FASYSTEM $04 /* set if file is a system file */
#define FAVOLUME $08 /* set if the name is a volume name */
#define FADIR $10 /* set if file is a directory file */
#define FAMOD $20 /* has the file been modified? */
#define FAREAD $100 /* can the file be read? */
#define FAEXEC $200 /* is the file executable? */
#define FASTREAM $400 /* is the file a byte stream file? */
#define FATEXT $800 /* is it a text file? */
#define FMEDIA_COMPRESSIBLE $8000 /* Worth compressing deleted records */
#define FMEDIA_DYNAMIC $4000 /* Media size is dynamic */
#define FMEDIA_INTERNAL $2000 /* Media is internal */
#define FMEDIA_DUAL_DENSITY $1000 /* media has dual density */
#define FMEDIA_FORMATTABLE $800 /* media is formattable */
#define VOLUMENAME 32
/* Media Constants */
#define FMEDIA_UNKNOWN 0
#define FMEDIA_FLOPPY 1
#define FMEDIA_HARDDISK 2
#define FMEDIA_FLASH 3
#define FMEDIA_RAM 4
#define FMEDIA_ROM 5
#define FMEDIA_WRITEPROTECTED 6
#define FSYSTYPE_FLAT 0
#define FSYSTYPE_HIER 1
/* Flag defines for parse$ */
#define PARSE_WILD_NONE 0 /* no wildcards in returned name */
#define PARSE_WILD_NAME 1 /* the name field contains wildcards */
#define PARSE_WILD_EXT 2 /* the extension contains wildcards */
#define PARSE_WILD_BOTH 3 /* both contain wildcards */
/* Full file system parse - parse$ */
#define FSYSNAMESIZE 5
#define FBLKSHIFT 9 /* Block shift factor */
#define FBLKSIZE $200 /* Block size */
#define FMAXRSIZE $100 /* Maximum text record size */
#define FMAXSSIZE $4000 /* Maximum stream read/write length */
#define FSIZRPOS sizeof(LONG) /* array size for storing r/w position */
#define MAXDEV 128 /* Maximum device name size */
#define MAXPATH 128 /* Maximum path size */
#define MAXNAME 128 /* Maximum name size */
#define MAXEXTN 128 /* Maximum extension size */
#define FNAMESIZE 128 /* Maximum file name size */
#define FORMAT_START 0
#define FORMAT_IN_PROGRESS 1
#define FORMAT_END 2