PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
iox_stat.h File Reference
#include <sys/time.h>
+ Include dependency graph for iox_stat.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  iox_stat_t
 
struct  iox_dirent_t
 

Macros

#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
 
#define FIO_S_IFMT   0xF000
 
#define FIO_S_IFLNK   0x4000
 
#define FIO_S_IFREG   0x2000
 
#define FIO_S_IFDIR   0x1000
 
#define FIO_S_ISUID   0x0800
 
#define FIO_S_ISGID   0x0400
 
#define FIO_S_ISVTX   0x0200
 
#define FIO_S_IRWXU   0x01C0
 
#define FIO_S_IRUSR   0x0100
 
#define FIO_S_IWUSR   0x0080
 
#define FIO_S_IXUSR   0x0040
 
#define FIO_S_IRWXG   0x0038
 
#define FIO_S_IRGRP   0x0020
 
#define FIO_S_IWGRP   0x0010
 
#define FIO_S_IXGRP   0x0008
 
#define FIO_S_IRWXO   0x0007
 
#define FIO_S_IROTH   0x0004
 
#define FIO_S_IWOTH   0x0002
 
#define FIO_S_IXOTH   0x0001
 
#define FIO_S_ISLNK(m)   (((m)&FIO_S_IFMT) == FIO_S_IFLNK)
 
#define FIO_S_ISREG(m)   (((m)&FIO_S_IFMT) == FIO_S_IFREG)
 
#define FIO_S_ISDIR(m)   (((m)&FIO_S_IFMT) == FIO_S_IFDIR)
 
#define FIO_SO_IFMT   0x0038
 
#define FIO_SO_IFLNK   0x0008
 
#define FIO_SO_IFREG   0x0010
 
#define FIO_SO_IFDIR   0x0020
 
#define FIO_SO_IROTH   0x0004
 
#define FIO_SO_IWOTH   0x0002
 
#define FIO_SO_IXOTH   0x0001
 
#define FIO_SO_ISLNK(m)   (((m)&FIO_SO_IFMT) == FIO_SO_IFLNK)
 
#define FIO_SO_ISREG(m)   (((m)&FIO_SO_IFMT) == FIO_SO_IFREG)
 
#define FIO_SO_ISDIR(m)   (((m)&FIO_SO_IFMT) == FIO_SO_IFDIR)
 

Detailed Description

File attributes and directory entries.

Definition in file iox_stat.h.


Data Structure Documentation

◆ iox_stat_t

struct iox_stat_t

Definition at line 92 of file iox_stat.h.

Data Fields
unsigned int mode
unsigned int attr
unsigned int size
unsigned char ctime[8]
unsigned char atime[8]
unsigned char mtime[8]
unsigned int hisize
unsigned int private_0

Number of subs (main) / subpart number (sub)

unsigned int private_1
unsigned int private_2
unsigned int private_3
unsigned int private_4
unsigned int private_5

Sector start.

◆ iox_dirent_t

struct iox_dirent_t

Definition at line 111 of file iox_stat.h.

+ Collaboration diagram for iox_dirent_t:
Data Fields
iox_stat_t stat
char name[256]
void * privdata

Macro Definition Documentation

◆ FIO_CST_MODE

#define FIO_CST_MODE   0x0001

Definition at line 29 of file iox_stat.h.

◆ FIO_CST_ATTR

#define FIO_CST_ATTR   0x0002

Definition at line 30 of file iox_stat.h.

◆ FIO_CST_SIZE

#define FIO_CST_SIZE   0x0004

Definition at line 31 of file iox_stat.h.

◆ FIO_CST_CT

#define FIO_CST_CT   0x0008

Definition at line 32 of file iox_stat.h.

◆ FIO_CST_AT

#define FIO_CST_AT   0x0010

Definition at line 33 of file iox_stat.h.

◆ FIO_CST_MT

#define FIO_CST_MT   0x0020

Definition at line 34 of file iox_stat.h.

◆ FIO_CST_PRVT

#define FIO_CST_PRVT   0x0040

Definition at line 35 of file iox_stat.h.

◆ FIO_S_IFMT

#define FIO_S_IFMT   0xF000

Format mask

Definition at line 39 of file iox_stat.h.

◆ FIO_S_IFLNK

#define FIO_S_IFLNK   0x4000

Symbolic link

Definition at line 41 of file iox_stat.h.

◆ FIO_S_IFREG

#define FIO_S_IFREG   0x2000

Regular file

Definition at line 43 of file iox_stat.h.

◆ FIO_S_IFDIR

#define FIO_S_IFDIR   0x1000

Directory

Definition at line 45 of file iox_stat.h.

◆ FIO_S_ISUID

#define FIO_S_ISUID   0x0800

SUID

Definition at line 49 of file iox_stat.h.

◆ FIO_S_ISGID

#define FIO_S_ISGID   0x0400

SGID

Definition at line 51 of file iox_stat.h.

◆ FIO_S_ISVTX

#define FIO_S_ISVTX   0x0200

Sticky bit

Definition at line 53 of file iox_stat.h.

◆ FIO_S_IRWXU

#define FIO_S_IRWXU   0x01C0

User access rights mask

Definition at line 56 of file iox_stat.h.

◆ FIO_S_IRUSR

#define FIO_S_IRUSR   0x0100

read

Definition at line 58 of file iox_stat.h.

◆ FIO_S_IWUSR

#define FIO_S_IWUSR   0x0080

write

Definition at line 60 of file iox_stat.h.

◆ FIO_S_IXUSR

#define FIO_S_IXUSR   0x0040

execute

Definition at line 62 of file iox_stat.h.

◆ FIO_S_IRWXG

#define FIO_S_IRWXG   0x0038

Group access rights mask

Definition at line 65 of file iox_stat.h.

◆ FIO_S_IRGRP

#define FIO_S_IRGRP   0x0020

read

Definition at line 67 of file iox_stat.h.

◆ FIO_S_IWGRP

#define FIO_S_IWGRP   0x0010

write

Definition at line 69 of file iox_stat.h.

◆ FIO_S_IXGRP

#define FIO_S_IXGRP   0x0008

execute

Definition at line 71 of file iox_stat.h.

◆ FIO_S_IRWXO

#define FIO_S_IRWXO   0x0007

Others access rights mask

Definition at line 74 of file iox_stat.h.

◆ FIO_S_IROTH

#define FIO_S_IROTH   0x0004

read

Definition at line 76 of file iox_stat.h.

◆ FIO_S_IWOTH

#define FIO_S_IWOTH   0x0002

write

Definition at line 78 of file iox_stat.h.

◆ FIO_S_IXOTH

#define FIO_S_IXOTH   0x0001

execute

Definition at line 80 of file iox_stat.h.

◆ FIO_S_ISLNK

#define FIO_S_ISLNK (   m)    (((m)&FIO_S_IFMT) == FIO_S_IFLNK)

Definition at line 83 of file iox_stat.h.

◆ FIO_S_ISREG

#define FIO_S_ISREG (   m)    (((m)&FIO_S_IFMT) == FIO_S_IFREG)

Definition at line 84 of file iox_stat.h.

◆ FIO_S_ISDIR

#define FIO_S_ISDIR (   m)    (((m)&FIO_S_IFMT) == FIO_S_IFDIR)

Definition at line 85 of file iox_stat.h.

◆ FIO_SO_IFMT

#define FIO_SO_IFMT   0x0038

Format mask

Definition at line 122 of file iox_stat.h.

◆ FIO_SO_IFLNK

#define FIO_SO_IFLNK   0x0008

Symbolic link

Definition at line 124 of file iox_stat.h.

◆ FIO_SO_IFREG

#define FIO_SO_IFREG   0x0010

Regular file

Definition at line 126 of file iox_stat.h.

◆ FIO_SO_IFDIR

#define FIO_SO_IFDIR   0x0020

Directory

Definition at line 128 of file iox_stat.h.

◆ FIO_SO_IROTH

#define FIO_SO_IROTH   0x0004

read

Definition at line 131 of file iox_stat.h.

◆ FIO_SO_IWOTH

#define FIO_SO_IWOTH   0x0002

write

Definition at line 133 of file iox_stat.h.

◆ FIO_SO_IXOTH

#define FIO_SO_IXOTH   0x0001

execute

Definition at line 135 of file iox_stat.h.

◆ FIO_SO_ISLNK

#define FIO_SO_ISLNK (   m)    (((m)&FIO_SO_IFMT) == FIO_SO_IFLNK)

Definition at line 138 of file iox_stat.h.

◆ FIO_SO_ISREG

#define FIO_SO_ISREG (   m)    (((m)&FIO_SO_IFMT) == FIO_SO_IFREG)

Definition at line 139 of file iox_stat.h.

◆ FIO_SO_ISDIR

#define FIO_SO_ISDIR (   m)    (((m)&FIO_SO_IFMT) == FIO_SO_IFDIR)

Definition at line 140 of file iox_stat.h.