Remove bogus errno FIXMEs.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user