lua-users home
lua-l archive

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



On 15-Oct-04, at 4:50 PM, David Given wrote:

system() is implemented using wait(). There are a bunch of macros available for pulling out useful info from the return code for wait(). 'man wait' will give the list
...
I think these are Posix; does anyone have a Posix reference anywhere?


This one is good: <http://www.opengroup.org/onlinepubs/009695399/toc.htm>

The description of the macros will be found at the bottom of this page:
 <http://www.opengroup.org/onlinepubs/009695399/functions/wait.html>

along with a minimalistic explanation of why they are used instead of just masking off the last byte, as was traditional.

R.