On Wed, 2009-06-17 at 17:06 +0200, Jiri Palecek > wrote: 
> Hello,
> 
> this patch fixes compiler warnings for implicit function declarations, 
> particularly snprintf and usleep, in mq_notify and mq_timedreceive. Note that 
> although the functions are used in common_j_c.h, the macros have to be 
> defined in the c files that include it, before any other header
> 
> Regards
>     Jiri Palecek
> 
> Signed-off-by: Jiri Palecek <[email protected]>

Thanks.

Regards--
Subrata

> ---
>  testcases/kernel/syscalls/mq_notify/mq_notify01.c  |    1 +
>  .../syscalls/mq_timedreceive/mq_timedreceive01.c   |    1 +
>  testcases/kernel/syscalls/utils/common_j_h.c       |    1 -
>  3 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/mq_notify/mq_notify01.c 
> b/testcases/kernel/syscalls/mq_notify/mq_notify01.c
> index 1cc1a6c..6004373 100644
> --- a/testcases/kernel/syscalls/mq_notify/mq_notify01.c
> +++ b/testcases/kernel/syscalls/mq_notify/mq_notify01.c
> @@ -45,6 +45,7 @@
>  /* History:     Porting from Crackerjack to LTP is done by                   
>  */
>  /*              Manas Kumar Nayak [email protected]>                       
>  */
>  
> /******************************************************************************/
> +#define _XOPEN_SOURCE 500
>  #include <sys/syscall.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>
> diff --git a/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c 
> b/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
> index 43f0d8b..dadc38d 100644
> --- a/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
> +++ b/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
> @@ -45,6 +45,7 @@
>  /* History:     Porting from Crackerjack to LTP is done by                   
>  */
>  /*              Manas Kumar Nayak [email protected]>                       
>  */
>  
> /******************************************************************************/
> +#define _XOPEN_SOURCE 500
>  #include <sys/syscall.h>
>  #include <sys/types.h>
>  #include <sys/stat.h>
> diff --git a/testcases/kernel/syscalls/utils/common_j_h.c 
> b/testcases/kernel/syscalls/utils/common_j_h.c
> index e19d433..c56f6e2 100644
> --- a/testcases/kernel/syscalls/utils/common_j_h.c
> +++ b/testcases/kernel/syscalls/utils/common_j_h.c
> @@ -22,7 +22,6 @@
>   * $Id: common_j_h.c,v 1.2 2009/06/09 17:58:42 subrata_modak Exp $
>   *
>   */
> -//#define _GNU_SOURCE 1
>  #include <stdio.h>
>  #include <sys/types.h>
>  #include <sys/wait.h>


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to