Deleted Added
full compact
err.c (50476) err.c (82496)
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 50476 1999-08-28 00:22:10Z peter $";
37 "$FreeBSD: head/lib/libc/gen/err.c 82496 2001-08-29 13:52:27Z bde $";
38#endif /* LIBC_RCS and not lint */
39
38#endif /* LIBC_RCS and not lint */
39
40#include "namespace.h"
40#include <err.h>
41#include <err.h>
42#include "un-namespace.h"
41#include <errno.h>
42#include <stdio.h>
43#include <stdlib.h>
44#include <string.h>
45
46#include <stdarg.h>
47
48extern char *__progname; /* Program name, from crt0. */

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

138 if (fmt != NULL)
139 vfprintf(err_file, fmt, ap);
140 fprintf(err_file, "\n");
141 if (err_exit)
142 err_exit(eval);
143 exit(eval);
144}
145
43#include <errno.h>
44#include <stdio.h>
45#include <stdlib.h>
46#include <string.h>
47
48#include <stdarg.h>
49
50extern char *__progname; /* Program name, from crt0. */

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

140 if (fmt != NULL)
141 vfprintf(err_file, fmt, ap);
142 fprintf(err_file, "\n");
143 if (err_exit)
144 err_exit(eval);
145 exit(eval);
146}
147
148__weak_reference(_warn, warn);
149
146void
150void
147warn(const char *fmt, ...)
151_warn(const char *fmt, ...)
148{
149 va_list ap;
150 va_start(ap, fmt);
151 vwarnc(errno, fmt, ap);
152 va_end(ap);
153}
154
155void

--- 53 unchanged lines hidden ---
152{
153 va_list ap;
154 va_start(ap, fmt);
155 vwarnc(errno, fmt, ap);
156 va_end(ap);
157}
158
159void

--- 53 unchanged lines hidden ---