NAME
|
perror, syslog, sysfatal – system error messages |
SYNOPSIS
|
#include <u.h> #include <libc.h> |
DESCRIPTION
|
Perror produces a short error message on the standard error file
describing the last error encountered during a call to the system.
First the argument string s is printed, then a colon, then the
message and a newline. If s is nil, only the error message and
newline are printed.
|
SOURCE
|
/sys/src/libc/port/perror.c /sys/src/libc/9sys/syslog.c /sys/src/libc/9sys/sysfatal.c |
SEE ALSO
|
intro(2), errstr(2), the %r format in print(2) |
BUGS
|
Perror is a holdover; the %r format in print(2) is preferred. |