| View previous topic :: View next topic |
| Author |
Message |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Tue Dec 02, 2008 4:07 am Post subject: sceIoChstat bitmasks? |
|
|
Can anyone post the bitmasks documentation for sceIoChstat?
I haven't found it, sorry _________________ Get Xplora! |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Dec 02, 2008 6:56 am Post subject: |
|
|
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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Wed Dec 03, 2008 3:33 am Post subject: |
|
|
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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Wed Dec 03, 2008 5:08 am Post subject: |
|
|
Can be ORed together? _________________ Get Xplora! |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Dec 03, 2008 5:18 am Post subject: |
|
|
| Test and see |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Wed Dec 03, 2008 5:38 am Post subject: |
|
|
Ok, thanks! _________________ Get Xplora! |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Thu Dec 11, 2008 2:55 am Post subject: |
|
|
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 |
|
 |
|