Blame


1 058b0118 2005-01-03 devnull .TH SYSFATAL 3
2 058b0118 2005-01-03 devnull .SH NAME
3 058b0118 2005-01-03 devnull sysfatal \- system error messages
4 058b0118 2005-01-03 devnull .SH SYNOPSIS
5 058b0118 2005-01-03 devnull .B #include <u.h>
6 058b0118 2005-01-03 devnull .br
7 058b0118 2005-01-03 devnull .B #include <libc.h>
8 058b0118 2005-01-03 devnull .PP
9 058b0118 2005-01-03 devnull .B
10 058b0118 2005-01-03 devnull void sysfatal(char *fmt, ...)
11 058b0118 2005-01-03 devnull .SH DESCRIPTION
12 058b0118 2005-01-03 devnull .I Sysfatal
13 058b0118 2005-01-03 devnull prints to standard error the name of the running program,
14 058b0118 2005-01-03 devnull a colon and a space,
15 058b0118 2005-01-03 devnull the message described by the
16 058b0118 2005-01-03 devnull .IR print (3)
17 058b0118 2005-01-03 devnull format string
18 058b0118 2005-01-03 devnull .I fmt
19 058b0118 2005-01-03 devnull and subsequent arguments, and a newline.
20 058b0118 2005-01-03 devnull It then calls
21 058b0118 2005-01-03 devnull .IR exits (3)
22 058b0118 2005-01-03 devnull with the formatted message as argument.
23 058b0118 2005-01-03 devnull The program's name is the value of
24 058b0118 2005-01-03 devnull .BR argv0 ,
25 058b0118 2005-01-03 devnull which will be set if the program uses the
26 058b0118 2005-01-03 devnull .IR arg (3)
27 058b0118 2005-01-03 devnull interface to process its arguments.
28 058b0118 2005-01-03 devnull If
29 058b0118 2005-01-03 devnull .B argv0
30 058b0118 2005-01-03 devnull is null, it is ignored and the following colon and space are suppressed.
31 058b0118 2005-01-03 devnull .SH SOURCE
32 058b0118 2005-01-03 devnull .B /usr/local/plan9/src/lib9/sysfatal.c
33 058b0118 2005-01-03 devnull .SH "SEE ALSO"
34 058b0118 2005-01-03 devnull .IR intro (3),
35 058b0118 2005-01-03 devnull .IR errstr (3),
36 058b0118 2005-01-03 devnull the
37 058b0118 2005-01-03 devnull .B %r
38 058b0118 2005-01-03 devnull format in
39 058b0118 2005-01-03 devnull .IR print (3)