27
27
#include <stdlib.h>             /* malloc(), exit(), EXIT_FAILURE,
 
28
28
                                   EXIT_SUCCESS, realloc() */
 
29
29
#include <stdbool.h>            /* bool, true, false */
 
30
 
#include <stdio.h>              /* perror, popen(), fileno(),
 
 
30
#include <stdio.h>              /* perror, fileno(), fprintf(),
 
32
32
#include <sys/types.h>          /* DIR, opendir(), stat(), struct
 
33
33
                                   stat, waitpid(), WIFEXITED(),
 
34
34
                                   WEXITSTATUS(), wait(), pid_t,