From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UUaVB-00077b-0v for ltp-list@lists.sourceforge.net; Tue, 23 Apr 2013 10:31:09 +0000 Date: Tue, 23 Apr 2013 12:32:03 +0200 From: chrubis@suse.cz Message-ID: <20130423103202.GC28044@rei> References: <8805528bb12e73785de99af72fa27fa90e535557.1366705953.git.jstancek@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8805528bb12e73785de99af72fa27fa90e535557.1366705953.git.jstancek@redhat.com> Subject: Re: [LTP] [PATCH] sendmsg02: fix compilation on kernel < 2.6.27 List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Jan Stancek Cc: ltp-list@lists.sourceforge.net Hi! > testcases/kernel/syscalls/sendmsg/sendmsg02.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/testcases/kernel/syscalls/sendmsg/sendmsg02.c b/testcases/kernel/syscalls/sendmsg/sendmsg02.c > index 8f38f2c..c38d438 100644 > --- a/testcases/kernel/syscalls/sendmsg/sendmsg02.c > +++ b/testcases/kernel/syscalls/sendmsg/sendmsg02.c > @@ -88,7 +88,7 @@ static void client(int id, int pipefd[]) > mh.msg_iovlen = 1; > > do { > - fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0); > + fd = socket(AF_UNIX, SOCK_DGRAM, 0); > write(pipefd[1], &fd, 1); > sendmsg(fd, &mh, MSG_NOSIGNAL); > close(fd); > @@ -109,7 +109,7 @@ static void server(int id, int pipefd[]) > snprintf(sa.sun_path, sizeof(sa.sun_path), "socket_test%d", id); > > do { > - fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); > + fd = socket(AF_UNIX, SOCK_DGRAM, 0); > unlink(sa.sun_path); > bind(fd, (struct sockaddr *) &sa, sizeof(struct sockaddr_un)); > read(pipefd[0], &fd, 1); This is fine. And sorry that I haven't yet tested the testcase. I will hopefully install OpenSUSE with selinux and test it soon. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list