1 #ifndef DUP2_ARRAY_H 2 #define DUP2_ARRAY_H 3 4 struct dup2 { 5 int fd_src, fd_dest; 6 }; 7 ARRAY_DEFINE_TYPE(dup2, struct dup2); 8 9 void dup2_append(ARRAY_TYPE(dup2) *dups, int fd_src, int fd_dest); 10 11 int dup2_array(ARRAY_TYPE(dup2) *dups); 12 13 #endif 14