From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,afc5a3ed94577019 X-Google-Attributes: gidfee84,public From: "Gerald A. Feldman" Subject: Re: Return Status Codes for system() Function??? Date: 1997/05/24 Message-ID: <338786BD.40E912FC@mediaone.net>#1/1 X-Deja-AN: 243703393 References: <3385E815.41C6@klab.caltech.edu> To: Al Wong X-Priority: 3 (Normal) Organization: Boston Computer Solutions and Consulting Newsgroups: comp.unix.osf.osf1 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 , or does your code supply a declaration for system(). -- Jerry Feldman Boston Computer Solutions and Consulting http://gaf.ne.mediaone.net/