<refentry id="zvt-subshell-includes"> <refmeta> <refentrytitle>subshell-includes</refentrytitle> <manvolnum>3</manvolnum> <refmiscinfo>ZVT Library</refmiscinfo> </refmeta> <refnamediv> <refname>subshell-includes</refname><refpurpose></refpurpose> </refnamediv> <refsynopsisdiv><title>Synopsis</title> <synopsis> #define <link linkend="WEXITSTATUS-CAPS">WEXITSTATUS</link> (stat_val) #define <link linkend="WIFEXITED-CAPS">WIFEXITED</link> (stat_val) </synopsis> </refsynopsisdiv> <refsect1> <title>Description</title> <para> A longer description goes here. </para> </refsect1> <refsect1> <title>Details</title> <refsect2> <title><anchor id="WEXITSTATUS-CAPS">WEXITSTATUS()</title> <programlisting># define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) </programlisting> </refsect2> <refsect2> <title><anchor id="WIFEXITED-CAPS">WIFEXITED()</title> <programlisting># define WIFEXITED(stat_val) (((stat_val) & 255) == 0) </programlisting> </refsect2> </refsect1> </refentry>