From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-11 06:43:37 PST Xref: gmd.de comp.org.decus:2886 comp.os.vms:42111 comp.sys.dec:14175 comp.unix.advocacy:1027 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!titan.inmos.co.uk!inmos.co.uk!hughm From: hughm@inmos.co.uk (Hugh McIntyre) Subject: Re: Is VMS Dying? Message-ID: <1994Mar11.144337.13745@inmos.co.uk> Sender: news@inmos.co.uk Organization: INMOS Limited, Bristol, UK References: <1994Feb26.204059.4068@mixcom.mixcom.com> <11MAR199400234346@hearts.aces.com> Date: Fri, 11 Mar 1994 14:43:37 GMT In article <11MAR199400234346@hearts.aces.com>, gavron@hearts.aces.com (Ehud Gavron) writes: |> In article , rockwell@nova.umd.edu (Raul Deluth Miller) writes... |> #Carl J Lydick: |> #.. Unix doesn't have support asynchronous I/O... |> # |> #Huh? What do you mean? |> # |> #I can do asynchronous I/O under Unix. |> |> OH, you must have confused what "asynchronous" means, |> because of course there is no asynchronous I/O under |> Unix. Hmm: SunOS_4.1.3% man aioread Reformatting page. Wait... done AIOREAD(3) C LIBRARY FUNCTIONS AIOREAD(3) NAME aioread, aiowrite - asynchronous I/O operations SYNOPSIS #include int aioread(fd, bufp, bufs, offset, whence, resultp) int fd; char *bufp; int bufs; int offset; int whence; aio_result_t *resultp; [snip] DESCRIPTION aioread() initiates one asynchronous read(2V) and returns control to the calling program. The read() continues con- currently with other activity of the process. An attempt is made to read bufs bytes of data from the object referenced by the descriptor fd into the buffer pointed to by bufp. [snip] The result of the asynchronous operation is stored in the structure pointed to by resultp: int aio_return; /* return value of read() or write() */ int aio_errno; /* value of errno for read() or write() */ Upon completion of the operation both aio_return and aio_errno are set to reflect the result of the operation. AIO_INPROGRESS is not a value used by the system so the client may detect a change in state by initializing aio_return to this value. [snip] SEE ALSO close(2V), execve(2V), exit(2V), lseek(2V), open(2V), read(2V), sigvec(2), write(2V), aiocancel(3), aiowait(3) ^^^^^^^^^ ^^^^^^^ While I agree that the some people may be confusing the normal behaviour of Unix write (where the data is not actually transferred to disk before the call returns) with real asynchronous I/O as supported by some of the VMS system services, it's not true to say that you can't do asynchronous I/O under any version of Unix. The above stuff was apparently added in SunOS 4.1 - other versions of Unix may or may not include the same facility. Hugh.