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

>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



Other related posts: