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