3 perror, syslog, sysfatal \- system error messages
13 void syslog(int cons, char *logname, char *fmt, ...)
16 void sysfatal(char *fmt, ...)
19 produces a short error message
20 on the standard error file
21 describing the last error encountered during a call
23 First the argument string
25 is printed, then a colon, then the message and a newline.
28 is nil, only the error message and newline are printed.
31 logs messages in the file named by
35 the file must already exist and should be append-only.
37 must contain no slashes.
38 The message is a line with several fields:
39 the name of the machine writing the message;
41 the message specified by the
45 and any following arguments;
49 is set or the log file cannot be opened, the message is also printed
50 on the system console.
52 can be used safely in multi-threaded programs.
55 prints to standard error the name of the running program,
57 the message described by the
61 and subsequent arguments, and a newline.
64 with the formatted message as argument.
65 The program's name is the value of
67 which will be set if the program uses the
69 interface to process its arguments.
72 is null, it is ignored and the following colon and space are suppressed.
74 .B /sys/src/libc/port/perror.c
76 .B /sys/src/libc/9sys/syslog.c
78 .B /sys/src/libc/9sys/sysfatal.c