Adapted to current situation

This commit is contained in:
ceriel 1987-03-02 13:30:52 +00:00
parent 27a779e535
commit b457c3dc09
3 changed files with 17 additions and 19 deletions

View file

@ -1,5 +1,5 @@
.\" $Header$ .\" $Header$
.TH LIBMON VII .TH LIBMON 7ACK
.ad .ad
.SH NAME .SH NAME
libmon \- library of system call routines with EM calling sequence libmon \- library of system call routines with EM calling sequence
@ -50,7 +50,7 @@ can be declared as:
creatmode = set of XHIM..SUID; creatmode = set of XHIM..SUID;
.IP - .IP -
There are special system call routines \fIuread\fP and \fIuwrite\fP There are special system call routines \fIuread\fP and \fIuwrite\fP
in libpc(VII), in libpc(7),
because the names \fIread\fP and \fIwrite\fP because the names \fIread\fP and \fIwrite\fP
are blocked by similar functions in Pascal. are blocked by similar functions in Pascal.
.PP .PP
@ -85,10 +85,10 @@ signal number is specified.
Only the signal numbers 1, 2, 3, 13, 14, 15 and 16 may be used as argument Only the signal numbers 1, 2, 3, 13, 14, 15 and 16 may be used as argument
for \fIsigtrp\fP. for \fIsigtrp\fP.
.SH FILES .SH FILES
.IP /usr/em/mach/*/lib/tail_mon .IP ~em/lib/*/tail_mon
.PD .PD
.SH "SEE ALSO" .SH "SEE ALSO"
em(I), ack(I), *(II), libpc(VII) em(1), ack(1), *(2), libpc(7)
.SH DIAGNOSTICS .SH DIAGNOSTICS
All routines put the UNIX error code in the global variable \fIerrno\fP. All routines put the UNIX error code in the global variable \fIerrno\fP.
Errno is not cleared by successful system calls, so it always gives Errno is not cleared by successful system calls, so it always gives

View file

@ -1,5 +1,5 @@
.\" $Header$ .\" $Header$
.TH LIBPC VII .TH LIBPC 7ACK
.ad .ad
.SH NAME .SH NAME
libpc \- library of external routines for Pascal programs libpc \- library of external routines for Pascal programs
@ -181,7 +181,7 @@ because the previous trap handler must be restored.
Therefore, you may only jump out of procedure \fIp\fP from inside \fIq\fP and Therefore, you may only jump out of procedure \fIp\fP from inside \fIq\fP and
you may only jump out of one level of encapsulation. you may only jump out of one level of encapsulation.
If you want to exit several levels of encapsulation, use traps. If you want to exit several levels of encapsulation, use traps.
See pc_emlib(VII) and pc_prlib(VII) for lists of trap numbers See pc_prlib(7) for lists of trap numbers
for EM machine errors and Pascal run time system errors. for EM machine errors and Pascal run time system errors.
Note that \fIp\fP may not have parameters. Note that \fIp\fP may not have parameters.
.PD .PD
@ -190,13 +190,13 @@ Note that \fIp\fP may not have parameters.
UNIX system calls: UNIX system calls:
.RS .RS
The routines of this category require global variables or routines The routines of this category require global variables or routines
of the monitor library libmon(VII). of the monitor library libmon(7).
.IP uread 10 .IP uread 10
Equal to the read system call. Equal to the read system call.
Its normal name is blocked by the standard Pascal routine read. Its normal name is blocked by the standard Pascal routine read.
.PD 0 .PD 0
.IP uwrite .IP uwrite
As above but for write(II). As above but for write(2).
.IP perrno .IP perrno
Because external data references are not possible in Pascal, Because external data references are not possible in Pascal,
this routine returns the global variable errno, indicating the result of this routine returns the global variable errno, indicating the result of
@ -212,7 +212,7 @@ Return the number of ticks of user and system time consumed by the program.
.PP .PP
.RE .RE
The following program presents an example of how these routines can be used. The following program presents an example of how these routines can be used.
This program is equivalent to the UNIX command cat(I). This program is equivalent to the UNIX command cat(1).
.nf .nf
{$c+} {$c+}
program cat(input,inp,output); program cat(input,inp,output);
@ -281,10 +281,10 @@ Another example gives some idea of the way to manage trap handling:
end. end.
.fi .fi
.SH FILES .SH FILES
.IP /usr/em/mach/*/lib/tail_pc 20 .IP ~em/lib/*/tail_pc 20
.PD .PD
.SH "SEE ALSO" .SH "SEE ALSO"
ack(I), pc_pem(VI), pc_prlib(VII), libmon(VII) ack(1), pc_pem(6), pc_prlib(7), libmon(7)
.SH DIAGNOSTICS .SH DIAGNOSTICS
Two routines may cause fatal error messages to be generated. Two routines may cause fatal error messages to be generated.
These are: These are:

View file

@ -1,5 +1,5 @@
.\" $Header$ .\" $Header$
.TH PC_PRLIB VII .TH PC_PRLIB 7ACK
.ad .ad
.SH NAME .SH NAME
pc_prlib \- library of Pascal runtime routines pc_prlib \- library of Pascal runtime routines
@ -653,9 +653,9 @@ error message can access the file name.
Used to access the arguments of the main program. Used to access the arguments of the main program.
.PD .PD
.SH FILES .SH FILES
.IP /usr/em/lib/mach/*/lib/tail_pc 20 .IP ~em/lib/*/tail_pc 20
The library used by ack[5] to link programs. The library used by ack[5] to link programs.
.IP /usr/em/etc/pc_rterrors .IP ~em/etc/pc_rterrors
The error messages The error messages
.PD .PD
.SH "SEE ALSO" .SH "SEE ALSO"
@ -673,9 +673,9 @@ ISO/TC97/SC5-N462, received November 1979.
.IP [4] .IP [4]
Ed Keizer, "The Amsterdam Compiler Kit reference manual". Ed Keizer, "The Amsterdam Compiler Kit reference manual".
.br .br
(try \fInroff /usr/emi/doc/pcref.doc\fP). (try \fInroff ~em/doc/pcref.doc\fP).
.IP [5] .IP [5]
ack(I), pc_pem(VI) ack(1), pc_pem(6)
.PD .PD
.SH DIAGNOSTICS .SH DIAGNOSTICS
All errors discovered by this runtime system cause an EM TRP instruction All errors discovered by this runtime system cause an EM TRP instruction
@ -687,7 +687,7 @@ an EM machine trap or a language or user defined trap occurs.
One of the first actions in _ini is to specify that the routine _fatal, One of the first actions in _ini is to specify that the routine _fatal,
available in this library, will handle traps. available in this library, will handle traps.
This routine is called with an error code (0..252) as argument. This routine is called with an error code (0..252) as argument.
The file "/usr/em/etc/pc_rterrors" is opened and searched for a message The file "~em/etc/pc_rterrors" is opened and searched for a message
corresponding with this number. corresponding with this number.
If the file can not be opened, or if the error number is not recorded If the file can not be opened, or if the error number is not recorded
in the file, then the same trap is generated again, but without in the file, then the same trap is generated again, but without
@ -758,5 +758,3 @@ file xxx: non-ASCII char read
.PP .PP
.SH AUTHORS .SH AUTHORS
Johan Stevenson and Ard Verhoog, Vrije Universiteit. Johan Stevenson and Ard Verhoog, Vrije Universiteit.
.SH BUGS
Please report bugs to the authors.