[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sysval and doc fixes [was: GNU M4 1.4.4b released (beta release)]
From: |
Andreas Büning |
Subject: |
Re: sysval and doc fixes [was: GNU M4 1.4.4b released (beta release)] |
Date: |
Wed, 21 Jun 2006 23:48:48 +0200 |
Eric Blake wrote:
> According to Andreas Büning on 6/20/2006 1:22 PM:
> >
> > pclose() and waitpid(), yes but not system(). system() is Standard C
> > but even C99 doesn't seem to specify its return value except for
> > system(NULL), neither does POSIX.1.
>
> Which version of POSIX?
A quite old one. I'm using the book "Posix Programmer's Guide" which
is from the last century.
> Therefore, it looks like OS/2 is not POSIX compliant,
Yes.
> and we will have to
> detect that with a configure test of some sort. Is there any compile-time
> test we can run that will reliably show when WEXITSTATUS doesn't work on
> the result of system()?
Not yet. Would it make sense to check the return value of system("exit 1")
or anything like that?
Best regards,
Andreas