]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 26 May 2000 20:31:12 +0000 (20:31 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 26 May 2000 20:31:12 +0000 (20:31 +0000)
* posix/Makefile (tests): Add tst-truncate and tst-truncate64.
* posix/tst-truncate.c: New file.
* posix/tst-truncate64.c: New file.

ChangeLog
posix/Makefile
posix/tst-truncate64.c [new file with mode: 0644]

index d18a0ccd6b740c0081699c9fa8f7647087e37918..52771ad65df252b7730acad1892eb26357b506a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
 
+       * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
+       * posix/tst-truncate.c: New file.
+       * posix/tst-truncate64.c: New file.
+
        * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
        was switched.
 
index 1c5a8172b4227506193b2fe1ee9919cca9321a4f..468a078e066cad908e7f50a647b19131fd7a9492 100644 (file)
@@ -65,7 +65,8 @@ include ../Makeconfig
 aux            := init-posix environ
 tests          := tstgetopt testfnm runtests runptests      \
                   tst-preadwrite tst-preadwrite64 test-vfork regexbug1 \
-                  tst-getlogin tst-mmap tst-getaddrinfo
+                  tst-getlogin tst-mmap tst-getaddrinfo tst-truncate \
+                  tst-truncate64
 ifeq (yes,$(build-shared))
 test-srcs      := globtest
 tests           += wordexp-test
diff --git a/posix/tst-truncate64.c b/posix/tst-truncate64.c
new file mode 100644 (file)
index 0000000..2a7a4a6
--- /dev/null
@@ -0,0 +1,23 @@
+/* Tests for ftruncate64 and truncate64.
+   Copyright (C) 2000 Free Software Foundation, Inc.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#define TRUNCATE truncate64
+#define FTRUNCATE ftruncate64
+
+#include "tst-truncate.c"
This page took 0.048818 seconds and 5 git commands to generate.