| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
* rmt/rmt.c (rmt_write, rmt_error_message): Flush stdout.
(decode_open_flag): Accept a combined form of file mode:
a decimal number followed by a symbolic representation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lib/rtapelib.c (do_command, rmt_write__): Use function
prototypes instead of old-style decls.
* paxlib/error.c (write_fatal): Remove unused and undeclared
function.
* paxlib/paxlib.h (stat_fatal, pax_exit): Add noreturn attribute.
(write_error_details): New decl.
* rmt/rmt.c (rmt_read, rmt_write, rmt_reply, rmt_error_message):
(rmt_error, xlat_kw, skip_ws, decode_open_flag, close_device):
(lseek_device, read_device, write_device, iocop_device, status_device):
Declare as static, since they're not exported.
Use function prototypes (void) instead of old-style decls ().
|
|
|
|
| |
* rmt/rmt.c: New implementation.
|
| |
|
| |
|
|
|
|
| |
Fix bracketing typo. Problem reported by Yutaka Furubayashi.
|
|
|
|
|
|
|
|
|
| |
to accommodate recent changes to gnulib and tar.
* rmt/rmt.c: Likewise.
* rmt/Makefile.am (rmt.o): Depend on configmake.h, not localedir.h.
* m4/system.m4 (PU_SUSTEM): Put AC_REQUIRE wrappers around
AC_HEADER_STDC, etc. This avoids a warning from automake,
with the latest gnulib.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
bounded strings are used only for integers now.
(get_string): Use a prototype. Remove unused local var 'counter'.
(get_long): Arg is now char const *, not char *.
Check for integer overflow in arg.
Check for empty arg.
(open_device): Use get_string for oflags, too, since the existing
limits were uncomfortably close to being too small.
Don't assume free_string does not affect errno.
|
|
|
|
|
|
|
|
| |
changed.
(get_string,free_string,i18n_setup): New function.
(usage): Call i18n_setup
(open_device): Use new get_string function to remove the
limitation on the device name length.
|
|
|
|
|
|
|
|
|
|
| |
* lib/system.h: Move the MTIO* stuff into....
* lib/system-ioctl.h: New file. That way, the symbols defined
by these includes won't collide with the symbols defined by
<sys/filio.h> on Solaris when compiling misc.c.
* lib/rtapelib.c: Include system-ioctl.h.
* paxlib/rtape.c: Likewise.
* rmt/rmt.c: Likewise.
|
|
|
|
|
| |
* rmt/rmt.c: Include closeout.h.
(main, usage): Use close_stdout to report write errors properly.
|
|
|
|
|
| |
* rmt/rmt.c: Include <version-etc.h>.
(main): Use version_etc rather than rolling our own.
|
|
|
|
|
|
|
|
|
|
| |
is always defined now.
* paxlib/rtape.c (encode_oflag): Likewise.
* lib/system.h (O_DIRCTORY, O_NOATIME, O_NONBLOCK): Define to 0
if not already defined.
* paxlib/error.c (rmdir_error): New function.
* paxlib/error.h (rmdir_error): New decl.
* rmt/rmt.c (decode_oflag): Use '#if O_NONBLOCK", not ifdef.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|