5

What is mnemonic for "W" i.e. what does "W" mean in the following macros:

int WIFEXITED (int status)
int WEXITSTATUS (int status)
int WIFSIGNALED (int status)
int WTERMSIG (int status)
int WCOREDUMP (int status)
int WIFSTOPPED (int status)
int WSTOPSIG (int status)

Also see Process Status Completion.

Roman Byshko
  • 8,591
  • 7
  • 35
  • 57

2 Answers2

11

I suspect it's for wait. These constants are for status provided by wait, waitpid, etc. functions.

Michael Krelin - hacker
  • 138,757
  • 24
  • 193
  • 173
11

It is simply related to W-aiting functions like the waitpid syscall.

Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547