aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-02 16:29:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-02 16:29:55 +0000
commit4247db2bceaceb5a3c3b96d5c4d0114f73c8a841 (patch)
treee255f3680fa5eec1e33d0fbc5f6a3900e1b40bbb /mandoc.h
parentcbd14d40ae19e2c31a2e3750bfa78797d5d89cae (diff)
downloadmandoc-4247db2bceaceb5a3c3b96d5c4d0114f73c8a841.tar.gz
mandoc-4247db2bceaceb5a3c3b96d5c4d0114f73c8a841.tar.zst
mandoc-4247db2bceaceb5a3c3b96d5c4d0114f73c8a841.zip
Since the functions in read.c are part of the mandoc(3) library,
do not print to stderr. Instead, properly use the mmsg callback. Issue noticed by Abhinav Upadhyay <er dot abhinav dot upadhyay at gmail dot com> and Thomas Klausner <wiz at NetBSD>.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index 4c6a32f7..3f1f118a 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,7 +1,7 @@
-/* $Id: mandoc.h,v 1.112 2013/12/30 18:30:32 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.113 2014/01/02 16:29:55 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -152,6 +152,7 @@ enum mandocerr {
MANDOCERR_FATAL, /* ===== start of fatal errors ===== */
+ MANDOCERR_TOOLARGE, /* input too large */
MANDOCERR_NOTMANUAL, /* manual isn't really a manual */
MANDOCERR_COLUMNS, /* column syntax is inconsistent */
MANDOCERR_BADDISP, /* NOT IMPLEMENTED: .Bd -file */
@@ -162,6 +163,13 @@ enum mandocerr {
MANDOCERR_NODOCBODY, /* no document body */
MANDOCERR_NODOCPROLOG, /* no document prologue */
MANDOCERR_MEM, /* static buffer exhausted */
+
+ /* ===== system errors ===== */
+
+ MANDOCERR_SYSOPEN, /* cannot open file */
+ MANDOCERR_SYSSTAT, /* cannot stat file */
+ MANDOCERR_SYSREAD, /* cannot read file */
+
MANDOCERR_MAX
};