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
_______________________________________________
Bug-m4 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-m4