EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

linsfile.htm
Constants
Structures

This file can be included to program for Linux written in EuroAssembler.

It declares the most often used constant symbols and structures for
file functions derived from Linux header files in /usr/include/ directory.

linsfile HEAD
↑ Constants
Encoding of constant symbols used in LinAPI.
; Standard file descriptors.
STDIN_FILENO   = 0  ; Standard input.
STDOUT_FILENO  = 1  ; Standard output.
STDERR_FILENO  = 2  ; Standard error output.

; Values for the second argument to access. These may be OR'd together.
R_OK           = 4  ; Test for read permission.
W_OK           = 2  ; Test for write permission.
X_OK           = 1  ; Test for execute permission.
F_OK           = 0  ; Test for existence.


; Values for the WHENCE argument to lseek.
SEEK_SET       =  0 ; Seek from beginning of file.
SEEK_CUR       =  1 ; Seek from current position.
SEEK_END       =  2 ; Seek from end of file.
SEEK_DATA      =  3 ; Seek to next data.
SEEK_HOLE      =  4 ; Seek to next hole.
SEEK_MAX       = SEEK_HOLE
F_GETLK        =  5 ; Get record locking info.
F_SETLK        =  6 ; Set record locking info (non-blocking).
F_SETLKW       =  7 ; Set record locking info (blocking).
F_GETLK64      = 12 ; Get record locking info.
F_SETLK64      = 13 ; Set record locking info (non-blocking).
F_SETLKW64     = 14 ; Set record locking info (blocking).


; These are the fs-independent mount-flags: up to 32 flags are supported

MS_RDONLY       = 1      ; Mount read-only
MS_NOSUID       = 2      ; Ignore suid and sgid bits
MS_NODEV        = 4      ; Disallow access to device special files
MS_NOEXEC       = 8      ; Disallow program execution
MS_SYNCHRONOUS  = 16      ; Writes are synced at once
MS_REMOUNT      = 32      ; Alter flags of a mounted FS
MS_MANDLOCK     = 64      ; Allow mandatory locks on an FS
MS_DIRSYNC      = 128     ; Directory modifications are synchronous
MS_NOATIME      = 1024    ; Do not update access times.
MS_NODIRATIME   = 2048    ; Do not update directory access times
MS_BIND         = 4096
MS_MOVE         = 8192
MS_REC          = 16384
MS_VERBOSE      = 32768   ; MS_VERBOSE is deprecated.
MS_POSIXACL     = (1<<16) ; VFS does not apply the umask
MS_UNBINDABLE   = (1<<17) ; change to unbindable
MS_PRIVATE      = (1<<18) ; change to private
MS_SLAVE        = (1<<19) ; change to slave
MS_SHARED       = (1<<20) ; change to shared
MS_RELATIME     = (1<<21) ; Update atime relative to mtime/ctime.
MS_KERNMOUNT    = (1<<22) ; this is a kern_mount call
MS_I_VERSION    = (1<<23) ; Update inode I_version field
MS_STRICTATIME  = (1<<24) ; Always perform atime updates



 ENDHEAD linsfile

▲Back to the top▲