Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is mnemonic for "W" in WIFEXITED, WEXITSTATUS, etc?

Tags:

c

libc

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.

like image 777
Roman Byshko Avatar asked Dec 18 '11 19:12

Roman Byshko


2 Answers

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

like image 75
Basile Starynkevitch Avatar answered Sep 23 '22 05:09

Basile Starynkevitch


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

like image 31
Michael Krelin - hacker Avatar answered Sep 22 '22 05:09

Michael Krelin - hacker