err.3 (b4183771fd8ab7a5946fd38df04c1e24b1268bea) err.3 (07a9238fc1f7a8d9809a2788ca51895bb47dad42)
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 83 unchanged lines hidden (view full) ---

92family of functions display a formatted error message on the standard
93error output, or on another file specified using the
94.Fn err_set_file
95function.
96In all cases, the last component of the program name, a colon character,
97and a space are output.
98If the
99.Fa fmt
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 83 unchanged lines hidden (view full) ---

92family of functions display a formatted error message on the standard
93error output, or on another file specified using the
94.Fn err_set_file
95function.
96In all cases, the last component of the program name, a colon character,
97and a space are output.
98If the
99.Fa fmt
100argument is not NULL, the formatted error message is output.
100argument is not NULL, the
101.Xr printf 3
102-like formatted error message is output.
101The output is terminated by a newline character.
102.Pp
103The
104.Fn err ,
105.Fn errc ,
106.Fn verr ,
107.Fn verrc ,
108.Fn warn ,

--- 91 unchanged lines hidden (view full) ---

200.Va errno :
201.Bd -literal -offset indent
202error = my_function(); /* returns a value from <errno.h> */
203if (error != 0)
204 warnc(error, "my_function");
205.Ed
206.Sh SEE ALSO
207.Xr exit 3 ,
103The output is terminated by a newline character.
104.Pp
105The
106.Fn err ,
107.Fn errc ,
108.Fn verr ,
109.Fn verrc ,
110.Fn warn ,

--- 91 unchanged lines hidden (view full) ---

202.Va errno :
203.Bd -literal -offset indent
204error = my_function(); /* returns a value from <errno.h> */
205if (error != 0)
206 warnc(error, "my_function");
207.Ed
208.Sh SEE ALSO
209.Xr exit 3 ,
210.Xr printf 3 ,
208.Xr strerror 3
209.Sh HISTORY
210The
211.Fn err
212and
213.Fn warn
214functions first appeared in
215.Bx 4.4 .

--- 12 unchanged lines hidden ---
211.Xr strerror 3
212.Sh HISTORY
213The
214.Fn err
215and
216.Fn warn
217functions first appeared in
218.Bx 4.4 .

--- 12 unchanged lines hidden ---