Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
SystemTypes


NAME

SystemTypes - system types and constants

SYNOPSIS

CONST
   DirSize = 14;
   MaxOpenFiles = 40;


CONST (* file control options; arguments of SysFcntl(2) and SysOpen(2) *) rdonly = {}; wronly = { 31 }; rdwr = { 30 }; ndelay = { 29 }; append = { 28 }; creat = { 23 }; trunc = { 22 }; excl = { 21 };

TYPE Sig = (SIGRTI, SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGIOT, SIGEMT, SIGFPE, SIGKILL, SIGBUS, SIGSEGV, SIGSYS, SIGPIPE, SIGALRM, SIGTERM, SIGUSR1, SIGUSR2, SIGCLD, SIGPWR);

TYPE ProcessId = INTEGER; (* ProcessId may be -1 for kill *) TIME = LONGINT; OFF = LONGINT; (* offset/size of files *)

DESCRIPTION

This module defines some system dependent constants and types. DirSize defines the maximal file name length (without path). MaxOpenFiles gives the maximal number of open files. So possibly valid file descriptors range from 0 to MaxOpenFiles-1. The file control flags can be given as argument to SysOpen and SysFcntl. The signal number type Sig is used by SysSignal and SysKill. Any signal number beyond SIGTERM is to be considered system dependent.

FILES

Constants and types are derived from:
/usr/include/fcntl.h
/usr/include/signal.h
/usr/include/sys/dir.h
/usr/include/sys/param.h
/usr/include/sys/types.h

SEE ALSO

Calendar, TimeIO, fcntl(2), open(2), sigaction(2)
Edited by: borchert, last change: 1997/02/25, revision: 1.3, converted to HTML: 1997/04/28

Modula-2 || Compiler & Tools || Library || Search Engine