Hi, thanks for your post.
My man page on wait3 is a bit different:
SYNOPSIS
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
pid_t wait3(int *status, int options,
struct rusage *rusage);
It doesn't specify #define __USE_BSD
I tried that anyway and it still didn't work. Although, in <sys/wait.h> there is a section that defines a union wait #ifdefined __USE_BSD. Curious.
At any rate, since wait3 is clearly expecting an int* for the first argument, I should be fine if I just declare
instead of
since (at this juncture) I am not concerned with portability. Does that makes sense?
P.S. What's up with all the leading underscore characters? Do they have some special significance by convention, or what?