[Top][All Lists]

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

Re: systems requiring exit?

From: Howard Chu
Subject: Re: systems requiring exit?
Date: Tue, 07 Nov 2006 14:08:51 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061029 Netscape/7.2 (ax) Firefox/1.5 SeaMonkey/1.5a

Matthew Woehlke wrote:
Howard Chu wrote:
Paul Eggert wrote:
"Ilya N. Golubev" <address@hidden> writes:
Have no systems with broken `return' at hand,

That's the fundamental problem.  These systems are _ancient_ -- they
all predate C89 -- and they are so old that nobody uses them any more.

As I recall when porting a number of packages to OS/390 and z/OS, all of configure's conftests failed using "return" (SEGV) and I had to change them all to "exit"...

Hmm, mainframes? I want to say VMS also uses 'return 1' for success (or maybe it even needs exit; I'm not the one that has to deal with our VMS systems). But as I recall VMS doesn't have a POSIX shell either. Is there any VMS support that anyone is worried about?

Yes, there is a POSIX environment available on the mainframes. It's not the most stable thing in the world (return from main() shouldn't cause a SEGV, obviously) but it's possible to do useful work in it. I ported all of BerkeleyDB, OpenSSL, Cyrus SASL, Heimdal Kerberos, and OpenLDAP, and it all ran with reasonable performance.

 -- Howard Chu
 Chief Architect, Symas Corp.
 Director, Highland Sun
 OpenLDAP Core Team  

reply via email to

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