[Coco] Syscall to get attr file permissions

Robert Gault robert.gault at att.net
Tue Feb 14 20:10:56 EST 2017


tim lindner wrote:
> On Tue, Feb 14, 2017 at 11:34 AM, Taylor, Phillip L CIV
> <Phillip.L.Taylor at uscg.mil> wrote:
>> I read the manual but I am unable to figure out how to point A to the file
>> name /dd/cmds/test.  I learn better if I can see some example code please?
>
> When I read this I though, there must be a typo in the manual. OS-9
> would never use reg A as a pointer.
>
> Then I read the manual and it says reg A is loaded with the path number.
>
> The path number is what is returned by I$Open or I$Create.
>
>
>
>
>

Where are you looking? My manual says
  OS9 I$Open
Entry conditions
  regA= access mode
  regX= address of pathlist
Exit conditions
  regA= path #
  regX= end of pathlist +1

Likewise for
  OS9 I$Create
Entry
  regA= access mode
  regB= file attributes
  regX= address of pathlist
Exit
  regA= path #
  regX= pathlist+1

Robert



More information about the Coco mailing list