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]> 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
