Subversion Repositories Spectranet

[/] [trunk/] [include/] [fcntl.inc] - Diff between revs 442 and 483

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 442 Rev 483
Line 29... Line 29...
OFFSET_PARAM1           equ 16          ; 2 byte little endian
OFFSET_PARAM1           equ 16          ; 2 byte little endian
OFFSET_PARAM2           equ 18          ; 2 byte little endian
OFFSET_PARAM2           equ 18          ; 2 byte little endian
OFFSET_CHKSUM           equ 20          ; "checksum" byte
OFFSET_CHKSUM           equ 20          ; "checksum" byte
ZX_HEADERLEN            equ 17          ; Length of ZX header excl. check byte
ZX_HEADERLEN            equ 17          ; Length of ZX header excl. check byte
 
 
; File mode and flag definitions
; File mode oflag definitions
O_RDONLY                equ 0x01
O_RDONLY                equ 0x0001
O_WRONLY                equ 0x02
O_WRONLY                equ 0x0002
O_RDWR                  equ 0x03
O_RDWR                  equ 0x0003
O_APPEND                equ 0x01
O_ACCMODE               equ 0x0003
O_CREAT                 equ 0x02
 
O_EXCL                  equ 0x04
O_EXEC                  equ 0x0004
O_TRUNC                 equ 0x08
O_APPEND                equ 0x0008
 
 
 
O_CREAT                 equ 0x0100
 
O_TRUNC                 equ 0x0200
 
O_EXCL                  equ 0x0400
 
 
; Seek definitions
; Seek definitions
SEEK_SET                equ 0x00
SEEK_SET                equ 0x00
SEEK_CUR                equ 0x01
SEEK_CUR                equ 0x01
SEEK_END                equ 0x02
SEEK_END                equ 0x02