[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] feature request: argp()
From: |
Simon Josefsson |
Subject: |
Re: [Bug-gnulib] feature request: argp() |
Date: |
Tue, 10 Jun 2003 20:29:17 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
James Youngman <address@hidden> writes:
> On Tue, Jun 10, 2003 at 07:26:05PM +0200, Simon Josefsson wrote:
>> Simon Josefsson <address@hidden> writes:
>>
>> > I also add a new module "sysexits", modeled after "exit", based on
>> > libc's sysexits.h that argp need.
>>
>> I forgot the MODULES.html.sh patch, but I'm having some trouble
>> figuring out the standard status of it. I doubt it is part of
>> ANSI/ISO C, but may be part of POSIX:2001. How can I find out? The
>> libc manual barely mention sysexits.h at all.
>
> You could check the online version of the POSIX standard, which by the
> way was updated - the current version is for 2003 (though the text was
> finalised in 2002). This is available at
> <http://www.opengroup.org/onlinepubs/007904975/toc.htm>.
>
>
> The answer, however, is that sysexits.h is included in neither the
> POSIX standard nor the Open Group Base Standard, though it is a fairly
> traditional Unix feature (I suspect it's BSD-ish). The only exit
> values that either of these two standards (which actually have the
> same text anyway) define are EXIT_FAILURE and EXIT_SUCCESS, which of
> course are inherited from the ISO C standard. The POSIX spec exptends
> ISO C by indicating that any value between 0000 and 0377 can be
> returned (other return values are reduced to just the low-order bits).
>
> So, sysexits.h is commonplace but not standard.
Thanks. "Extra functions based on POSIX:2001" seems like the proper
place then:
--- MODULES.html.sh.~1.22.~ Tue Jun 10 16:15:36 2003
+++ MODULES.html.sh Tue Jun 10 20:25:35 2003
@@ -1868,6 +1868,7 @@
func_begin_table
func_module argp
func_module exitfail
+ func_module sysexits
func_module c-stack
func_module error
func_module fatal
Also, the title in modules/sysexits in my last mail didn't look good
inside MODULES.html. Here's a new one:
Description:
Exit status codes for system programs.
- Re: [Bug-gnulib] feature request: argp(), (continued)
- Re: [Bug-gnulib] feature request: argp(), Bruno Haible, 2003/06/06
- Re: [Bug-gnulib] feature request: argp(), Simon Josefsson, 2003/06/06
- Re: [Bug-gnulib] feature request: argp(), Bruno Haible, 2003/06/07
- Re: [Bug-gnulib] feature request: argp(), Simon Josefsson, 2003/06/08
- Re: [Bug-gnulib] feature request: argp(), Bruno Haible, 2003/06/10
- Re: [Bug-gnulib] feature request: argp(), Simon Josefsson, 2003/06/10
- Re: [Bug-gnulib] feature request: argp(), Simon Josefsson, 2003/06/10
- Re: [Bug-gnulib] feature request: argp(), James Youngman, 2003/06/10
- Re: [Bug-gnulib] feature request: argp(),
Simon Josefsson <=
- Re: [Bug-gnulib] sysexits.h, Bruno Haible, 2003/06/10
- Re: [Bug-gnulib] sysexits.h, Simon Josefsson, 2003/06/10
- Re: [Bug-gnulib] sysexits.h, Bruno Haible, 2003/06/10
- Re: [Bug-gnulib] sysexits.h, Simon Josefsson, 2003/06/10
- Re: [Bug-gnulib] sysexits.h, Bruno Haible, 2003/06/11
- Re: [Bug-gnulib] sysexits.h, Simon Josefsson, 2003/06/11
- Re: [Bug-gnulib] sysexits.h, James Youngman, 2003/06/11
- Re: [Bug-gnulib] sysexits.h, Simon Josefsson, 2003/06/11
- Re: [Bug-gnulib] sysexits.h, Bruno Haible, 2003/06/11
- Re: [Bug-gnulib] sysexits.h, Simon Josefsson, 2003/06/11