Charles.Forsyth20060303-partialeea662d19 years agoHistory
26 lines · 559 B · Text
RawDownload
.TH SYS-WERRSTR 2.SH NAMEwerrstr \- set the system error string.SH SYNOPSIS.EXinclude "sys.m";sys := load Sys Sys->PATH; werrstr(s: string): int;.EE.SH DESCRIPTIONWhen a system call fails, it returns an error value (often -1)and records a string describing the error in a per-process location.The verb.B rin.IR sys-print (2)outputs the error string..B Werrstrsets the process's error string to.IR s ,to allow a function in a module to mimic the error reportinginterface of a system call..SH SEE ALSO.IR sys-intro (2),.IR sys-print (2)