+2003-06-11 Simon Josefsson <jas@extundo.com>
+
+ * modules/sysexits: New file.
+ * MODULES.html.sh (func_all_modules): Add sysexits.
+
2003-06-10 Bruno Haible <bruno@clisp.org>
* MODULES.html.sh (func_all_modules): Add strchrnul and argp.
func_module quote
func_module readutmp
func_module sig2str
+ func_module sysexits
func_end_table
}
+2003-06-11 Simon Josefsson <jas@extundo.com>
+
+ * sysexit_.h: New file.
+
2003-05-20 Derek Price <derek@ximbiot.com>
* stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary.
--- /dev/null
+/* exit() exit codes for some BSD system programs.
+ Copyright (C) 2003 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 2, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+/* Written by Simon Josefsson based on sysexits(3) man page */
+
+#ifndef _SYSEXITS_H
+#define _SYSEXITS_H
+
+#define EX_USAGE 64
+#define EX_DATAERR 65
+#define EX_NOINPUT 66
+#define EX_NOUSER 67
+#define EX_NOHOST 68
+#define EX_UNAVAILABLE 69
+#define EX_SOFTWARE 70
+#define EX_OSERR 71
+#define EX_OSFILE 72
+#define EX_CANTCREAT 73
+#define EX_IOERR 74
+#define EX_TEMPFAIL 75
+#define EX_PROTOCOL 76
+#define EX_NOPERM 77
+#define EX_CONFIG 78
+
+#endif /* _SYSEXITS_H */
+2003-06-11 Bruno Haible <bruno@clisp.org>
+
+ * sysexits.m4: New file.
+
2003-06-10 Simon Josefsson <jas@extundo.com>
* strchrnul.m4: New file.
--- /dev/null
+# sysexits.m4 serial 1
+dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl This file is free software, distributed under the terms of the GNU
+dnl General Public License. As a special exception to the GNU General
+dnl Public License, this file may be distributed as part of a program
+dnl that contains a configuration script generated by Autoconf, under
+dnl the same distribution terms as the rest of that program.
+
+AC_DEFUN([gl_SYSEXITS],
+[
+ AC_CHECK_HEADERS(sysexits.h,
+ [SYSEXITS_H=sysexits.h],
+ [SYSEXITS_H=])
+ AC_SUBST([SYSEXITS_H])
+])
--- /dev/null
+Description:
+Exit status codes for some BSD system programs.
+
+Files:
+lib/sysexit_.h
+m4/sysexits.m4
+
+Depends-on:
+
+configure.ac:
+gl_SYSEXITS
+
+Makefile.am:
+EXTRA_DIST += sysexit_.h
+
+# We need the following in order to create a <sysexits.h> when the system
+# doesn't have one that works with the given compiler.
+all-local $(lib_OBJECTS): @SYSEXITS_H@
+sysexits.h: sysexit_.h
+ cp $(srcdir)/sysexit_.h sysexits.h-t
+ mv sysexits.h-t sysexits.h
+MOSTLYCLEANFILES += sysexits.h sysexits.h-t
+
+Include:
+#include <sysexits.h>
+
+Maintainer:
+Simon Josefsson