From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e5197d2b151fd857 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-11-06 10:37:25 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: vjv0vjv@yahoo.com (Vince Jameson) Newsgroups: comp.unix.tru64 Subject: Re: Tru64 st_flags? Date: 6 Nov 2002 10:37:25 -0800 Organization: http://groups.google.com/ Message-ID: References: <3DC61ADA.9040702@ev.co.yu> NNTP-Posting-Host: 12.33.18.10 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1036607845 21210 127.0.0.1 (6 Nov 2002 18:37:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 6 Nov 2002 18:37:25 GMT Xref: archiver1.google.com comp.unix.tru64:9072 Nikola Milutinovic wrote in message news:<3DC61ADA.9040702@ev.co.yu>... > Vince Jameson wrote: > > I'm working on an app that needs to periodically call lstat(2) on a > > given file and save off a copy of certain relevant fields ( st_mode, > > the time fields, and so on ). Right now I'm stuck trying to figure > > out what to do with Tru64's st_flags field. I understand the presence > > of this field derives from the BSD side of things, and on the BSD > > variants I've dealt with I've been able to find documentation on what > > the various bits in st_flags represent. > > > > Some of these flags are fairly important ( immutable, append only, > > etc. ), so recently I've been searching for information on how to > > interpret the same field on Tru64 / OSF1, so far without success. I'm > > curious if anyone knows where to find this information, or failing > > that, whether st_flags is even documented or not. > > If all esle fails, try /usr/include/*.h files - they are usually well commented. > > Nixie. I tried that already, before asking here. The comment in /usr/include/sys/stat.h regarding st_flags just says "user defined flags for file". That provides no useful info, and I can't even make the assumption that the contents of the field really are "user defined"; FreeBSD's stat.h says the exact same thing regarding its st_flags field, and then goes on to define a bunch of constants for the various bits in the field. I put together a quick test app that outputs the hex value of st_flags for a given file, and it's clear there's a pattern of some sort, as opposed to the zero or garbage data one would expect from an unused field. Vince