rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 4096742b6e95c879444b004a92f4fa43e648abed
parent ffe6f1d41d3711bcae4f622028966839f739419f
Author: tjg <tjg>
Date:   Thu, 17 Jul 2003 11:59:38 +0000

  Testing: remove test for large file support, as it causes
  indigestion on file systems that don't support sparse files (thanks
  Scott Schwartz).

Diffstat:
MChangeLog | 6++++++
Mtrip.rc | 12------------
Mtripping.c | 18------------------
3 files changed, 6 insertions(+), 30 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -820,3 +820,9 @@ Changes since rc-1.5b2 command; history writes and reads outside allocated memory. Configuration: upgrade to autoconf-2.56 and automake-1.7.1. + +2003-07-17 + + Testing: remove test for large file support, as it causes + indigestion on file systems that don't support sparse files (thanks + Scott Schwartz). diff --git a/trip.rc b/trip.rc @@ -594,15 +594,3 @@ x=$tmp.qux/foo* ~ $x $tmp.qux/foo || { rm -rf $tmp.qux; fail broken symlink globbing } x=$tmp.qux*/foo ~ $x $tmp.qux/foo || { rm -rf $tmp.qux; fail broken symlink globbing } - -# large file support - -# this is, by no means, an exhaustive test. since particular file -# systems do, or do not, support large files, we try it both in the -# build directory and /tmp. - -if (./tripping l > big.$pid >[2] /dev/null || - ./tripping l > /tmp/big.$pid >[2] /dev/null) { - echo large file support seems to work -} else echo large file support seems NOT to work - see INSTALL file -rm -f big.$pid /tmp/big.$pid diff --git a/tripping.c b/tripping.c @@ -19,21 +19,6 @@ static void ctrl_a(void) { puts("a\001ab\002b"); } -static void large(void) { - char c = 'c'; - -#define LARGE (((off_t)1<<33)+1) - - if (lseek(1, LARGE, SEEK_SET) != LARGE) { - perror("lseek"); - exit(1); - } - if (write(1, &c, 1) == -1) { - perror("write"); - exit(1); - } -} - static void makenonblock(void) { int flags; @@ -52,9 +37,6 @@ int main(int argc, char **argv) { case 'a': ctrl_a(); break; - case 'l': - large(); - break; case 'n': makenonblock(); break;