Re: [cc65] Apple2 Libraries - Current status of file io ?

From: jim <jsymolon011comcast.net>
Date: 2004-07-29 12:45:49
Greg King wrote:

>From: jim; on Date: Monday, July 26, 2004, at 06:10 PM -0400
>  
>
>>I've also added a few CONST items to the "errno.inc" and "fcntl.inc"
>>files.
>>    
>>
>
>It might be better to create _osmaperrno(), and map ProDOS's error-codes
>onto the already-existing errno codes.  (Read the "cc65/libsrc/*/oserr*.s"
>files, to see how it's done by other platforms.)
>  
>
Thanks, I'll look into how that's done, however, that's not what I've 
added to those .inc files.

errno.inc - additions:
ENOTDIR        =    20    ; A component is not a directory
EROFS        =    21    ; Read only file system & write requested
EBADF        =    22    ; fd not a valid file descp or not open for writing

fcntl.inc - additions:
; File seek
SEEK_SET    = $01
SEEK_CUR    = $02
SEEK_END    = $04

I've checked the 2.10 version and seen that the SEEK codes are already 
there so that change doesn't need to be done.

I do have a conversion routine from ProDOS codes to errno codes.

Please keep in mind that I've only been adding to the "common" files 
POSIX type items and only with great reluctance - I know that the merge 
is going to be painful.  First I have to catch up to the 2.10 version.  
I want to have everything working at 2.9 then upgrade to 2.10.  I've 
tried the 2.10, but my linux box (Mandrake 9) fails some dependancies 
and the linker produces bad code.  (the jsr's & jmp's are off).

Uz,  do you have any documentation on the new loadable modules and how 
it's supposed to work ?  Without such functionality I was thinking of 
having two Apple DOS libraries, however, with loadable modules it is 
possible to load just what is wanted from a developer point of view.

For those who are not familiar with the Apple II's - the enhanced II's 
and GS have paged memory which can top out at 8 Meg.

Thanks for the input - I'll have to make some changes to follow the 
design better.

Thanks
Jim

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 29 12:46:24 2004

This archive was generated by hypermail 2.1.8 : 2004-07-29 12:46:33 CEST