summaryrefslogtreecommitdiff
path: root/rmt
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearPaul Eggert2023-01-062-2/+2
| | | | | | | UPDATE_COPYRIGHT_USE_INTERVALS=1 \ UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 \ gnulib/build-aux/update-copyright \ $(git ls-files | sed -e '/^gnulib$/d; /^COPYING$/d')
* Modernize integer handlingPaul Eggert2022-09-101-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | It’s now safe to assume C99 sprintf %jd, etc. * am/system.m4 (PU_SYSTEM): Do not require gl_INTTOSTR. * gnulib.modules, paxlib.modules: Remove inttostr. Add strtoimax, strtoumax. * lib/system.h (UINTMAX_STRSIZE_BOUND): Remove. * paxlib/error.c (chown_error_details, read_error_details) (read_warn_details, read_fatal_details, seek_error_details) (seek_warn_details, write_error_details): * paxlib/rtape.c (rmt_read, rmt_write, rmt_lseek, rmt_ioctl): * rmt/rmt.c (rmt_reply): * tests/genfile.c (verify_file, print_stat): Use C99 printf formats instead of doing it by hand. * paxlib/paxlib.h, rmt/rmt.c, tests/genfile.c: Do not include inttostr.h. * paxlib/paxlib.h (STRINGIFY_BIGINT): Remove. * tests/argcv.c (xtonum): Use strtol for signed int, not strtoul. * tests/genfile.c (checkpoint, verify_file, parse_opt) (exec_checkpoint, process_checkpoint, exec_command): Prefer uintmax_t to size_t for counters unrelated to object size. (PRINT_INT): New macro. (print_stat): Prefer uintmax_t to unsigned for modes.
* Fixes for ‘make dist’Paul Eggert2022-06-121-0/+21
| | | | | | | | * Makefile.am (EXTRA_DIST): Add DISTFILES and their contents that aren’t covered by other makefiles. (dist-hook): There is no make-ChangeLog, so make ChangeLog. * paxlib/Makefile.am (EXTRA_DIST): * rmt/Makefile.am (EXTRA_DIST): Add DISTFILES.
* rmt: fix missing includePaul Eggert2021-02-271-1/+2
| | | | | * rmt/Makefile.am (AM_CPPFLAGS): Add $(top_srcdir)/paxlib, for system.h’s ‘#include <paxlib.h>’.
* Fix in rmtSergey Poznyakoff2018-07-311-3/+7
| | | | | | * rmt/rmt.c (VDEBUG): Take 3 arguments. Maintain a local va_list variable. (rmt_write): Add missing va_end
* Use AM_CPPFLAGS rather than INCLUDES in Makefile.am'sMike Frysinger2012-12-011-1/+1
|
* rmt: accept file open modes in combined form.Sergey Poznyakoff2010-09-141-31/+50
| | | | | | * 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.
* Remove some lint, found by gcc -W etc.Paul Eggert2010-06-161-66/+66
| | | | | | | | | | | | | | * 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 ().
* Rewrite rmt from scratch.Sergey Poznyakoff2009-09-081-516/+652
| | | | * rmt/rmt.c: New implementation.
* Migrate to GitSergey Poznyakoff2009-03-072-3/+4
|
* Relicense under GPLv3Sergey Poznyakoff2007-06-271-2/+2
|
* * rmt/rmt.c (status_device) [!defined MTIOCGET]:Paul Eggert2006-12-131-1/+1
| | | | Fix bracketing typo. Problem reported by Yutaka Furubayashi.
* * lib/rtapelib.c: Include <rmt-command.h> rather than <localedir.h>,Paul Eggert2006-11-292-3/+3
| | | | | | | | | 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.
* Reverse changes to rmt.cSergey Poznyakoff2006-09-271-5/+1
|
* Use program_invocation_name instead of program_name.Sergey Poznyakoff2006-09-271-2/+5
|
* * rmt/rmt.c (STRING_SIZE): Now UINTMAX_STRSIZE_BOUND + 1, sincePaul Eggert2006-03-121-19/+24
| | | | | | | | | | | 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.
* (get_string): Renamed to get_string_n. All callersSergey Poznyakoff2006-03-111-25/+65
| | | | | | | | 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/DISTFILES: Add system-ioctl.h.Paul Eggert2006-02-201-0/+1
| | | | | | | | | | * 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.
* * gnulib.modules: Add closeout.Paul Eggert2006-02-071-2/+5
| | | | | * rmt/rmt.c: Include closeout.h. (main, usage): Use close_stdout to report write errors properly.
* * gnulib.modules: Add version-etc-fsf.Paul Eggert2006-02-071-8/+3
| | | | | * rmt/rmt.c: Include <version-etc.h>. (main): Use version_etc rather than rolling our own.
* * lib/rtapelib.c (encode_oflag): Simplify code, since O_NONBLOCKPaul Eggert2005-11-291-24/+24
| | | | | | | | | | 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.
* Update FSF postal mail address.Paul Eggert2005-05-151-1/+1
|
* (main): Remove unused variable.Sergey Poznyakoff2005-05-121-1/+0
|
* Cleaned up the mess. Fixed error reporting.Sergey Poznyakoff2005-02-041-269/+325
|
* (main): Fixed declarationSergey Poznyakoff2005-01-061-1/+1
|
* (main): Reverted changes. setlocale() is handled by system.hSergey Poznyakoff2004-12-221-2/+0
|
* (main): Protect NLS initialization by #ifdef ENABLE_NLSSergey Poznyakoff2004-12-211-0/+3
|
* Initial revisionSergey Poznyakoff2004-09-063-0/+592