Willam, On Tuesday, April 16, 2002, at 04:55 , William H. Magill wrote: > I'm not a programmer, so I may simply be mis-interpreting things. > > I was hunting for a way to display the "flags" found in OS X in a > rational > manner. (ie not having to "get info" for every bloody file.) > So I found your contribution to CPAN. > > [My goal was to write an "ls -l" equilivant which would display the > flags > information as well. If you know of such a critter, that would be a > great > time saver.] > > Under Mac OS X, the /usr/include/sys/stat.h struc looks like this below. > Which appears to be different than the field sequence in the man page > for > BSD::stat for fields 13/14/15. Am I simply interpreting things > incorrectly? > > Is Darwin/NeXT different from the BSD in this?
Though each BSD differ from one another on st_flags, important fields remain compatible. I do use BSD::stat on MacOS X (in fact my main client machine is PowerBook G4 Ti). So you can still rely on the value of stat()->flags but you may find some of the predefined constants may not work. I borrowed from FreeBSD which appears to have more flags switches than any other. Maybe it is not a good idea to predefine FLAGS constants there after all. I will check to see if Fcntl module can be used for that purpose. But for the time being, please give me more time than usual; I am doing Encode, the largest module (in size) in the upcoming perl 5.8. Dan the Man with Too Many Modules to Manage -- _____ Dan Kogai __/ ____ CEO, DAN co. ltd. /__ /-+-/ 2-8-14-418 Shiomi Koto-ku Tokyo 135-0052 Japan /--/--- mailto: [EMAIL PROTECTED] / http://www.dan.co.jp/ --------- __/ / Tel:+81 3-5665-6131 Fax:+81 3-5665-6132 GPG Key: http://www.dan.co.jp/~dankogai/dankogai.gpg.asc