Thanks. Carmelo/Mike, your take on this ?

Regards--
Subrata

On Thu, 2008-04-17 at 08:21 -0400, Shane Volpe wrote:
> The following patch and all others that were submitted in Feb, 2008
> pertaining to "__NR_fadvise64" seem to break ARM builds of ltp as the
> arm does not have __NR_fadvise64 defined.
> Regards,
> Shane
> 
> 
> 
> Index: posix_fadvise01.c
> ===================================================================
> RCS file: 
> /cvsroot/ltp/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise01.c,v
> retrieving revision 1.1
> diff -u -r1.1 posix_fadvise01.c
> 
> --- posix_fadvise01.c   22 Nov 2007 13:58:24 -0000      1.1
> +++ posix_fadvise01.c   7 Jan 2008 11:32:21 -0000
> @@ -44,6 +44,11 @@
>  #include "test.h"
>  #include "usctest.h"
>  
> +#include "linux_syscall_numbers.h"
> 
> +#ifndef _FILE_OFFSET_BITS
> +#define _FILE_OFFSET_BITS 32
> +#endif
> +
>  void setup();
>  void cleanup();
>  
> @@ -76,6 +81,14 @@
>         int i;
>  
> 
> +       /* Check this system has fadvise64 system which is used 
> 
> +          in posix_fadvise. */
> +       if ((_FILE_OFFSET_BITS != 64) && (__NR_fadvise64 == 0)) {
> +               tst_resm(TWARN, "This test can only run on kernels that 
> implements ");
> +               tst_resm(TWARN, "fadvise64 which is used from posix_fadvise");
> 
> +               exit(0);
> +       }
> +
>         /*
>          * parse standard options
>          */
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________ Ltp-list mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to