about summary refs log tree commit diff
path: root/io/test-lfs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-08 22:28:15 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-08 22:28:15 +0000
commit0b795736c823a672f840b63920b098f3a7290451 (patch)
tree17d01c338a5045df92ca5587995cf70159547718 /io/test-lfs.c
parent2090dd736453e0fc9b646ed7bc342b55bafd441d (diff)
downloadglibc-0b795736c823a672f840b63920b098f3a7290451.tar.gz
glibc-0b795736c823a672f840b63920b098f3a7290451.tar.xz
glibc-0b795736c823a672f840b63920b098f3a7290451.zip
Update.
	* intl/dcigettext.c: Fix a few warnings.
	Patch by Bruno Haible <haible@ilog.fr>.

2001-01-08  Andreas Jaeger  <aj@suse.de>

	* io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
	Reported by Joseph S. Myers <jsm28@cam.ac.uk>.

2001-01-08  Ulrich Drepper  <drepper@redhat.com>
Diffstat (limited to 'io/test-lfs.c')
-rw-r--r--io/test-lfs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/io/test-lfs.c b/io/test-lfs.c
index b423a10f08..bfc71f1ac8 100644
--- a/io/test-lfs.c
+++ b/io/test-lfs.c
@@ -1,5 +1,5 @@
 /* Some basic tests for LFS.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    Contributed by Andreas Jaeger <aj@suse.de>, 2000.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -100,6 +100,11 @@ do_test (int argc, char *argv[])
       error (0, errno, "lseek64 is not supported");
       exit (EXIT_SUCCESS);
     }
+  if (ret == -1 && errno == EINVAL)
+    {
+      error (0, errno, "LFS seems not to be supported ");
+      exit (EXIT_SUCCESS);
+    }
 
   ret = write (fd, "Hello", 5);
   if (ret == -1 && errno == EINVAL)