psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
sysfs.h File Reference
#include <time.h>
#include <unistd.h>
#include <ppu-types.h>

Go to the source code of this file.

Data Structures

struct  _sys_fs_stat
 
struct  _sys_fs_dirent
 
struct  _sys_fs_directory_entry
 
struct  _sys_fs_utime
 
struct  _sys_fs_aio
 

Macros

#define SYS_O_RDONLY   000000
 
#define SYS_O_WRONLY   000001
 
#define SYS_O_RDWR   000002
 
#define SYS_O_ACCMODE   000003
 
#define SYS_O_CREAT   000100
 
#define SYS_O_EXCL   000200
 
#define SYS_O_TRUNC   001000
 
#define SYS_O_APPEND   002000
 
#define SYS_O_MSELF   010000
 
#define SYS_FS_IO_BUFFER_PAGE_SIZE_64KB   2
 
#define SYS_FS_IO_BUFFER_PAGE_SIZE_1MB   4
 

Typedefs

typedef struct _sys_fs_dirent sysFSDirent
 
typedef struct _sys_fs_directory_entry sysFSDirectoryEntry
 
typedef struct _sys_fs_utime sysFSUtimbuf
 
typedef struct _sys_fs_aio sysFSAio
 
typedef void(* sysFsAioCallback) (sysFSAio *aio, s32 error, s32 xid, u64 size)
 

Functions

struct _sys_fs_stat __attribute__ ((packed)) sysFSStat
 
s32 sysFsOpen (const char *path, s32 oflags, s32 *fd, const void *arg, u64 argsize)
 
s32 sysFsClose (s32 fd)
 
s32 sysFsRead (s32 fd, void *ptr, u64 len, u64 *read)
 
s32 sysFsWrite (s32 fd, const void *ptr, u64 size, u64 *written)
 
s32 sysFsLseek (s32 fd, s64 offset, s32 whence, u64 *position)
 
s32 sysFsStat (const char *path, sysFSStat *stat)
 
s32 sysFsFstat (s32 fd, sysFSStat *stat)
 
s32 sysFsChmod (const char *path, s32 mode)
 
s32 sysFsMkdir (const char *path, s32 mode)
 
s32 sysFsRmdir (const char *path)
 
s32 sysFsUnlink (const char *path)
 
s32 sysFsAccess (const char *path, s32 amode)
 
s32 sysFsUtime (const char *path, sysFSUtimbuf *times)
 
s32 sysFsOpendir (const char *path, s32 *fd)
 
s32 sysFsClosedir (s32 fd)
 
s32 sysFsReaddir (s32 fd, sysFSDirent *entry, u64 *read)
 
s32 sysFsAioInit (const char *path)
 
s32 sysFsAioFinish (const char *path)
 
s32 sysFsAioCancel (s32 id)
 
s32 sysFsAioRead (sysFSAio *aio, s32 *id, sysFsAioCallback cb)
 
s32 sysFsAioWrite (sysFSAio *aio, s32 *id, sysFsAioCallback cb)
 
s32 sysFsGetFreeSize (const char *path, u32 *blockSize, u64 *freeBlocks)
 
s32 sysFsGetDirectoryEntries (s32 fd, sysFSDirectoryEntry *entries, u32 entrySize, u32 *dataCount)
 
s32 sysFsSetIoBuffer (s32 fd, size_t bufferSizeLimit, s32 pageType, sys_mem_container_t container)
 
s32 sysFsSetDefaultContainer (sys_mem_container_t container, size_t totalLimit)
 
s32 sysFsSetIoBufferFromDefaultContainer (s32 fd, size_t bufferSizeLimit, s32 pageType)
 

Variables

s32 st_mode
 
s32 st_uid
 
s32 st_gid
 
time_t st_atime
 
time_t st_mtime
 
time_t st_ctime
 
u64 st_size
 
u64 st_blksize
 

Macro Definition Documentation

◆ SYS_FS_IO_BUFFER_PAGE_SIZE_1MB

#define SYS_FS_IO_BUFFER_PAGE_SIZE_1MB   4

Definition at line 20 of file sysfs.h.

◆ SYS_FS_IO_BUFFER_PAGE_SIZE_64KB

#define SYS_FS_IO_BUFFER_PAGE_SIZE_64KB   2

Definition at line 19 of file sysfs.h.

◆ SYS_O_ACCMODE

#define SYS_O_ACCMODE   000003

Definition at line 12 of file sysfs.h.

◆ SYS_O_APPEND

#define SYS_O_APPEND   002000

Definition at line 16 of file sysfs.h.

◆ SYS_O_CREAT

#define SYS_O_CREAT   000100

Definition at line 13 of file sysfs.h.

◆ SYS_O_EXCL

#define SYS_O_EXCL   000200

Definition at line 14 of file sysfs.h.

◆ SYS_O_MSELF

#define SYS_O_MSELF   010000

Definition at line 17 of file sysfs.h.

◆ SYS_O_RDONLY

#define SYS_O_RDONLY   000000

Definition at line 9 of file sysfs.h.

◆ SYS_O_RDWR

#define SYS_O_RDWR   000002

Definition at line 11 of file sysfs.h.

◆ SYS_O_TRUNC

#define SYS_O_TRUNC   001000

Definition at line 15 of file sysfs.h.

◆ SYS_O_WRONLY

#define SYS_O_WRONLY   000001

Definition at line 10 of file sysfs.h.

Typedef Documentation

◆ sysFSAio

typedef struct _sys_fs_aio sysFSAio

◆ sysFsAioCallback

typedef void(* sysFsAioCallback) (sysFSAio *aio, s32 error, s32 xid, u64 size)

Definition at line 66 of file sysfs.h.

◆ sysFSDirectoryEntry

◆ sysFSDirent

typedef struct _sys_fs_dirent sysFSDirent

◆ sysFSUtimbuf

typedef struct _sys_fs_utime sysFSUtimbuf

Function Documentation

◆ __attribute__()

struct _sys_fs_stat __attribute__ ( (packed)  )

◆ sysFsAccess()

s32 sysFsAccess ( const char *  path,
s32  amode 
)

◆ sysFsAioCancel()

s32 sysFsAioCancel ( s32  id)

◆ sysFsAioFinish()

s32 sysFsAioFinish ( const char *  path)

◆ sysFsAioInit()

s32 sysFsAioInit ( const char *  path)

◆ sysFsAioRead()

s32 sysFsAioRead ( sysFSAio aio,
s32 *  id,
sysFsAioCallback  cb 
)

◆ sysFsAioWrite()

s32 sysFsAioWrite ( sysFSAio aio,
s32 *  id,
sysFsAioCallback  cb 
)

◆ sysFsChmod()

s32 sysFsChmod ( const char *  path,
s32  mode 
)

◆ sysFsClose()

s32 sysFsClose ( s32  fd)

◆ sysFsClosedir()

s32 sysFsClosedir ( s32  fd)

◆ sysFsFstat()

s32 sysFsFstat ( s32  fd,
sysFSStat *  stat 
)

◆ sysFsGetDirectoryEntries()

s32 sysFsGetDirectoryEntries ( s32  fd,
sysFSDirectoryEntry entries,
u32  entrySize,
u32 *  dataCount 
)

◆ sysFsGetFreeSize()

s32 sysFsGetFreeSize ( const char *  path,
u32 *  blockSize,
u64 *  freeBlocks 
)

◆ sysFsLseek()

s32 sysFsLseek ( s32  fd,
s64  offset,
s32  whence,
u64 *  position 
)

◆ sysFsMkdir()

s32 sysFsMkdir ( const char *  path,
s32  mode 
)

◆ sysFsOpen()

s32 sysFsOpen ( const char *  path,
s32  oflags,
s32 *  fd,
const void *  arg,
u64  argsize 
)

◆ sysFsOpendir()

s32 sysFsOpendir ( const char *  path,
s32 *  fd 
)

◆ sysFsRead()

s32 sysFsRead ( s32  fd,
void *  ptr,
u64  len,
u64 *  read 
)

◆ sysFsReaddir()

s32 sysFsReaddir ( s32  fd,
sysFSDirent entry,
u64 *  read 
)

◆ sysFsRmdir()

s32 sysFsRmdir ( const char *  path)

◆ sysFsSetDefaultContainer()

s32 sysFsSetDefaultContainer ( sys_mem_container_t  container,
size_t  totalLimit 
)

◆ sysFsSetIoBuffer()

s32 sysFsSetIoBuffer ( s32  fd,
size_t  bufferSizeLimit,
s32  pageType,
sys_mem_container_t  container 
)

◆ sysFsSetIoBufferFromDefaultContainer()

s32 sysFsSetIoBufferFromDefaultContainer ( s32  fd,
size_t  bufferSizeLimit,
s32  pageType 
)

◆ sysFsStat()

s32 sysFsStat ( const char *  path,
sysFSStat *  stat 
)

◆ sysFsUnlink()

s32 sysFsUnlink ( const char *  path)

◆ sysFsUtime()

s32 sysFsUtime ( const char *  path,
sysFSUtimbuf times 
)

◆ sysFsWrite()

s32 sysFsWrite ( s32  fd,
const void *  ptr,
u64  size,
u64 *  written 
)

Variable Documentation

◆ st_atime

time_t st_atime

Definition at line 3 of file sysfs.h.

◆ st_blksize

u64 st_blksize

Definition at line 7 of file sysfs.h.

◆ st_ctime

time_t st_ctime

Definition at line 5 of file sysfs.h.

◆ st_gid

s32 st_gid

Definition at line 2 of file sysfs.h.

◆ st_mode

s32 st_mode

Definition at line 0 of file sysfs.h.

◆ st_mtime

time_t st_mtime

Definition at line 4 of file sysfs.h.

◆ st_size

u64 st_size

Definition at line 6 of file sysfs.h.

◆ st_uid

s32 st_uid

Definition at line 1 of file sysfs.h.