From: Paul Eggert Date: Tue, 2 Mar 1999 00:10:11 +0000 (+0000) Subject: (main): Remove suspicious AIX/386 code. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=00a2b4708fc77a09c9b5ca372b2846341c12c75e;p=chaz%2Ftar (main): Remove suspicious AIX/386 code. --- diff --git a/src/rmt.c b/src/rmt.c index 805f69b..ac0317d 100644 --- a/src/rmt.c +++ b/src/rmt.c @@ -227,34 +227,7 @@ top: if (tape >= 0) close (tape); -#if defined (i386) && defined (AIX) - - /* This is alleged to fix a byte ordering problem. I'm quite - suspicious if it's right. -- mib. */ - - { - mode_t old_mode = atol (mode_string); - mode_t new_mode = 0; - - if ((old_mode & 3) == 0) - new_mode |= O_RDONLY; - if (old_mode & 1) - new_mode |= O_WRONLY; - if (old_mode & 2) - new_mode |= O_RDWR; - if (old_mode & 0x0008) - new_mode |= O_APPEND; - if (old_mode & 0x0200) - new_mode |= O_CREAT; - if (old_mode & 0x0400) - new_mode |= O_TRUNC; - if (old_mode & 0x0800) - new_mode |= O_EXCL; - tape = open (device_string, new_mode, 0666); - } -#else tape = open (device_string, atoi (mode_string), 0666); -#endif if (tape < 0) goto ioerror; goto respond;