diff --git a/src/getlimits.c b/src/getlimits.c index 69d19c67e..b291c8b81 100644 --- a/src/getlimits.c +++ b/src/getlimits.c @@ -203,6 +203,7 @@ main (int argc, char **argv) /* Other useful constants */ printf ("SIGRTMIN=%jd\n", (intmax_t) {SIGRTMIN}); printf ("SIGRTMAX=%jd\n", (intmax_t) {SIGRTMAX}); + printf ("BUFSIZ=%ju\n", (uintmax_t) {BUFSIZ}); printf ("IO_BUFSIZE=%ju\n", (uintmax_t) {IO_BUFSIZE}); /* Errnos */ diff --git a/tests/head/head-elide-tail.pl b/tests/head/head-elide-tail.pl index 7ec02c267..4ffdcb1a2 100755 --- a/tests/head/head-elide-tail.pl +++ b/tests/head/head-elide-tail.pl @@ -26,7 +26,8 @@ $ENV{PROG} = 'head'; @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3; # This should match the definition in head.c. -my $READ_BUFSIZE = 8192; +my $limits = getlimits (); +my $READ_BUFSIZE = $limits->{BUFSIZ}; my @Tests = (