Annotation of researchv10dc/cmd/nupas/libc/dup2.c, revision 1.1.1.1

1.1       root        1: #include <fcntl.h>
                      2: 
                      3: int
                      4: dup2(a,b)
                      5:        int a;
                      6:        int b;
                      7: {
                      8:        if (a==b)
                      9:                return 0;
                     10:        close(b);
                     11:        return fcntl(a, F_DUPFD, b);
                     12: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.