Received: (from major@localhost)
	by minnie.cs.adfa.oz.au (8.8.8/8.8.8) id DAA15843
	for pups-liszt; Fri, 24 Apr 1998 03:23:17 +1000 (EST)
Received: from alph02.triumf.ca (alph02.Triumf.CA [142.90.114.18])
	by minnie.cs.adfa.oz.au (8.8.8/8.8.8) with SMTP id DAA15837
	for <pups@minnie.cs.ADFA.OZ.AU>; Fri, 24 Apr 1998 03:23:10 +1000 (EST)
Received: by alph02.triumf.ca; id AA07943; Thu, 23 Apr 1998 10:23:05 -0700
From: Tim Shoppa <shoppa@alph02.triumf.ca>
Message-Id: <9804231723.AA07943@alph02.triumf.ca>
Subject: 'isoread' for 2.11BSD
To: pups@minnie.cs.adfa.oz.au
Date: Thu, 23 Apr 1998 10:23:05 -0800 (PDT)
X-Mailer: ELM [version 2.4 PL22]
Content-Type: text
Sender: owner-pups@minnie.cs.adfa.oz.au
Precedence: bulk

Hi folks,

	With help from Warren, I've found and fixed Minix's 
'isoread' utility so that it works under 2.11BSD.  I've tested
it on my 11/73 with an Andromeda SCDC and TEAC SCSI CD-ROM
drive, and it works fine.  Shortly I'll test it with my
CMD CQD-440 and Emulex UC08 host adapters on my Q-bus systems,
as well as my CMD CDU-720 on my Unibus -11's.

	To keep things brief, here's the 'diff' output between
the Minix 2.0.0 'isoread.c' and the 2.11BSD 'isoread.c'.  The
changes are minimal: a small change in the includes, the appropriate
_PROTOTYPE macro, and using L_SET instead of SEEK_SET in the
single lseek call:

7a8,9
>  * Apr 23 1998    Tim Shoppa
>  *                  Small modifications to work with 2.11BSD
13a16
> #include <sys/file.h>
129a133
> #define _PROTOTYPE(a1,a2) a1()
709c713
<   if (lseek(Device, offset, SEEK_SET) < 0L) 
---
>   if (lseek(Device, offset, L_SET) < 0L) 

Tim. (shoppa@triumf.ca)

