diff options
author | Guido van Rossum <guido@python.org> | 1994-08-29 10:43:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-29 10:43:12 (GMT) |
commit | ba941eba679f2ea645e00411a8a40553840e4b54 (patch) | |
tree | 898f5fc406d8e8b1926e7aaa36e81be568f056fc /Python | |
parent | 8e1f8dd094f2a29f779bcee2868ffe3898f0866e (diff) | |
download | cpython-ba941eba679f2ea645e00411a8a40553840e4b54.zip cpython-ba941eba679f2ea645e00411a8a40553840e4b54.tar.gz cpython-ba941eba679f2ea645e00411a8a40553840e4b54.tar.bz2 |
MPW changes
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dup2.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/dup2.c b/Python/dup2.c index ee1a7ad..85ec5d5 100644 --- a/Python/dup2.c +++ b/Python/dup2.c @@ -20,17 +20,12 @@ dup2(fd1, fd2) int fd1, fd2; { if (fd1 != fd2) { -#ifdef MPW - close (fd2); /* XXX RJW MPW does not implement F_GETFL but it does have dup */ - fd2 = dup(fd1); -#else if (fcntl(fd1, F_GETFL) < 0) return BADEXIT; if (fcntl(fd2, F_GETFL) >= 0) close(fd2); if (fcntl(fd1, F_DUPFD, fd2) < 0) return BADEXIT; -#endif } return fd2; } |