forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sceIoChstat bitmasks?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Tue Dec 02, 2008 4:07 am    Post subject: sceIoChstat bitmasks? Reply with quote

Can anyone post the bitmasks documentation for sceIoChstat?
I haven't found it, sorry
_________________
Get Xplora!
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Dec 02, 2008 6:56 am    Post subject: Reply with quote

For the PS2, it's
Code:
// Flags for chstat 'statmask'
#define FIO_CST_MODE    0x0001
#define FIO_CST_ATTR    0x0002
#define FIO_CST_SIZE    0x0004
#define FIO_CST_CT              0x0008
#define FIO_CST_AT              0x0010
#define FIO_CST_MT              0x0020
#define FIO_CST_PRVT    0x0040

FIO_CST_SIZE = 0x0004 is used for truncate() in PSP newlib.
I don't know if the others work.
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Wed Dec 03, 2008 3:33 am    Post subject: Reply with quote

Thanks!
I've see that 0x0001 is passed for file mode, 0x0008 for creation time, 0x0020 modify time, so this attrib probably works great on PSP!
Thanks!
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Wed Dec 03, 2008 5:08 am    Post subject: Reply with quote

Can be ORed together?
_________________
Get Xplora!
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Dec 03, 2008 5:18 am    Post subject: Reply with quote

Test and see
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Wed Dec 03, 2008 5:38 am    Post subject: Reply with quote

Ok, thanks!
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Thu Dec 11, 2008 2:55 am    Post subject: Reply with quote

Can anyone add this to the sdk??
I think that can be usefull...
Something like this:
Code:

/** sceIoChstat bitmasks */
enum IOFileStatBitmask {
    FIO_CST_MODE = 0x0001,
    FIO_CST_ATTR = 0x0002,
    FIO_CST_SIZE = 0x0004,
    FIO_CST_CT = 0x0008,
    FIO_CST_AT = 0x0010,
    FIO_CST_MT = 0x0020,
    FIO_CST_PRVT = 0x0040
};

_________________
Get Xplora!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group