5 int main (int argc
, char **argv
)
12 s1
= DO( open("/dev/null", O_RDONLY
) );
13 s2
= DO( open("/dev/null", O_RDONLY
) );
15 (void) DO( dup2(s1
, 20) ); // dup s1 as fd 20
16 (void) DO( dup2(s1
, s2
) ); // dup s1 as fd s2, which closes existing s2 fd