#include #define FDOP_CLOSE 1 #define FDOP_DUP2 2 #define FDOP_OPEN 3 #define FDOP_CHDIR 4 #define FDOP_FCHDIR 5 #define malloc __libc_malloc #define calloc __libc_calloc #define realloc undef #define free __libc_free #define fa_chain __actions #define fa_ops __pad #define fa_cnt __pad0[0] #define FA_CNT_MAX \ (sizeof((posix_spawn_file_actions_t){0}.fa_ops) \ /sizeof((posix_spawn_file_actions_t){0}.fa_ops[0])) int __faexpand(posix_spawn_file_actions_t *, size_t);