2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
36 #include <sys/types.h>
43 <2 bytes info> <2 bytes code>
45 <code> == 0, child has exited, info is the exit value
46 <code> == 1..7e, child has exited, info is the signal number.
47 <code> == 7f, child has stopped, info was the signal number.
48 <code> == 80, there was a core dump.
51 #define WIFEXITED(w) (((w) & 0xff) == 0)
52 #define WIFSIGNALED(w) (((w) & 0x7f) > 0 && ((w) & 0x7f< 0x7f))
53 #define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
54 #define WEXITSTATUS(w) (((w) >> 8) & 0xff)
55 #define WTERMSIG(w) ((w) & 0x7f)
56 #define WSTOPSIG WEXITSTATUS
59 IMPORT_C pid_t wait (int* status);
60 IMPORT_C pid_t waitpid (pid_t pid, int* status, int options);