Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosstorage] || [Date Prev] [02-2002 Date Index] [Date Next] || [Thread Prev] [02-2002 Thread Index] [Thread Next]

[openbeosstorage] Re: set_status(stat, WHAT)....

  • From: "Tyler Dauwalder" <tyler@xxxxxxxxxxxxx>
  • To: openbeosstorage@xxxxxxxxxxxxx
  • Date: Tue, 26 Feb 2002 15:05:52 +0000
>Hi all, 
>Does anyone have some docs on what "what" wants=3F (from set=5Fstat(struct
 stat
>&st, uinit32 what)=3F

There's some stuff in fs=5Fproto.h, and some stuff in the POSIX
header <sys/stat.h>. Do either of those help=3F Here's the stuff
from fs=5Fproto:

#define         WSTAT=5FMODE            0x0001
#define         WSTAT=5FUID             0x0002
#define         WSTAT=5FGID             0x0004
#define         WSTAT=5FSIZE            0x0008
#define         WSTAT=5FATIME           0x0010
#define         WSTAT=5FMTIME           0x0020
#define         WSTAT=5FCRTIME  0x0040

#define         WFSSTAT=5FNAME  0x0001

If I remember, I think "what" tells the function which parts of the
stat structure to update, correct=3F 

>If not shall I add some #defines in Statable.h=3F

If it's just something you'll use internally for the class (i.e. if the
folks using the class won't ever have to use their values), I think
it would be best to #define them in Statable.cpp. Otherwise
Statable.h would make sense (we'll probably end up with a
StorageDefs.h similar to Be's at some point, as well).

-Tyler







[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.