🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.apple2.gno
Article #417

Re: Missing library functions

#417
From: Jawaid Bazyar
Date: Sat, 19 Dec 1992 09:05
20 lines
1477 bytes
David.Empson@bbs.actrix.gen.nz writes:

>You'll probably find that fileno isn't usable in quite the normal way.
>On UNIX and DOS systems, fileno will return the file handle used by
>the low-level open(), read(), write() and close() functions to access
>the file.  In ORCA/C, the buffered file I/O routines don't call the
>low-level routines, rather they call GS/OS directly.  I suspect a
>fileno() macro would return the GS/OS file reference number, which is
>probably different to the one used by open(), read(), etc.

  This is true with the standard ORCA/C libraries, but with the GNO
libraries I also replace open/read/write, etc., so that they deal
with GS/OS RefNums and not arbitrary integers maintained by the
library.

-- 
 Jawaid Bazyar              |   Ask me about the GNO Multitasking Environment
 Procyon, Inc.              |   for the Apple IIgs!   
 bazyar@cs.uiuc.edu         |   P.O Box 620334
 --Apple II Forever!--      |   Littleton, CO 80162-0334   (303) 933-4649
Technical Details
Message-ID: <bazyar.724755943@teal>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!caen!hellgate.utah.edu!csn!teal!bazyar
References: <1glthpINNjad@charnel.ecst.csuchico.edu> <1992Dec19.074513.14004@actrix.gen.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.apple2.gno
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!caen!hellgate.utah.edu!csn!teal!bazyar
From: bazyar@teal.csn.org (Jawaid Bazyar)
Subject: Re: Missing library functions
Message-ID: <bazyar.724755943@teal>
Sender: news@csn.org (news)
Nntp-Posting-Host: teal.csn.org
Organization: Colorado SuperNet, Inc.
References: <1glthpINNjad@charnel.ecst.csuchico.edu> <1992Dec19.074513.14004@actrix.gen.nz>
Date: Sat, 19 Dec 1992 09:05:43 GMT
Lines: 20