3 syslog, sysfatal \- system error messages
10 void syslog(int cons, char *logname, char *fmt, ...)
13 void sysfatal(char *fmt, ...)
16 prints to standard error the name of the running program,
18 the message described by the
22 and subsequent arguments, and a newline.
25 with the formatted message as argument.
26 The program's name is the value of
28 which will be set if the program uses the
30 interface to process its arguments.
33 is null, it is ignored and the following colon and space are suppressed.
36 logs messages in the file named by
40 the file must already exist and is opened append-only.
42 must contain no slashes.
43 The message is a line with several fields:
44 the name of the machine writing the message;
46 the message specified by the
50 and any following arguments;
54 is set or the log file cannot be opened, the message is also printed
55 on the system console.
57 can be used safely in multi-threaded programs.
59 .B \*9/src/lib9/sysfatal.c