Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!dimacs.rutgers.edu!rutgers!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.programmer Subject: Re: Question About FileInfoBlock Structures Keywords: FileInfoBlock directories dos amigados Message-ID: <18569@cbmvax.commodore.com> Date: 5 Feb 91 01:44:41 GMT References: <18a052ee.ARN02d3@aquarium.buffalo.ny.us> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 16 In article <18a052ee.ARN02d3@aquarium.buffalo.ny.us> ernie@aquarium.buffalo.ny.us writes: > Problem is... the fib_Protection field of the FileInfoBlock structure > is Empty... when I print it as a "%d", i get a 0... all the other fields > appear to have values... but do a... > printf("Protection==%d\n",MyFileInfoBlock->fib_Protection); > and I get a: Protection==0 ... Simple: the first 4 bits (rwed) are true is the bit is 0. So 0 means -----rwed. The others are true if non-zero. -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.commodore.com BIX: rjesup The compiler runs Like a swift-flowing river I wait in silence. (From "The Zen of Programming") ;-)