From owner-freebsd-hackers Wed Mar 6 1:36:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by hub.freebsd.org (Postfix) with ESMTP id 03B1E37B400 for ; Wed, 6 Mar 2002 01:36:11 -0800 (PST) Received: from there ([80.60.248.65]) by smtp04.wxs.nl (Netscape Messaging Server 4.15) with SMTP id GSJPC800.HPR; Wed, 6 Mar 2002 10:36:08 +0100 Content-Type: text/plain; charset="iso-8859-1" From: "Peter J. Blok" To: Tony Arcieri , freebsd-hackers@freebsd.org Subject: Re: aio_read() oddness Date: Wed, 6 Mar 2002 10:36:08 +0100 X-Mailer: KMail [version 1.3.2] References: <20020305225908.U48034-100000@rylos.atmos.colostate.edu> In-Reply-To: <20020305225908.U48034-100000@rylos.atmos.colostate.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020306093611.03B1E37B400@hub.freebsd.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 06 March 2002 07:03, Tony Arcieri wrote: > I'm not currently subscribed to this list, so please cc replies to me. > > I was playing around with aio_read() and ran into some seemingly aberrant > behavior, although not with aio_read() itself, but the resulting signal. > Within struct aiocb I was setting: > > aio_sigevent.sigev_notify = SIGEV_SIGNAL; > aio_sigevent.sigev_value.sigval_int = 42; > iocb.aio_sigevent.sigev_signo = SIGUSR1; > > Then in the sigaction structure: > sa_flags = SA_SIGINFO; > > Upon completion of the requested read, a signal is sent. Within the > siginfo structure, si_signo is set properly. > > However, si_value.sigval_int is zero. Is this just not implemented > completely yet or am I missing something? I have a set of aio test tools and it indeed seems it is not implemenented. I am getting a zero value too. > > Tony Arcieri > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message