]> Dogcows Code - chaz/tar/commitdiff
(main): Remove suspicious AIX/386 code.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Mar 1999 00:10:11 +0000 (00:10 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Mar 1999 00:10:11 +0000 (00:10 +0000)
src/rmt.c

index 805f69b5372ae2a377dfd9de0d6e318ec5baec0d..ac0317d31bc1b01a93180a35b6d55f6cc121dece 100644 (file)
--- 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;
This page took 0.028096 seconds and 4 git commands to generate.