Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* aiocb.aio_sigevent.sigev_value
@ 1994-05-01 13:26 John Hascall
  0 siblings, 0 replies; only message in thread
From: John Hascall @ 1994-05-01 13:26 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-05-01 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-01 13:26 aiocb.aio_sigevent.sigev_value John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox