GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SYSFATAL(3) FreeBSD Library Functions Manual SYSFATAL(3)

syslog, sysfatal - system error messages

#include <u.h>
#include <libc.h>

void syslog(int cons, char *logname, char *fmt, ...)

void sysfatal(char *fmt, ...)

Sysfatal prints to standard error the name of the running program, a colon and a space, the message described by the format string fmt and subsequent arguments, and a newline. It then calls with the formatted message as argument. The program's name is the value of argv0, which will be set if the program uses the interface to process its arguments. If argv0 is null, it is ignored and the following colon and space are suppressed.

Syslog logs messages in the file named by logname in the directory /log ; the file must already exist and is opened append-only. Logname must contain no slashes. The message is a line with several fields: the name of the machine writing the message; the date and time; the message specified by the format fmt and any following arguments; and a final newline. If cons is set or the log file cannot be opened, the message is also printed on the system console. Syslog can be used safely in multi-threaded programs.

/src/lib9/sysfatal.c
/src/lib9/syslog.c

the %r format in

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.