From: "Gerald A. Feldman" <gaf@mediaone.net>
To: Al Wong <wong@southport.jpl.nasa.gov>
Subject: Re: Return Status Codes for system() Function???
Date: 1997/05/24 [thread overview]
Message-ID: <338786BD.40E912FC@mediaone.net> (raw)
In-Reply-To: 3385E815.41C6@klab.caltech.edu
James Bond wrote: According to the man page, system() will return 0 if
successful.
> On error system() will return -1 and errno is set. Any other value
> (such as 256!) is the same as wait(). Looking at the wait() man page,
>
> it tells you to see the wait.h file. Looking at the wait.h file,
> there is no mention of the 256 return status! What gives?
>
> Looking at the other header files, there is no clue about the
> return values of system(). Tried looking at the DEC website and
> could not find a list of values. Actually, a list of the possible
> values system() returns and their meanings would be very helpful.
>
> I'm working on a DEC Alpha with OSF/1 and the cc compiler that
> came with the machine.
>
> Please cc: your reply to my email address below as I don't
> read this newsgroup very often. Thank you.
It is important that you supply which version of Digital Unix as well as
the compiler version. The -V compiler option will display the version.
In V3.2X and prior versions,
the c compiler is what we refer to as ACC. In V3.2C aand later V3.2
version we ship DECC which can be used with the -migrate switch.
In V4.0 and later versions, DECC is the default compiler. Also, you
should supply what flags are used. How is thr system() function
prototyped. Did you include <stdlib.h>, or
does your code supply a declaration for system().
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
next prev parent reply other threads:[~1997-05-24 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-23 4:00 Return Status Codes for system() Function??? James Bond
1997-05-24 4:00 ` Gerald A. Feldman [this message]
1997-05-24 4:00 ` John Hascall
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox