]> Dogcows Code - chaz/tar/commitdiff
Remove bogus errno FIXMEs.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 1999 13:04:17 +0000 (13:04 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 1999 13:04:17 +0000 (13:04 +0000)
src/buffer.c
src/extract.c
src/list.c
src/rmt.c
src/rmt.h
src/rtapelib.c

index d60eaea55c1755368ba79ad29312621a19a4425b..017282748ef07be5abef4a303f210167bf0c7bd6 100644 (file)
@@ -912,7 +912,7 @@ flush_write (void)
 
   if (tape_length_option && tape_length_option <= bytes_written)
     {
-      errno = ENOSPC;          /* FIXME: errno should be read-only */
+      errno = ENOSPC;
       status = 0;
     }
   else if (dev_null_output)
index 0aba5e7fa0af2ecf7d812332196a54fc875d0efe..9d47c58bcd8b1fdc04799bcc1cf7e1c54fcc3f91 100644 (file)
@@ -243,7 +243,7 @@ make_directories (char *file_name)
       break;
     }
 
-  errno = saved_errno;         /* FIXME: errno should be read-only */
+  errno = saved_errno;
   return did_something;                /* tell them to retry if we made one */
 }
 
@@ -648,7 +648,7 @@ extract_archive (void)
 
            if (written > size)
              written = size;
-           errno = 0;          /* FIXME: errno should be read-only */
+           errno = 0;
            sstatus = full_write (fd, data_block->buffer, written);
 
            set_next_block_after ((union block *)
@@ -886,7 +886,7 @@ extract_archive (void)
              if (stat (CURRENT_FILE_NAME, &st1) == 0 && S_ISDIR (st1.st_mode))
                goto check_perms;
 
-             errno = saved_errno; /* FIXME: errno should be read-only */
+             errno = saved_errno;
            }
 
          if (maybe_recoverable (CURRENT_FILE_NAME))
index 6b69bc6c19ea745fcba2bd6cdc7a3ec0779d4511..b118f887265468c9c1d9e15fb14cd30e47718dbc 100644 (file)
@@ -223,7 +223,7 @@ list_archive (void)
          written = available_space_after (data_block);
          if (written > size)
            written = size;
-         errno = 0;            /* FIXME: errno should be read-only */
+         errno = 0;
          check = fwrite (data_block->buffer, sizeof (char), written, stdlis);
          set_next_block_after ((union block *)
                                (data_block->buffer + written - 1));
index 0215bffb8a577855380ecb7068866bd9eaf80780..e960f10b9377bd09d5a94ad2f2838da4b2f45287 100644 (file)
--- a/src/rmt.c
+++ b/src/rmt.c
@@ -335,7 +335,7 @@ see the file named COPYING for details."));
     }
 
 top:
-  errno = 0;                   /* FIXME: errno should be read-only */
+  errno = 0;
   status = 0;
   if (safe_read (STDIN_FILENO, &command, 1) != 1)
     return EXIT_SUCCESS;
index da8f62963983dff62313b5b14dd0ebc0fcb6698a..17a2a2ffb0ad67ac681e7ac44d637f8a3683af4c 100644 (file)
--- a/src/rmt.h
+++ b/src/rmt.h
@@ -52,7 +52,6 @@ int rmt_ioctl__ PARAMS ((int, int, char *));
 
 #define rmtstat(Path, Buffer) \
   (_remdev (Path) ? (errno = EOPNOTSUPP), -1 : stat (Path, Buffer))
-                               /* FIXME: errno should be read-only */
 
 #define rmtcreat(Path, Mode, Command) \
    (_remdev (Path) \
@@ -61,7 +60,6 @@ int rmt_ioctl__ PARAMS ((int, int, char *));
 
 #define rmtlstat(Path, Buffer) \
   (_remdev (Path) ? (errno = EOPNOTSUPP), -1 : lstat (Path, Buffer))
-                               /* FIXME: errno should be read-only */
 
 #define rmtread(Fd, Buffer, Length) \
   (_isrmt (Fd) ? rmt_read__ (Fd - __REM_BIAS, Buffer, Length) \
@@ -84,15 +82,12 @@ int rmt_ioctl__ PARAMS ((int, int, char *));
 
 #define rmtdup(Fd) \
   (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : dup (Fd))
-                               /* FIXME: errno should be read-only */
 
 #define rmtfstat(Fd, Buffer) \
   (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : fstat (Fd, Buffer))
-                               /* FIXME: errno should be read-only */
 
 #define rmtfcntl(Fd, Command, Argument) \
   (_isrmt (Fd) ? (errno = EOPNOTSUPP), -1 : fcntl (Fd, Command, Argument))
-                               /* FIXME: errno should be read-only */
 
 #define rmtisatty(Fd) \
   (_isrmt (Fd) ? 0 : isatty (Fd))
index 2116cb655295df789716c4249fdd9a4609d56f07..8ec2f81df3bfbcab493cfc7420fd565889a86022 100644 (file)
@@ -104,7 +104,7 @@ _rmt_shutdown (int handle, int errno_value)
   close (WRITE_SIDE (handle));
   READ_SIDE (handle) = -1;
   WRITE_SIDE (handle) = -1;
-  errno = errno_value;         /* FIXME: errno should be read-only */
+  errno = errno_value;
 }
 
 /*-------------------------------------------------------------------------.
@@ -173,7 +173,7 @@ get_status_string (int handle, char *command_buffer)
 
   if (*cursor == 'E' || *cursor == 'F')
     {
-      errno = atoi (cursor + 1); /* FIXME: errno should be read-only */
+      errno = atoi (cursor + 1);
 
       /* Skip the error message line.  */
 
@@ -379,7 +379,7 @@ rmt_open__ (const char *path, int open_mode, int bias, const char *remote_shell)
 
   if (remote_pipe_number == MAXUNIT)
     {
-      errno = EMFILE;          /* FIXME: errno should be read-only */
+      errno = EMFILE;
       return -1;
     }
 
@@ -670,7 +670,7 @@ rmt_ioctl__ (int handle, int operation, char *argument)
   switch (operation)
     {
     default:
-      errno = EOPNOTSUPP;      /* FIXME: errno should be read-only */
+      errno = EOPNOTSUPP;
       return -1;
 
 #ifdef MTIOCTOP
This page took 0.034624 seconds and 4 git commands to generate.