aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-14 17:49:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-14 17:49:15 +0000
commit0d50b9e383e73e242a3599c206cf0f220d72b239 (patch)
treea3292ac27bd5e2b63988fc858b7d892e8ba72f50 /mandoc.h
parentede54d9a7f9a40179b8d87dde1625a95b5b83692 (diff)
downloadmandoc-0d50b9e383e73e242a3599c206cf0f220d72b239.tar.gz
mandoc-0d50b9e383e73e242a3599c206cf0f220d72b239.tar.zst
mandoc-0d50b9e383e73e242a3599c206cf0f220d72b239.zip
Simplify handling of system errors: just exit(3).
We already do the same for malloc(3) failure. The is no virtue in trying to survive failure of fork(2) and the like.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/mandoc.h b/mandoc.h
index a25163ad..d0752055 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.177 2014/12/16 23:44:41 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.178 2015/01/14 17:49:15 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -177,16 +177,9 @@ enum mandocerr {
/* ===== system errors ===== */
- MANDOCERR_SYSDUP, /* cannot dup file descriptor */
- MANDOCERR_SYSEXEC, /* cannot exec */
MANDOCERR_SYSEXIT, /* gunzip failed with code */
- MANDOCERR_SYSFORK, /* cannot fork */
MANDOCERR_SYSOPEN, /* cannot open file */
- MANDOCERR_SYSPIPE, /* cannot open pipe */
- MANDOCERR_SYSREAD, /* cannot read file */
MANDOCERR_SYSSIG, /* gunzip died from signal */
- MANDOCERR_SYSSTAT, /* cannot stat file */
- MANDOCERR_SYSWAIT, /* wait failed */
MANDOCERR_MAX
};