Deleted Added
full compact
err.c (82496) err.c (86250)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 * From: @(#)err.c 8.1 (Berkeley) 6/4/93
33 */
34
35#if defined(LIBC_RCS) && !defined(lint)
36static const char rcsid[] =
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 * From: @(#)err.c 8.1 (Berkeley) 6/4/93
33 */
34
35#if defined(LIBC_RCS) && !defined(lint)
36static const char rcsid[] =
37 "$FreeBSD: head/lib/libc/gen/err.c 82496 2001-08-29 13:52:27Z bde $";
37 "$FreeBSD: head/lib/libc/gen/err.c 86250 2001-11-11 02:48:09Z bde $";
38#endif /* LIBC_RCS and not lint */
39
40#include "namespace.h"
41#include <err.h>
42#include "un-namespace.h"
43#include <errno.h>
44#include <stdio.h>
45#include <stdlib.h>

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

67}
68
69void
70err_set_exit(void (*ef)(int))
71{
72 err_exit = ef;
73}
74
38#endif /* LIBC_RCS and not lint */
39
40#include "namespace.h"
41#include <err.h>
42#include "un-namespace.h"
43#include <errno.h>
44#include <stdio.h>
45#include <stdlib.h>

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

67}
68
69void
70err_set_exit(void (*ef)(int))
71{
72 err_exit = ef;
73}
74
75__weak_reference(_err, err);
76
75void
77void
76err(int eval, const char *fmt, ...)
78_err(int eval, const char *fmt, ...)
77{
78 va_list ap;
79 va_start(ap, fmt);
80 verrc(eval, errno, fmt, ap);
81 va_end(ap);
82}
83
84void

--- 128 unchanged lines hidden ---
79{
80 va_list ap;
81 va_start(ap, fmt);
82 verrc(eval, errno, fmt, ap);
83 va_end(ap);
84}
85
86void

--- 128 unchanged lines hidden ---