diff options
author | vk199839 <none@none> | 2007-08-18 10:07:23 -0700 |
---|---|---|
committer | vk199839 <none@none> | 2007-08-18 10:07:23 -0700 |
commit | d362b7492b8bcb5ed70f92aa0a6a39bc93b059de (patch) | |
tree | e533d2d558fe414ffff10d43359050e33ca7a518 /usr/src/head/err.h | |
parent | 332608ac9554f08178b41e86935f5eef65453071 (diff) | |
download | illumos-joyent-d362b7492b8bcb5ed70f92aa0a6a39bc93b059de.tar.gz |
PSARC/2006/662 Make err/warn part of Solaris's libc
6495220 add err() et al. to libc
--HG--
rename : usr/src/lib/libipsecutil/common/err.h => usr/src/head/err.h
rename : usr/src/lib/libipsecutil/common/err.c => usr/src/lib/libc/port/gen/err.c
Diffstat (limited to 'usr/src/head/err.h')
-rw-r--r-- | usr/src/head/err.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/usr/src/head/err.h b/usr/src/head/err.h new file mode 100644 index 0000000000..ee76fb21db --- /dev/null +++ b/usr/src/head/err.h @@ -0,0 +1,52 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#ifndef _ERR_H +#define _ERR_H + +#pragma ident "%Z%%M% %I% %E% SMI" + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdio.h> +#include <stdarg.h> + +/* Program exit and warning calls */ +void err(int, const char *, ...); +void verr(int, const char *, va_list); +void errx(int, const char *, ...); +void verrx(int, const char *, va_list); +void warn(const char *, ...); +void vwarn(const char *, va_list); +void warnx(const char *, ...); +void vwarnx(const char *, va_list); + +#ifdef __cplusplus +} +#endif + +#endif /* _ERR_H */ |