This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add sysexits.h EX_* symbols to posix
Type: Stage:
Components: Extension Modules Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, loewis, nnorwitz
Priority: normal Keywords: patch

Created on 2003-01-02 23:03 by barry, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sysexits-patch.txt barry, 2003-01-02 23:46
Messages (8)
msg42199 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-01-02 23:03
The following patch adds the EX_* symbols to the posix
module (exposed through os of course).  These are
defined in sysexits.h.  Done this way since the list
can be (slightly) different depending on the OS.  This
patch includes configure updates to detect sysexits.h.

I'll update docs if it's approved for Py2.3.
msg42200 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-01-02 23:15
Logged In: YES 
user_id=21627

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )
msg42201 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-01-02 23:46
Logged In: YES 
user_id=12800

I know all about this PITA, thought I had, guess I didn't. ;(

Trying again...
msg42202 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-01-03 00:03
Logged In: YES 
user_id=21627

Never heard about sysexit.h... The patch looks fine, except
that the list of headers to test should be roughly in
alphabetical order (so that it is easier to spot
duplicates). Please apply it.

In general, there is no need to attach the generated
configure to SF bug reports, it will outdate quickly.
msg42203 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-01-03 02:58
Logged In: YES 
user_id=12800

The order is roughly the order found in Linux's sysexits.h,
which is in numerical order (there is one extra symbol found
in Solaris's sysexit.h that isn't in Linux's).

I'll work out doc updates before I commit.  Thanks for
looking at it.  The configure goo was because I didn't trim
my "cvs diff -u" output. ;)
msg42204 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-01-03 08:10
Logged In: YES 
user_id=21627

I'm not concerned about the order of symbols in posixmodule,
but about the order of header names in configure.in - those
should be alphabetical.
msg42205 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-01-06 22:55
Logged In: YES 
user_id=12800

Except they aren't alphabetical now. ;)
msg42206 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-01-10 23:56
Logged In: YES 
user_id=33168

Barry checked this in as Modules/posixmodule.c 2.281, so I'm
closing.
History
Date User Action Args
2022-04-10 16:06:05adminsetgithub: 37697
2003-01-02 23:03:43barrycreate