This improvement is due to changes to Gnulib's fprintftime module.
* NEWS: Mention the improvement.
* src/getlimits.c (OFF64_T_MAX, OFF64_T_MIN): New macros.
(main): Print them.
* tests/misc/write-errors.sh: Call getlimits_. Add a date invocation.
** Improvements
- 'fmt', 'nl', and 'pr' will now exit promptly upon receiving a write error,
- which is significant when reading large / unbounded inputs.
+ 'fmt', 'date', 'nl', and 'pr' will now exit promptly upon receiving a write
+ error, which is significant when reading large / unbounded inputs.
install, sort, and split now use posix_spawn() to invoke child programs more
efficiently and more independently from their own memory usage.
# define PID_T_MIN TYPE_MINIMUM (pid_t)
#endif
+#ifndef OFF64_T_MAX
+# define OFF64_T_MAX TYPE_MAXIMUM (off64_t)
+#endif
+
+#ifndef OFF64_T_MIN
+# define OFF64_T_MIN TYPE_MINIMUM (off64_t)
+#endif
+
/* These are not interesting to print.
* Instead of these defines it would be nice to be able to do
* #ifdef (TYPE##_MIN) in function macro below. */
print_int (GID_T);
print_int (PID_T);
print_int (OFF_T);
+ print_int (OFF64_T);
print_int (INTMAX);
print_int (UINTMAX);
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ timeout env
+getlimits_
if ! test -w /dev/full || ! test -c /dev/full; then
skip_ '/dev/full is required'
comm -z /dev/zero /dev/zero
cut -z -c1- /dev/zero
cut -z -f1- /dev/zero
+date +%${OFF64_T_MAX}c
date --version; yes 0 | date -f-
dd if=/dev/zero
expand /dev/zero