Blob


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