NetBSD Problem Report #42434
From www@NetBSD.org Wed Dec 9 15:51:07 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id A6D0063C2E4
for <gnats-bugs@gnats.netbsd.org>; Wed, 9 Dec 2009 15:51:07 +0000 (UTC)
Message-Id: <20091209155107.7A0E963BB2F@www.NetBSD.org>
Date: Wed, 9 Dec 2009 15:51:07 +0000 (UTC)
From: baiyang@gmail.com
Reply-To: baiyang@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sigevent::sigev_notify_function broken the compatibillity of POSIX
X-Send-Pr-Version: www-1.0
>Number: 42434
>Category: lib
>Synopsis: sigevent::sigev_notify_function broken the compatibillity of POSIX
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Dec 09 15:55:00 +0000 2009
>Last-Modified: Wed May 19 17:45:01 +0000 2010
>Originator: BaiYang
>Release: 5.0.1
>Organization:
>Environment:
i386
>Description:
sigev_notify_function in struct sigevent regonize a pointer of sigval (sigval*) on NetBSD, but POSIX compatible behaver should regonize a sigval directly (thus, not a pointer for it).
>How-To-Repeat:
>Fix:
>Audit-Trail:
From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/42434 CVS commit: src/sys/sys
Date: Wed, 9 Dec 2009 20:26:12 +0000
Module Name: src
Committed By: drochner
Date: Wed Dec 9 20:26:12 UTC 2009
Modified Files:
src/sys/sys: signal.h
Log Message:
fix the signature of struct sigevent:sigev_notify_function, noticed by
BaiYang per PR lib/42434
the sad truth is that this doesn't help much because SIGEV_THREAD just
doesn't work (at least on -current, likely on -5, perhaps it worked
woth scheduler activations)
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/sys/signal.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: BaiYang <baiyang@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: PR/42434 CVS commit: src/sys/sys
Date: Fri, 11 Dec 2009 01:17:06 +0800
--0016364275a30756f0047a62fa3e
Content-Type: text/plain; charset=ISO-8859-1
ok, thank you for your reply.
But as far as I known, the posix real-time signal also has not been
supported on NetBSD yet by now. So what should we do if we want to use the
POSIX features like POSIX AIO and timer on it ?
--
Best Regards
BaiYang
baiyang@gmail.com
http://baiy.cn
**** < END OF EMAIL > ****
2009/12/10 Matthias Drochner <drochner@netbsd.org>
> The following reply was made to PR lib/42434; it has been noted by GNATS.
>
> From: Matthias Drochner <drochner@netbsd.org>
> To: gnats-bugs@gnats.NetBSD.org
> Cc:
> Subject: PR/42434 CVS commit: src/sys/sys
> Date: Wed, 9 Dec 2009 20:26:12 +0000
>
> Module Name: src
> Committed By: drochner
> Date: Wed Dec 9 20:26:12 UTC 2009
>
> Modified Files:
> src/sys/sys: signal.h
>
> Log Message:
> fix the signature of struct sigevent:sigev_notify_function, noticed by
> BaiYang per PR lib/42434
> the sad truth is that this doesn't help much because SIGEV_THREAD just
> doesn't work (at least on -current, likely on -5, perhaps it worked
> woth scheduler activations)
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.64 -r1.65 src/sys/sys/signal.h
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
>
--0016364275a30756f0047a62fa3e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
ok, thank you for your reply. <br><br>But as far as I known, the posix real=
-time signal also has not been supported=A0 on NetBSD yet by now. So what s=
hould we do if we want to use the POSIX features like POSIX AIO and timer o=
n it ?<br>
<br>--<br> =A0Best Regards<br> =A0BaiYang<br> =A0<a href=3D"mailto:baiyang@=
gmail.com">baiyang@gmail.com</a><br> =A0<a href=3D"http://baiy.cn">http://b=
aiy.cn</a><br>**** < END OF EMAIL > ****<br><br><div class=3D"gmail_q=
uote">2009/12/10 Matthias Drochner <span dir=3D"ltr"><<a href=3D"mailto:=
drochner@netbsd.org">drochner@netbsd.org</a>></span><br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The following rep=
ly was made to PR lib/42434; it has been noted by GNATS.<br>
<br>
From: Matthias Drochner <<a href=3D"mailto:drochner@netbsd.org">drochner=
@netbsd.org</a>><br>
To: <a href=3D"mailto:gnats-bugs@gnats.NetBSD.org">gnats-bugs@gnats.NetBSD.=
org</a><br>
Cc:<br>
Subject: PR/42434 CVS commit: src/sys/sys<br>
Date: Wed, 9 Dec 2009 20:26:12 +0000<br>
<br>
=A0Module Name: =A0 src<br>
=A0Committed By: =A0drochner<br>
=A0Date: =A0 =A0 =A0 =A0 =A0Wed Dec =A09 20:26:12 UTC 2009<br>
<br>
=A0Modified Files:<br>
=A0 =A0 =A0 =A0src/sys/sys: signal.h<br>
<br>
=A0Log Message:<br>
=A0fix the signature of struct sigevent:sigev_notify_function, noticed by<b=
r>
=A0BaiYang per PR lib/42434<br>
=A0the sad truth is that this doesn't help much because SIGEV_THREAD ju=
st<br>
=A0doesn't work (at least on -current, likely on -5, perhaps it worked<=
br>
=A0woth scheduler activations)<br>
<br>
<br>
=A0To generate a diff of this commit:<br>
=A0cvs rdiff -u -r1.64 -r1.65 src/sys/sys/signal.h<br>
<br>
=A0Please note that diffs are not public domain; they are subject to the<br=
>
=A0copyright notices on the relevant files.<br>
<br>
</blockquote></div><br><br clear=3D"all"><br><br>
--0016364275a30756f0047a62fa3e--
From: Jukka Ruohonen <jruohonen@iki.fi>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: lib/42434
Date: Wed, 19 May 2010 20:41:42 +0300
If you are still wondering about this:
> But as far as I known, the posix real-time signal also has not been
> supported on NetBSD yet by now. So what should we do if we want to use the
> POSIX features like POSIX AIO and timer on it ?
In my testing normal signals and SIGEV_SIGNAL work quite reliably (as a
temporary solution at least).
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.