[net.micro.mac] Finder flag bits and protection bit assignments.

dolf@uva.UUCP (Dolf Starreveld) (05/12/86)

A bit of experimenting revealed the following bit assignments for
bits in the ioFndrInfo.fdFlags field. (To be obtained by calling
PBGetFInfo):

/*
	Following bits can be set in the fdFlags field of the
	ioFndrInfo struct.
*/
#define	fLocked		0x8000	/* File is locked when accessed from Finder */
#define	fInvisible	0x4000	/* File is invisible on desktop */
#define	fHasBundle	0x2000	/* File has bundle */
#define	fSystem		0x1000	/* System file */
#define	fBozo		0x0800	/* We would like to know what this is ? */
#define	fBusy		0x0400	/* File is in use */
#define	fChanged	0x0200	/* File has changed (info ?) */
#define	fInited		0x0100	/* File has been located by Finder */
#define	fShared		0x0080	/* Multiple user busy with file ? */
#define	fCached		0x0040	/* Enable caching of file ? */
#define	fAlwSwitch	0x0020	/* Could somebody tell me please ? */
#define	fNevSwitch	0x0010	/* Could somebody tell me please ? */
#define	fOnDesk		0x0001

/*
	Following bits may be set in the ioFlAttrib field.
	NOTE: These are not finder flags !!!!!!!!!!!!!!!!!
*/
#define	fFileBusy	0x80	/* File is busy (data or resource fork) */
#define	fFileProt	0x40	/* File is protected */
#define fDirectory	0x10	/* Node is a directory */
#define fResOpen	0x08	/* File has resource fork open */
#define fDataOpen	0x04	/* File has data fork open */
#define	fFileLocked	0x01	/* File has OS lock set */


NOTE:	These values are valid under HFS. The nit assignments for
	the older flags such as fSystem, fBozo etc. are correct, but
	they are not the same as mentioned in IM, except for the
	Alpha Draft version of the HFS file manager, or later!!!!
-- 
			Dolf Starreveld
			Computer Science Department, University of Amsterdam


Usenet:			{seismo, philabs, decvax}!mcvax!dolf@{uva,fvi}
Normal mail:		Dolf Starreveld
			Computer Science Department
			University of Amsterdam
			Kruislaan 409
			NL 1098 SJ  Amsterdam
			The Netherlands