bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] sysexits.h


From: Simon Josefsson
Subject: Re: [Bug-gnulib] sysexits.h
Date: Tue, 10 Jun 2003 22:59:37 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

>> /* exit() exit codes.
>
> Could this comment be more precise, to indicate that these are not
> global conventions?
>
>     exit() exit codes for some BSD system programs.

Yup.

> With this fixed, can you send the whole sysexits module for commit?
> (The file should be called sysexit_.h, to cope with our *_.h convention
> and also with DJGPP ports which require that the filenames remain unique
> after cutting off to 8+3 characters.)

Here goes:

ChangeLog:

2003-06-10  Simon Josefsson  <address@hidden>

        * MODULES.html.sh: Add sysexits.

        * modules/sysexits: New file.

lib/ChangeLog:

2003-06-10  Simon Josefsson  <address@hidden>

        * sysexits_.h: New file.

Index: MODULES.html.sh
===================================================================
RCS file: /cvsroot/gnulib/gnulib/MODULES.html.sh,v
retrieving revision 1.22
diff -u -p -r1.22 MODULES.html.sh
--- MODULES.html.sh     10 Jun 2003 12:21:16 -0000      1.22
+++ MODULES.html.sh     10 Jun 2003 20:57:12 -0000
@@ -1868,6 +1868,7 @@ func_all_modules ()
   func_begin_table
   func_module argp
   func_module exitfail
+  func_module sysexits
   func_module c-stack
   func_module error
   func_module fatal
Index: lib/sysexits_.h
===================================================================
RCS file: lib/sysexits_.h
diff -N lib/sysexits_.h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lib/sysexits_.h     10 Jun 2003 20:57:12 -0000
@@ -0,0 +1,39 @@
+/* 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 */
Index: modules/sysexits
===================================================================
RCS file: modules/sysexits
diff -N modules/sysexits
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ modules/sysexits    10 Jun 2003 20:57:12 -0000
@@ -0,0 +1,18 @@
+Description:
+Exit status codes for some BSD system programs.
+
+Files:
+lib/sysexits_.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += sysexits_.h
+
+Include:
+"sysexits_.h"
+
+Maintainer:
+Simon Josefsson





reply via email to

[Prev in Thread] Current Thread [Next in Thread]