Loading...
--- Libc/Libc-763.13/gen/err.3
+++ Libc/Libc-583/gen/err.3
@@ -9,6 +9,10 @@
 .\" 2. Redistributions in binary form must reproduce the above copyright
 .\"    notice, this list of conditions and the following disclaimer in the
 .\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"	This product includes software developed by the University of
+.\"	California, Berkeley and its contributors.
 .\" 4. Neither the name of the University nor the names of its contributors
 .\"    may be used to endorse or promote products derived from this software
 .\"    without specific prior written permission.
@@ -26,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	From: @(#)err.3	8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/lib/libc/gen/err.3,v 1.24 2008/10/31 15:14:40 rwatson Exp $
+.\" $FreeBSD: src/lib/libc/gen/err.3,v 1.20 2004/10/04 14:04:37 jkoshy Exp $
 .\"
 .Dd May 20, 2008
 .Dt ERR 3
@@ -101,7 +105,7 @@
 If the
 .Fa fmt
 argument is not NULL, the
-.Xr printf 3 Ns
+.Xr printf 3
 -like formatted error message is output.
 The output is terminated by a newline character.
 .Pp
@@ -117,7 +121,7 @@
 .Fn vwarnc
 functions append an error message obtained from
 .Xr strerror 3
-based on a supplied error code value or the global variable
+based on a code or the global variable
 .Va errno ,
 preceded by another colon and space unless the
 .Fa fmt
@@ -203,16 +207,15 @@
 Display the current errno information string and exit:
 .Bd -literal -offset indent
 if ((p = malloc(size)) == NULL)
-	err(EX_OSERR, NULL);
+	err(1, NULL);
 if ((fd = open(file_name, O_RDONLY, 0)) == -1)
-	err(EX_NOINPUT, "%s", file_name);
+	err(1, "%s", file_name);
 .Ed
 .Pp
 Display an error message and exit:
 .Bd -literal -offset indent
 if (tm.tm_hour < START_TIME)
-	errx(EX_DATAERR, "too early, wait until %s",
-	    start_time_string);
+	errx(1, "too early, wait until %s", start_time_string);
 .Ed
 .Pp
 Warn of an error:
@@ -221,7 +224,7 @@
 	warnx("%s: %s: trying the block device",
 	    raw_device, strerror(errno));
 if ((fd = open(block_device, O_RDONLY, 0)) == -1)
-	err(EX_OSFILE, "%s", block_device);
+	err(1, "%s", block_device);
 .Ed
 .Pp
 Warn of an error without using the global variable