From: john@iastate.edu (John Hascall)
Subject: aiocb.aio_sigevent.sigev_value
Date: 1 May 1994 13:26:03 GMT [thread overview]
Message-ID: <2q0alb$ieo@news.iastate.edu> (raw)
If I set aiocb.aio_sigevent.sigev_value to some value before
making an aio_read() or aio_write() call, how do I make use
of this value? For example:
signal(SIGIO, sighandler);
:
aiocb.aio_sigevent.sigev_signo = SIGIO;
aiocb.aio_sigevent.sigev_value.sival_ptr = &aiocb;
:
aio_read(&aiocb);
void sighandler(int signum)
{
struct aiocb * aptr;
aptr = /* ??? how to retrieve this from sigevent structure ??? */
:
if (aio_error(aptr)) ...
}
John
--
John Hascall ``An ill-chosen word is the fool's messenger.''
Systems Software Engineer
Project Vincent
Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551
reply other threads:[~1994-05-01 13:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox