summaryrefslogtreecommitdiff
path: root/src/fatal.c
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-25 12:29:46 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-25 12:29:46 -0700
commitc42b3ab659c294e1c2a0de4b8bcbb4611eb3d005 (patch)
tree0116a99245903017b6839adc68b3cb2a900455a2 /src/fatal.c
downloadcpio-c42b3ab659c294e1c2a0de4b8bcbb4611eb3d005.tar.gz
cpio-c42b3ab659c294e1c2a0de4b8bcbb4611eb3d005.tar.bz2
cpio-c42b3ab659c294e1c2a0de4b8bcbb4611eb3d005.zip
Imported Upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'src/fatal.c')
-rw-r--r--src/fatal.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/fatal.c b/src/fatal.c
new file mode 100644
index 0000000..16413cd
--- /dev/null
+++ b/src/fatal.c
@@ -0,0 +1,27 @@
+/* This file is part of GNU cpio.
+ Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301 USA. */
+
+#include <system.h>
+#include <paxlib.h>
+
+void
+fatal_exit ()
+{
+ exit (PAXEXIT_FAILURE);
+}
+