From: vjv0vjv@yahoo.com (Vince Jameson)
Subject: Re: Tru64 st_flags?
Date: 6 Nov 2002 10:37:25 -0800 [thread overview]
Message-ID: <def432e7.0211061037.6f45689@posting.google.com> (raw)
In-Reply-To: 3DC61ADA.9040702@ev.co.yu
Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> 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
next prev parent reply other threads:[~2002-11-06 18:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-02 1:50 Tru64 st_flags? Vince Jameson
2002-11-04 6:59 ` Nikola Milutinovic
2002-11-06 18:37 ` Vince Jameson [this message]
2002-11-06 22:29 ` Bob Harris
2002-11-07 22:13 ` Vince Jameson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox