err.c (177893) | err.c (288029) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> | 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/lib/libc/gen/err.c 177893 2008-04-03 20:36:44Z imp $"); | 34__FBSDID("$FreeBSD: head/lib/libc/gen/err.c 288029 2015-09-20 20:23:16Z rodrigc $"); |
35 36#include "namespace.h" 37#include <err.h> 38#include <errno.h> 39#include <stdarg.h> 40#include <stdio.h> 41#include <stdlib.h> 42#include <string.h> --- 31 unchanged lines hidden (view full) --- 74{ 75 va_list ap; 76 va_start(ap, fmt); 77 verrc(eval, errno, fmt, ap); 78 va_end(ap); 79} 80 81void | 35 36#include "namespace.h" 37#include <err.h> 38#include <errno.h> 39#include <stdarg.h> 40#include <stdio.h> 41#include <stdlib.h> 42#include <string.h> --- 31 unchanged lines hidden (view full) --- 74{ 75 va_list ap; 76 va_start(ap, fmt); 77 verrc(eval, errno, fmt, ap); 78 va_end(ap); 79} 80 81void |
82verr(eval, fmt, ap) 83 int eval; 84 const char *fmt; 85 va_list ap; | 82verr(int eval, const char *fmt, va_list ap) |
86{ 87 verrc(eval, errno, fmt, ap); 88} 89 90void 91errc(int eval, int code, const char *fmt, ...) 92{ 93 va_list ap; --- 102 unchanged lines hidden --- | 83{ 84 verrc(eval, errno, fmt, ap); 85} 86 87void 88errc(int eval, int code, const char *fmt, ...) 89{ 90 va_list ap; --- 102 unchanged lines hidden --- |