> >
> > And then resend.
> 
> I am resending the same patch after this change.
> 
> Best regards,
> Naresh Kamboju
> 
> Signed-off-by: Naresh Kamboju < [email protected] >

Thanks. Applied. However, they create the following avoidable issues.
Please take care next time while creating a patch :-)

(Stripping trailing CRs from patch.)
patching file
testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-1.c
(Stripping trailing CRs from patch.)
patching file testcases/open_posix_testsuite/include/mq_send.h
(Stripping trailing CRs from patch.)
patching file testcases/open_posix_testsuite/include/posixtest.h

Regards--
Subrata

> 
> diff -Naurb 
> a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-1.c
> b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-1.c
> --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-1.c     
> 2008-12-12
> 18:26:25.000000000 +0530
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-1.c     
> 2009-08-07
> 11:29:42.000000000 +0530
> @@ -37,6 +37,7 @@
>  #include <signal.h>
>  #include <errno.h>
>  #include "posixtest.h"
> +#include "mq_send.h"
> 
>  #define NAMESIZE 50
>  #define MSGSTR "0123456789"
> diff -Naurb a/testcases/open_posix_testsuite/include/mq_send.h
> b/testcases/open_posix_testsuite/include/mq_send.h
> --- a/testcases/open_posix_testsuite/include/mq_send.h        1970-01-01
> 05:30:00.000000000 +0530
> +++ b/testcases/open_posix_testsuite/include/mq_send.h        2009-08-07
> 11:28:41.000000000 +0530
> @@ -0,0 +1,92 @@
> +
> +/*
> + * Copyright (c) 2002, Intel Corporation.
> + * Created by:  julie.n.fleischer REMOVE-THIS AT intel DOT com
> + * This file is licensed under the GPL license.  For the full content
> + * of this license, see the COPYING file at the top level of this
> + * source tree.
> + */
> +
> +
> +#include <sys/select.h>
> +
> +
> +int sync_pipe_create(int fd[])
> +{
> +        return pipe (fd);
> +}
> +
> +int sync_pipe_close(int fd[])
> +{
> +        int r = 0;
> +
> +        if (fd[0] != -1)
> +                r = close (fd[0]);
> +        if (fd[1] != -1)
> +                r |= close (fd[1]);
> +        return r;
> +}
> +
> +int sync_pipe_wait(int fd[])
> +{
> +        char buf;
> +        int r;
> +
> +        if (fd[1] != -1) {
> +                close (fd[1]);
> +                fd[1] = -1;
> +        }
> +
> +        r = read (fd[0], &buf, 1);
> +
> +        if ((r != 1) || (buf != 'A'))
> +                return -1;
> +        return 0;
> +}
> +
> +int sync_pipe_wait_select(int fd[], long tv_sec)
> +{
> +        char buf;
> +        int r;
> +       fd_set rfds;
> +       struct timeval tv;
> +       int err;
> +
> +       tv.tv_sec = tv_sec;
> +       tv.tv_usec = 0;
> +
> +        if (fd[1] != -1) {
> +                close (fd[1]);
> +                fd[1] = -1;
> +        }
> +
> +       FD_ZERO(&rfds);
> +       FD_SET(fd[0], &rfds);
> +
> +       r = select(fd[0] + 1, &rfds, NULL, NULL, &tv);
> +       err = errno;
> +
> +       if (FD_ISSET(fd[0], &rfds)) {
> +               return sync_pipe_wait(fd);
> +       }
> +
> +       return r ? err : -ETIMEDOUT;
> +}
> +
> +
> +int sync_pipe_notify(int fd[])
> +{
> +        char buf = 'A';
> +        int r;
> +
> +        if (fd[0] != -1) {
> +                close (fd[0]);
> +                fd[0] = -1;
> +        }
> +
> +        r = write (fd[1], &buf, 1);
> +
> +        if (r != 1)
> +                return -1;
> +        return 0;
> +}
> diff -Naurb a/testcases/open_posix_testsuite/include/posixtest.h
> b/testcases/open_posix_testsuite/include/posixtest.h
> --- a/testcases/open_posix_testsuite/include/posixtest.h      2009-08-06
> 21:49:42.000000000 +0530
> +++ b/testcases/open_posix_testsuite/include/posixtest.h      2009-08-07
> 11:28:41.000000000 +0530
> @@ -15,86 +15,3 @@
>  #define PTS_UNSUPPORTED 4
>  #define PTS_UNTESTED    5
> 
> -
> -#include <sys/select.h>
> -
> -
> -int sync_pipe_create(int fd[])
> -{
> -        return pipe (fd);
> -}
> -
> -int sync_pipe_close(int fd[])
> -{
> -        int r = 0;
> -
> -        if (fd[0] != -1)
> -                r = close (fd[0]);
> -        if (fd[1] != -1)
> -                r |= close (fd[1]);
> -        return r;
> -}
> -
> -int sync_pipe_wait(int fd[])
> -{
> -        char buf;
> -        int r;
> -
> -        if (fd[1] != -1) {
> -                close (fd[1]);
> -                fd[1] = -1;
> -        }
> -
> -        r = read (fd[0], &buf, 1);
> -
> -        if ((r != 1) || (buf != 'A'))
> -                return -1;
> -        return 0;
> -}
> -
> -int sync_pipe_wait_select(int fd[], long tv_sec)
> -{
> -        char buf;
> -        int r;
> -       fd_set rfds;
> -       struct timeval tv;
> -       int err;
> -
> -       tv.tv_sec = tv_sec;
> -       tv.tv_usec = 0;
> -
> -        if (fd[1] != -1) {
> -                close (fd[1]);
> -                fd[1] = -1;
> -        }
> -
> -       FD_ZERO(&rfds);
> -       FD_SET(fd[0], &rfds);
> -
> -       r = select(fd[0] + 1, &rfds, NULL, NULL, &tv);
> -       err = errno;
> -
> -       if (FD_ISSET(fd[0], &rfds)) {
> -               return sync_pipe_wait(fd);
> -       }
> -
> -       return r ? err : -ETIMEDOUT;
> -}
> -
> -
> -int sync_pipe_notify(int fd[])
> -{
> -        char buf = 'A';
> -        int r;
> -
> -        if (fd[0] != -1) {
> -                close (fd[0]);
> -                fd[0] = -1;
> -        }
> -
> -        r = write (fd[1], &buf, 1);
> -
> -        if (r != 1)
> -                return -1;
> -        return 0;
> -}
> 
> >
> > Regards--
> > Subrata
> >
> >> + * Created by:  julie.n.fleischer REMOVE-THIS AT intel DOT com
> >> + * This file is licensed under the GPL license.  For the full content
> >> + * of this license, see the COPYING file at the top level of this
> >> + * source tree.
> >> + */
> >> +
> >> +
> >> +#include <sys/select.h>
> >> +
> >> +
> >> +int sync_pipe_create(int fd[])
> >> +{
> >> +        return pipe (fd);
> >> +}
> >> +
> >> +int sync_pipe_close(int fd[])
> >> +{
> >> +        int r = 0;
> >> +
> >> +        if (fd[0] != -1)
> >> +                r = close (fd[0]);
> >> +        if (fd[1] != -1)
> >> +                r |= close (fd[1]);
> >> +        return r;
> >> +}
> >> +
> >> +int sync_pipe_wait(int fd[])
> >> +{
> >> +        char buf;
> >> +        int r;
> >> +
> >> +        if (fd[1] != -1) {
> >> +                close (fd[1]);
> >> +                fd[1] = -1;
> >> +        }
> >> +
> >> +        r = read (fd[0], &buf, 1);
> >> +
> >> +        if ((r != 1) || (buf != 'A'))
> >> +                return -1;
> >> +        return 0;
> >> +}
> >> +
> >> +int sync_pipe_wait_select(int fd[], long tv_sec)
> >> +{
> >> +        char buf;
> >> +        int r;
> >> +       fd_set rfds;
> >> +       struct timeval tv;
> >> +       int err;
> >> +
> >> +       tv.tv_sec = tv_sec;
> >> +       tv.tv_usec = 0;
> >> +
> >> +        if (fd[1] != -1) {
> >> +                close (fd[1]);
> >> +                fd[1] = -1;
> >> +        }
> >> +
> >> +       FD_ZERO(&rfds);
> >> +       FD_SET(fd[0], &rfds);
> >> +
> >> +       r = select(fd[0] + 1, &rfds, NULL, NULL, &tv);
> >> +       err = errno;
> >> +
> >> +       if (FD_ISSET(fd[0], &rfds)) {
> >> +               return sync_pipe_wait(fd);
> >> +       }
> >> +
> >> +       return r ? err : -ETIMEDOUT;
> >> +}
> >> +
> >> +
> >> +int sync_pipe_notify(int fd[])
> >> +{
> >> +        char buf = 'A';
> >> +        int r;
> >> +
> >> +        if (fd[0] != -1) {
> >> +                close (fd[0]);
> >> +                fd[0] = -1;
> >> +        }
> >> +
> >> +        r = write (fd[1], &buf, 1);
> >> +
> >> +        if (r != 1)
> >> +                return -1;
> >> +        return 0;
> >> +}
> >> diff -Naurb a/testcases/open_posix_testsuite/include/posixtest.h
> >> b/testcases/open_posix_testsuite/include/posixtest.h
> >> --- a/testcases/open_posix_testsuite/include/posixtest.h      2009-08-06
> >> 21:49:42.000000000 +0530
> >> +++ b/testcases/open_posix_testsuite/include/posixtest.h      2009-08-07
> >> 11:28:41.000000000 +0530
> >> @@ -15,86 +15,3 @@
> >>  #define PTS_UNSUPPORTED 4
> >>  #define PTS_UNTESTED    5
> >>
> >> -
> >> -#include <sys/select.h>
> >> -
> >> -
> >> -int sync_pipe_create(int fd[])
> >> -{
> >> -        return pipe (fd);
> >> -}
> >> -
> >> -int sync_pipe_close(int fd[])
> >> -{
> >> -        int r = 0;
> >> -
> >> -        if (fd[0] != -1)
> >> -                r = close (fd[0]);
> >> -        if (fd[1] != -1)
> >> -                r |= close (fd[1]);
> >> -        return r;
> >> -}
> >> -
> >> -int sync_pipe_wait(int fd[])
> >> -{
> >> -        char buf;
> >> -        int r;
> >> -
> >> -        if (fd[1] != -1) {
> >> -                close (fd[1]);
> >> -                fd[1] = -1;
> >> -        }
> >> -
> >> -        r = read (fd[0], &buf, 1);
> >> -
> >> -        if ((r != 1) || (buf != 'A'))
> >> -                return -1;
> >> -        return 0;
> >> -}
> >> -
> >> -int sync_pipe_wait_select(int fd[], long tv_sec)
> >> -{
> >> -        char buf;
> >> -        int r;
> >> -       fd_set rfds;
> >> -       struct timeval tv;
> >> -       int err;
> >> -
> >> -       tv.tv_sec = tv_sec;
> >> -       tv.tv_usec = 0;
> >> -
> >> -        if (fd[1] != -1) {
> >> -                close (fd[1]);
> >> -                fd[1] = -1;
> >> -        }
> >> -
> >> -       FD_ZERO(&rfds);
> >> -       FD_SET(fd[0], &rfds);
> >> -
> >> -       r = select(fd[0] + 1, &rfds, NULL, NULL, &tv);
> >> -       err = errno;
> >> -
> >> -       if (FD_ISSET(fd[0], &rfds)) {
> >> -               return sync_pipe_wait(fd);
> >> -       }
> >> -
> >> -       return r ? err : -ETIMEDOUT;
> >> -}
> >> -
> >> -
> >> -int sync_pipe_notify(int fd[])
> >> -{
> >> -        char buf = 'A';
> >> -        int r;
> >> -
> >> -        if (fd[0] != -1) {
> >> -                close (fd[0]);
> >> -                fd[0] = -1;
> >> -        }
> >> -
> >> -        r = write (fd[1], &buf, 1);
> >> -
> >> -        if (r != 1)
> >> -                return -1;
> >> -        return 0;
> >> -}
> >
> >


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to