| syslog, sysfatal \- system error messages |
| void syslog(int cons, char *logname, char *fmt, ...) |
| void sysfatal(char *fmt, ...) |
| prints to standard error the name of the running program, |
| the message described by the |
| and subsequent arguments, and a newline. |
| with the formatted message as argument. |
| The program's name is the value of |
| which will be set if the program uses the |
| interface to process its arguments. |
| is null, it is ignored and the following colon and space are suppressed. |
| logs messages in the file named by |
| the file must already exist and is opened append-only. |
| The message is a line with several fields: |
| the name of the machine writing the message; |
| the message specified by the |
| and any following arguments; |
| is set or the log file cannot be opened, the message is also printed |
| can be used safely in multi-threaded programs. |
| .B \*9/src/lib9/sysfatal.c |