diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/2/exception | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/2/exception')
| -rw-r--r-- | man/2/exception | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/man/2/exception b/man/2/exception new file mode 100644 index 00000000..e654bfeb --- /dev/null +++ b/man/2/exception @@ -0,0 +1,36 @@ +.TH EXCEPTION 2 +.SH NAME +exception \- Exception module +.SH SYNOPSIS +.EX +include "exception.m"; +exc := load Exception Exception->PATH; + +getexc: fn(pid: int): (int, string, string); +setexcnotifyleader: fn(pid: int): int; +setexcpropagate: fn(pid: int): int; +.EE +.SH DESCRIPTION +.B Except +provides exception-related utility routines to read or write to system +device files. +.PP +.B Getexc +returns the last exception to be raised on the process with the given process +id. A process id of -1 is taken to mean the current process. The returned +triple gives the pc value, the module and the exception name or 0, nil, nil +if no exception has occurred. +.PP +.B Setexcnotifyleader +and +.B setexcpropagate +set 'exceptions notifyleader' and 'exceptions propagate' respectively on the given +process. 0 is returned on success, +-1 on failure (for instance if the process is not a group leader or does not exist). +See +.I prog (3) +for the actual meaning of these settings. +.SH SOURCE +.B /appl/lib/exception.b +.SH SEE ALSO +.IR prog (3) |
