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: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-13 04:00:16 PST Xref: gmd.de comp.os.vms:42365 comp.sys.dec:14320 comp.unix.advocacy:1156 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!cs.utexas.edu!convex!news.utdallas.edu!mharriso From: mharriso@utdallas.edu (Mark A Harrison) Newsgroups: comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Followup-To: comp.os.vms,comp.sys.dec,comp.unix.advocacy Date: 13 Mar 1994 12:00:16 GMT Organization: The University of Texas at Dallas Distribution: world Message-ID: <2luv8g$47t@news.utdallas.edu> References: <1994Feb26.204059.4068@mixcom.mixcom.com> <11MAR199400234346@hearts.aces.com> <1994Mar11.144337.13745@inmos.co.uk>,<1994Mar11.190110.20289@integrity.uucp> <2lqrtk$99p@gap.cco.caltech.edu>,<2lrev2$q4u@news.utdallas.edu> <2lrgl0$nav@gap.cco.caltech.edu>, <2lsse5$57h@gap.cco.caltech.edu> NNTP-Posting-Host: csclass.utdallas.edu X-Newsreader: TIN [version 1.2 PL2] Carl J Lydick (carl@SOL1.GPS.CALTECH.EDU) wrote: > Under VMS, if you want to do I/O, you call SYS$QIO. You don't go browsing > through the manuals to find out what they're calling the routines for various > types of I/O in this particular version. This is starting to stray really far afield. This is similar to the debates we used to have with regards to hll's vs assembler. One of the arguments consistently made by the assembler afficianados was the ease of access to the OS: set your registers and control blocks, and vector to the OS. How simple, only one entrance point! (MS-DOS copied this style of access, I believe.) > Gee. It's really an incredible amount of trouble to type in: > #define qread(chan, buff, count, iosb) \ > SYS$QIOW(0, chan, IO$_READVBLK, iosb, 0, 0, buff, count, 0, 0, 0, 0) > #define qwrite(chan, buff, count, iosb) \ > SYS$QIOW(0, chan, IO$_WRITEVBLK, iosb, 0, 0, buff, count, 0, 0, 0, 0) > in an include file and include it in programs where you're going to use > SYS$QIOW only for synchronous virtual I/O. Sure, it's easy to TYPE. > So much more difficult than trying > to coerce Unix into doing anything BUT synchronous virtual I/O. You don't *coerce* it, you just make the asynch I/O calls. I'm assuming you're still discussing a Unix capable of async I/O. > Hmmm. You just can't please some people: SYS$QIO is too low level, RMS is too > high-level. SHEESH! That's the problem... it needs to have something that's "just right!" ;-) -- Mark Harrison mharriso@utdallas.edu mharriso@spd.dsccc.com