[Coco] Intro and need some help (Was: Re: (no subject))

Bill Gunshannon billg999 at cs.uofs.edu
Sat Mar 9 20:03:58 EST 2013


>
> Bill
> Try "attr file -d" This will make it a file then it can be deleted
> normally.

Tried that (even though the manual said it wouldn't work).  Directory
has to be empty to do that.

>           If you do this to a real directory, it could lead to a lot of
> trouble.

Not if it has to be empty first.  :-)

> It sounds like you're setting your file wrong when it's created
> Use this:
>
> #define READ 1
> #define WRITE 2
> #define UPDAT READ+WRITE
> #define DIR 0x80
> #define EXEC 8
>
> Then creat/open(path,file,READ/WRITE/UPDAT)
>
> Using which ever option you need. Then a directory should not be created.

Actually, I didn't see where it tried to set a mode  at all beyond
"w".  But, as I said, it was just a Unix program I grabbed real
uick to give the C Compiler a workout after the long rest sitting
in a box in the cellar.

>
> Hope this helps

I'll keeptrying.  It's no biggee.  I can just leave it sitting where
it is until I either figure out how to get rid of it or just remake
the whole system.  It's all about relearning for at least the next
week or so.

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
billg999 at cs.scranton.edu |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>





More information about the Coco mailing list