9srv Manual Collection/plan9/errstr(2) | 9srv Manual Collection/plan9/errstr(2) |
---|
int errstr(char *err, uint nerr)
void rerrstr(char *err, uint nerr)
void werrstr(char *fmt, ...)
The per-process buffer is ERRMAX bytes long. Any error string provided by the user will be truncated at ERRMAX-1 bytes. ERRMAX is defined in <libc.h>.
If no system call has generated an error since the last call to errstr with an empty string, the result is an empty string.
The verb r in print(2) calls errstr and outputs the error string.
Rerrstr reads the error string but does not modify the per-process buffer, so a subsequent errstr will recover the same string.
Werrstr takes a print style format as its argument and uses it to format a string to pass to errstr. The string returned from errstr is discarded.
9srv Manual Collection/plan9/errstr(2) | Rev: Sun Dec 02 23:42:17 GMT 2007 |