[comp.sys.apple] Gs/OS Error $0004

jb10320@uxa.cso.uiuc.edu (Jawaid Bazyar) (02/18/90)

Can anyone tell me what GS/OS error 4 is?  I'm getting this trying to read
from a file (using ReadGS in Orca/c), but neither the ORCA manual nor my
outdated Prodos 16 manual list an error $04.

--
Jawaid Bazyar               | This message was posted to thousands of machines
Junior/Computer Engineering | throughout the entire civilized world. It cost
jb10320@uxa.cso.uiuc.edu    | the net hundreds, maybe thousands of dollars.         

dlyons@Apple.COM (David A. Lyons) (02/18/90)

In article <1990Feb18.043305.5349@ux1.cso.uiuc.edu> jb10320@uxa.cso.uiuc.edu (Jawaid Bazyar) writes:
>Can anyone tell me what GS/OS error 4 is?  I'm getting this trying to read
>from a file (using ReadGS in Orca/c), but neither the ORCA manual nor my
>outdated Prodos 16 manual list an error $04.

It's in the GS/OS manual (APDA); just like under ProDOS 8, error $04 is an
invalid parameter count.  Under P8 there's a single correct parameter count
for a given call (almost always), but with a class-1 GS/OS call (like ReadGS)
there is a range of valid counts (that is, all the parameters after the first
N of them are optional & have reasonable defaults/etc).

If you don't have the GS/OS manual, you probably don't mean to be making the
xxxGS calls (you can use the class-0 ProDOS 16-compatible calls instead, for
most operations).
-- 
David A. Lyons, Apple Computer, Inc.      |   DAL Systems
Apple II Developer Technical Support      |   P.O. Box 875
America Online: Dave Lyons                |   Cupertino, CA 95015-0875
GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons
   
My opinions are my own, not Apple's.

farrier@Apple.COM (Cary Farrier) (02/20/90)

In article <1990Feb18.043305.5349@ux1.cso.uiuc.edu> jb10320@uxa.cso.uiuc.edu (Jawaid Bazyar) writes:
>Can anyone tell me what GS/OS error 4 is?  I'm getting this trying to read
>from a file (using ReadGS in Orca/c), but neither the ORCA manual nor my
>outdated Prodos 16 manual list an error $04.

Error $04 is an invalid pcount error.

>Jawaid Bazyar               | This message was posted to thousands of machines

-- 
+---------------------------------------+---------------------------------+
| Cary Farrier                          | Internet  : farrier@apple.com   |
| Apple II Systems Software Engineering	| UUCP      : apple!farrier       |
| Apple Computer, Inc.                  | Fax       : (408) 974-1704      |
| 20525 Mariani Ave.                    | AppleLink : FARRIER             |
| Cupertino, CA 95014                   |  or farrier@applelink.apple.com |
+---------------------------------------+---------------------------------+
|          I don't speak for Apple Computer, our products do.             |
+-------------------------------------------------------------------------+