From 207390f763c23b7db63ddfea36793b657da431fe Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 11 Jun 2001 08:43:24 +0000 Subject: Update. 2001-06-11 Michael Deutschmann * rt/tst-aio4.c (do_test): Test whether rt signals are supported. Use my_signo instead of MY_SIGNO and initialize it so that the used signal is always available. 2001-06-11 Andreas Jaeger , Michael Deutschmann * io/test-lfs.c (do_prepare): Clean up error messages. (test_ftello): Check for EFBIG and ENOSP, clean up error messages. (do_test): Likewise. 2001-06-11 Andreas Jaeger * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (IXANY, IUCLC, IMAXBEL): Make always visible since they're needed by POSIX. Closes PR libc/2320, reported by Chris Yeoh . 2001-06-10 Ben Collins * sysdeps/arm/elf/start.S: Use #function, not @function, for .type of _start. * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Include limits.h to get INT_MAX. 2001-06-07 H.J. Lu * sunrpc/rpc/rpc.h: Add __BEGIN_DECLS/__END_DECLS. --- io/test-lfs.c | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'io/test-lfs.c') diff --git a/io/test-lfs.c b/io/test-lfs.c index a08801f7af..db17db2966 100644 --- a/io/test-lfs.c +++ b/io/test-lfs.c @@ -65,7 +65,7 @@ do_prepare (int argc, char *argv[]) if (errno == ENOSYS) { /* Fail silently. */ - error (0, errno, "open64 is not supported"); + error (0, 0, "open64 is not supported"); exit (EXIT_SUCCESS); } else @@ -100,29 +100,35 @@ test_ftello (void) ret = fseeko64 (f, TWO_GB+100, SEEK_SET); if (ret == -1 && errno == ENOSYS) { - error (0, errno, "fseeko64 is not supported"); + error (0, 0, "fseeko64 is not supported."); exit (EXIT_SUCCESS); } if (ret == -1 && errno == EINVAL) { - error (0, errno, "LFS seems not to be supported "); + error (0, 0, "LFS seems not to be supported"); exit (EXIT_SUCCESS); } if (ret == -1) { - error (0, errno, "fseeko64 failed with error: "); + error (0, errno, "fseeko64 failed with error"); exit (EXIT_FAILURE); } ret = fwrite ("Hello", 1, 5, f); - if (ret == -1 && errno == EINVAL) + if (ret == -1 && errno == EFBIG) + { + error (0, errno, "LFS seems not to be supported"); + exit (EXIT_SUCCESS); + } + + if (ret == -1 && errno == ENOSPC) { - error (0, errno, "LFS seems not to be supported."); + error (0, 0, "Not enough space to write file."); exit (EXIT_SUCCESS); } if (ret != 5) - error (EXIT_FAILURE, errno, "cannot write test string to large file"); + error (EXIT_FAILURE, errno, "Cannot write test string to large file"); pos = ftello64 (f); @@ -144,24 +150,30 @@ do_test (int argc, char *argv[]) ret = lseek64 (fd, TWO_GB+100, SEEK_SET); if (ret == -1 && errno == ENOSYS) { - error (0, errno, "lseek64 is not supported"); + error (0, 0, "lseek64 is not supported."); exit (EXIT_SUCCESS); } if (ret == -1 && errno == EINVAL) { - error (0, errno, "LFS seems not to be supported "); + error (0, 0, "LFS seems not to be supported."); exit (EXIT_SUCCESS); } if (ret == -1) { - error (0, errno, "lseek64 failed with error: "); + error (0, errno, "lseek64 failed with error"); exit (EXIT_FAILURE); } ret = write (fd, "Hello", 5); - if (ret == -1 && errno == EINVAL) + if (ret == -1 && errno == EFBIG) + { + error (0, 0, "LFS seems not to be supported."); + exit (EXIT_SUCCESS); + } + + if (ret == -1 && errno == ENOSPC) { - error (0, errno, "LFS seems not to be supported."); + error (0, 0, "Not enough space to write file."); exit (EXIT_SUCCESS); } @@ -176,7 +188,7 @@ do_test (int argc, char *argv[]) ret = stat64 (name, &statbuf); if (ret == -1 && (errno == ENOSYS || errno == EOVERFLOW)) - error (0, errno, "stat64 is not supported"); + error (0, 0, "stat64 is not supported."); else if (ret == -1) error (EXIT_FAILURE, errno, "cannot stat file `%s'", name); else if (statbuf.st_size != (TWO_GB + 100 + 5)) -- cgit 1.4.1