summaryrefslogtreecommitdiffstats
path: root/include/err.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1998-09-12 21:02:22 +0000
committerwollman <wollman@FreeBSD.org>1998-09-12 21:02:22 +0000
commit714948938bb3a857ee0b2a1a96699da355945a00 (patch)
tree4019dfbd1d3d423e72c58b7c3a178e5c9f084e59 /include/err.h
parentf549419b9d0103fba3ed7f225896f3127b7508f6 (diff)
downloadFreeBSD-src-714948938bb3a857ee0b2a1a96699da355945a00.zip
FreeBSD-src-714948938bb3a857ee0b2a1a96699da355945a00.tar.gz
A small last-minute iitem for 3.0:
- Fix some style errors I made back in 1995. - Add a new flavor of the err(3) family, which takes an explicit errno argument rather than implicitly examining errno. This will make it easier to use these functions in conjunction with modern library interfaces that return an errno value explicitly.
Diffstat (limited to 'include/err.h')
-rw-r--r--include/err.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/err.h b/include/err.h
index fd02a61..a3464af 100644
--- a/include/err.h
+++ b/include/err.h
@@ -30,7 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)err.h 8.1 (Berkeley) 6/2/93
+ * From: @(#)err.h 8.1 (Berkeley) 6/2/93
+ * $Id$
*/
#ifndef _ERR_H_
@@ -49,10 +50,14 @@
__BEGIN_DECLS
void err __P((int, const char *, ...)) __dead2;
void verr __P((int, const char *, _BSD_VA_LIST_)) __dead2;
+void errc __P((int, int, const char *, ...)) __dead2;
+void verrc __P((int, int, const char *, _BSD_VA_LIST_)) __dead2;
void errx __P((int, const char *, ...)) __dead2;
void verrx __P((int, const char *, _BSD_VA_LIST_)) __dead2;
void warn __P((const char *, ...));
void vwarn __P((const char *, _BSD_VA_LIST_));
+void warnc __P((int, const char *, ...));
+void vwarnc __P((int, const char *, _BSD_VA_LIST_));
void warnx __P((const char *, ...));
void vwarnx __P((const char *, _BSD_VA_LIST_));
void err_set_file __P((void *));
OpenPOWER on IntegriCloud