On Mon, 2008-08-04 at 14:16 +0900, Masatake YAMATO wrote: > This one is very similar to the last one(ftruncate64). > > > 41) truncate64 > > Comments: We have truncate at *testcases/kernel/syscalls/truncate. *You may > > need to include/port truncate64 on similar lines to sendfile64 and > > fadvise64. > > Here is the patch. > > Signed-off-by: Masatake YAMATO <[EMAIL PROTECTED]>
This too has been certified. Thanks. Please see the results below. I have merged them. 1) Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, truncate01 1 PASS : Functionality of truncate(testfile, 256) successful truncate02 1 PASS : Functionality of truncate(2) on testfile successful truncate03 1 PASS : truncate() fails, No Search permissions to process, errno=13 truncate03 2 PASS : truncate() fails, Path contains regular file, errno=20 truncate03 3 PASS : truncate() fails, Address beyond address space, errno=14 truncate03 4 PASS : truncate() fails, Negative address, errno=14 truncate03 5 PASS : truncate() fails, Pathname too long, errno=36 truncate03 6 PASS : truncate() fails, Pathname is empty, errno=2 truncate04 1 PASS : truncate() fails, File is a directory, errno=21 2) Linux 2.6.9-22.EL #1 SMP Mon Sep 19 17:52:20 EDT 2005 ppc64 ppc64 ppc64 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, truncate01 1 PASS : Functionality of truncate(testfile, 256) successful truncate02 1 PASS : Functionality of truncate(2) on testfile successful truncate03 1 PASS : truncate() fails, No Search permissions to process, errno=13 truncate03 2 PASS : truncate() fails, Path contains regular file, errno=20 truncate03 3 PASS : truncate() fails, Address beyond address space, errno=14 truncate03 4 PASS : truncate() fails, Negative address, errno=14 truncate03 5 PASS : truncate() fails, Pathname too long, errno=36 truncate03 6 PASS : truncate() fails, Pathname is empty, errno=2 truncate04 1 PASS : truncate() fails, File is a directory, errno=21 3) Linux 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686 i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, truncate01 1 PASS : Functionality of truncate(testfile, 256) successful truncate02 1 PASS : Functionality of truncate(2) on testfile successful truncate03 1 PASS : truncate() fails, No Search permissions to process, errno=13 truncate03 2 PASS : truncate() fails, Path contains regular file, errno=20 truncate03 3 PASS : truncate() fails, Address beyond address space, errno=14 truncate03 4 PASS : truncate() fails, Negative address, errno=14 truncate03 5 PASS : truncate() fails, Pathname too long, errno=36 truncate03 6 PASS : truncate() fails, Pathname is empty, errno=2 truncate04 1 PASS : truncate() fails, File is a directory, errno=21 4) Linux 2.6.18-91.el5 #1 SMP Tue Apr 22 17:48:59 EDT 2008 ppc64 ppc64 ppc64 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, truncate01 1 PASS : Functionality of truncate(testfile, 256) successful truncate02 1 PASS : Functionality of truncate(2) on testfile successful truncate03 1 PASS : truncate() fails, No Search permissions to process, errno=13 truncate03 2 PASS : truncate() fails, Path contains regular file, errno=20 truncate03 3 PASS : truncate() fails, Address beyond address space, errno=14 truncate03 4 PASS : truncate() fails, Negative address, errno=14 truncate03 5 PASS : truncate() fails, Pathname too long, errno=36 truncate03 6 PASS : truncate() fails, Pathname is empty, errno=2 truncate04 1 PASS : truncate() fails, File is a directory, errno=21 5) Linux 2.6.18-91.el5PAE #1 SMP Tue Apr 22 17:58:37 EDT 2008 i686 athlon i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, truncate01 1 PASS : Functionality of truncate(testfile, 256) successful truncate02 1 PASS : Functionality of truncate(2) on testfile successful truncate03 1 PASS : truncate() fails, No Search permissions to process, errno=13 truncate03 2 PASS : truncate() fails, Path contains regular file, errno=20 truncate03 3 PASS : truncate() fails, Address beyond address space, errno=14 truncate03 4 PASS : truncate() fails, Negative address, errno=14 truncate03 5 PASS : truncate() fails, Pathname too long, errno=36 truncate03 6 PASS : truncate() fails, Pathname is empty, errno=2 truncate04 1 PASS : truncate() fails, File is a directory, errno=21 6) Linux 2.6.25-gcov-nomodconfig-smp #1 SMP Thu Jun 12 06:29:27 EDT 2008 i686 i686 i386 GNU/Linux BUILD=Pass, INSTALL=Pass, Run=Pass, truncate01 1 PASS : Functionality of truncate(testfile, 256) successful truncate02 1 PASS : Functionality of truncate(2) on testfile successful truncate03 1 PASS : truncate() fails, No Search permissions to process, errno=13 truncate03 2 PASS : truncate() fails, Path contains regular file, errno=20 truncate03 3 PASS : truncate() fails, Address beyond address space, errno=14 truncate03 4 PASS : truncate() fails, Negative address, errno=14 truncate03 5 PASS : truncate() fails, Pathname too long, errno=36 truncate03 6 PASS : truncate() fails, Pathname is empty, errno=2 truncate04 1 PASS : truncate() fails, File is a directory, errno=21 Regards-- Subrata > > Index: runtest/syscalls > =================================================================== > RCS file: /cvsroot/ltp/ltp/runtest/syscalls,v > retrieving revision 1.202 > diff -c -r1.202 syscalls > *** runtest/syscalls 26 Jul 2008 04:15:36 -0000 1.202 > --- runtest/syscalls 4 Aug 2008 05:10:00 -0000 > *************** > *** 950,958 **** > --- 950,962 ---- > timerfd01 timerfd01 > > truncate01 truncate01 > + truncate01_64 truncate01_64 > truncate02 truncate02 > + truncate02_64 truncate02_64 > truncate03 truncate03 > + truncate03_64 truncate03_64 > truncate04 truncate04 > + truncate04_64 truncate04_64 > > # This syscall is obsolete. The latest glibc does not even > # include the ulimit.h file anymore. The test will fail > Index: testcases/kernel/syscalls/truncate/Makefile > =================================================================== > RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/truncate/Makefile,v > retrieving revision 1.7 > diff -c -r1.7 Makefile > *** testcases/kernel/syscalls/truncate/Makefile 21 Aug 2006 06:58:48 > -0000 1.7 > --- testcases/kernel/syscalls/truncate/Makefile 4 Aug 2008 05:11:28 > -0000 > *************** > *** 19,26 **** > CFLAGS += -I../../../../include -Wall > LDLIBS += -L../../../../lib -lltp > > ! SRCS = $(wildcard *.c) > ! TARGETS = $(patsubst %.c,%,$(SRCS)) > > all: $(TARGETS) > > --- 19,31 ---- > CFLAGS += -I../../../../include -Wall > LDLIBS += -L../../../../lib -lltp > > ! SRCS = $(wildcard truncate[0-9][0-9]*.c) > ! TARGETS = $(patsubst %.c,%,$(SRCS)) $(patsubst %.c,%_64,$(SRCS)) > ! > ! > ! %_64.c: %.c > ! echo "#define _FILE_OFFSET_BITS 64" > $@ > ! cat $< >> $@ > > all: $(TARGETS) > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
