🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #24708

LSC FileMgr.h bug (and fix) alert

#24708
From: Ted Johnson
Date: Tue, 02 Feb 1988 18:08
34 lines
1379 bytes


There are 2 bugs in the Lightspeed C header file "FileMgr.h" (LSC v.2.13, 
with the 2.15 libraries).


"int ioVNmAlBlks"  should be     "unsigned int ioVNmAlblks", and
"int vcbNmBlks"    should be     "unsigned int vcbNmBlks"


I.M. IV, page 130 describes the ioVNmAlBlks field as an "INTEGER", 
*but* at the top of the page there is a "Note:" which says that
this field is really an unsigned integer!  I.M. had to define it 
as a normal INTEGER though, because Pascal doesn't distinguish 
between signed and unsigned integers.

BTW, I discovered this bug when the code I wrote
to determine the amount of disk space on a
hard disk kept returning a negative number.  It 
turned out that the top bit of ioVNmBlks was being interpreted
as a sign bit.

I have talked with Rich (Think Technologies QA technician, on leave...)
and he concurs that this is a bug.

-Ted

---------------------------------------
Ted C. Johnson
Hewlett Packard
Design Technology Center
(408)553-3555
UUCP: ...hplabs!hpdtc!tedj
Technical Details
Message-ID: <870129@hpcilzb.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!aurora!labrea!decwrl!hplabs!hpcea!hpcilzb!tedj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!aurora!labrea!decwrl!hplabs!hpcea!hpcilzb!tedj
From: tedj@hpcilzb.HP.COM (Ted Johnson)
Newsgroups: comp.sys.mac
Subject: LSC FileMgr.h bug (and fix) alert
Message-ID: <870129@hpcilzb.HP.COM>
Date: 2 Feb 88 18:08:29 GMT
Organization: HP Design Tech Center - Santa Clara, CA
Lines: 33