From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6a9bc02cbd859af1,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-01 06:31:40 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!news.duke.edu!news-feed-1.peachnet.edu!apollo1.cacd.rockwell.com!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Newsgroups: comp.unix.osf.osf1 Subject: aiocb.aio_sigevent.sigev_value Date: 1 May 1994 13:26:03 GMT Organization: Iowa State University, Ames, Iowa (USA) Message-ID: <2q0alb$ieo@news.iastate.edu> NNTP-Posting-Host: pooh.cc.iastate.edu 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