From 0d50b9e383e73e242a3599c206cf0f220d72b239 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 14 Jan 2015 17:49:15 +0000 Subject: 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. --- mandoc.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'mandoc.h') 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 * Copyright (c) 2010-2014 Ingo Schwarze @@ -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 }; -- cgit v1.2.3