Use a common stdio fun for stderr and stdout
Use macros to generate header pattern matches
test: wait for SIGCHLD