chmod under manx
6 messages in this thread
I have been told that to change the attribute byte of a file in Lattice you
would declare an extern int chmod(char *,int). Then a statement such as
chmod("filename", S_IREAD | S_IDELETE).
Well now the question how would or could you do this in Manx?
A more basic question is there a cross reference between Lattice and Manx?
Allan Baer ( Be part of the solution, not part of the problem. )
Since you are on the Amiga, you could use the SetProtection(name, flags)
routine. For flags, you look in dos/dos.h to find FIBF_READ and FIBF_DELETE.
Remember that the bits are backwards.
Thanks.
Are you the same John Toebes that wrote in "The Amigan" and is/has written
columns for several amiga magazines? If so I've enjoyed reading them over
the years.
Allan Baer ( Be part of the solution, not part of the problem. )
One and the Same. Although with AmigaWorld Tech Journal out of the picture,
I don't know what I will be writing for a while.
Hey John,
I know that by now you are pretty bored with writing Beginning "C"
stuff, but, with the release of WB 2.04 there is a void that needs filling.
All those neat TAGS and such could use lots of explaining, the more basic
the better! Methinks a book or two would still not be enough!
Just some thoughts, I'll buy your book! Rodger
– via Whap!
Actually, I just wrote a tags article for AWTJ as well as one on public
screens. I have actually considered a book on a number of times but the
return on writing it hasn't looked promising.