Hi, Subrata

You wrote:
> 1) ftruncate64
> Comments: We have ftruncate at *testcases/kernel/syscalls/ftruncate/*. But
> this may not be doing the ftruncate64() test. You may need to include/port
> ftruncate64 on similar lines to sendfile64 and fadvise64.

Here is the patch for ftruncate64.

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 04:40:44 -0000
***************
*** 233,241 ****
--- 233,245 ----
  fsync03 fsync03
  
  ftruncate01 ftruncate01
+ ftruncate01_64 ftruncate01_64
  ftruncate02 ftruncate02
+ ftruncate02_64 ftruncate02_64
  ftruncate03 ftruncate03
+ ftruncate03_64 ftruncate03_64
  ftruncate04 ftruncate04
+ ftruncate04_64 ftruncate04_64
  
  #futimesat test cases
  futimesat01 futimesat01
Index: testcases/kernel/syscalls/ftruncate/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ftruncate/Makefile,v
retrieving revision 1.9
diff -c -r1.9 Makefile
*** testcases/kernel/syscalls/ftruncate/Makefile        20 May 2008 10:15:08 
-0000      1.9
--- testcases/kernel/syscalls/ftruncate/Makefile        4 Aug 2008 04:41:26 
-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 ftruncate[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

Reply via email to