Added a define for WIFEXITED() that is used if one is missing.

This commit is contained in:
Wayne Davison
2006-10-24 03:31:30 +00:00
parent 50dfd5b4fe
commit 47b032e97f

View File

@@ -857,6 +857,9 @@ size_t strlcat(char *d, const char *s, size_t bufsize);
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF))
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat) ((int)((stat)&0xFF) == 0)
#endif
#define exit_cleanup(code) _exit_cleanup(code, __FILE__, __LINE__)