CompuServe Thread

chmod under manx

6 messages in this thread
#20688From: allanFeb 22, 1992 2:39 AM
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. )
#20721From: John Toebes/SYSOPFeb 23, 1992 9:17 AM
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.
#20744From: allanFeb 23, 1992 3:46 PM
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. )
#20767From: John Toebes/SYSOPFeb 24, 1992 5:22 AM
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.
#20840From: Rodger PadgettFeb 26, 1992 7:23 PM
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!
#20886From: John Toebes/SYSOPFeb 27, 1992 8:11 PM
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.