These are the possible values for idtype in waitid(). They affect how id is interpreted:
os/P_PID
P_PID