sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
pfs_fio.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
15#ifndef _PFS_FIO_H
16#define _PFS_FIO_H
17
18#define PFS_FDIRO (0x0008) /* internal use for dopen */
19
21// Function declarations
22
23extern int pfsFioCheckForLastError(pfs_mount_t *pfsMount, int rv);
24extern int pfsFioCheckFileSlot(pfs_file_slot_t *fileSlot);
25extern pfs_mount_t *pfsFioGetMountedUnit(int unit);
26extern void pfsFioCloseFileSlot(pfs_file_slot_t *fileSlot);
27
29// I/O functions
30
31extern int pfsFioInit(iomanX_iop_device_t *f);
32extern int pfsFioDeinit(iomanX_iop_device_t *f);
33extern int pfsFioFormat(iomanX_iop_file_t *, const char *dev, const char *blockdev, void *arg, int arglen);
34extern int pfsFioOpen(iomanX_iop_file_t *f, const char *name, int flags, int mode);
35extern int pfsFioClose(iomanX_iop_file_t *f);
36extern int pfsFioRead(iomanX_iop_file_t *f, void *buf, int size);
37extern int pfsFioWrite(iomanX_iop_file_t *f, void *buf, int size);
38extern int pfsFioLseek(iomanX_iop_file_t *f, int pos, int whence);
39extern int pfsFioRemove(iomanX_iop_file_t *f, const char *name);
40extern int pfsFioMkdir(iomanX_iop_file_t *f, const char *path, int mode);
41extern int pfsFioRmdir(iomanX_iop_file_t *f, const char *path);
42extern int pfsFioDopen(iomanX_iop_file_t *f, const char *name);
43extern int pfsFioDclose(iomanX_iop_file_t *f);
44extern int pfsFioDread(iomanX_iop_file_t *f, iox_dirent_t *buf);
45extern int pfsFioGetstat(iomanX_iop_file_t *f, const char *name, iox_stat_t *stat);
46extern int pfsFioChstat(iomanX_iop_file_t *f, const char *name, iox_stat_t *stat, unsigned int statmask);
47extern int pfsFioRename(iomanX_iop_file_t *f, const char *old, const char *new_);
48extern int pfsFioChdir(iomanX_iop_file_t *f, const char *name);
49extern int pfsFioSync(iomanX_iop_file_t *f, const char *dev, int flag);
50extern int pfsFioMount(iomanX_iop_file_t *f, const char *fsname, const char *devname, int flag, void *arg, int arglen);
51extern int pfsFioUmount(iomanX_iop_file_t *f, const char *fsname);
52extern s64 pfsFioLseek64(iomanX_iop_file_t *f, s64 offset, int whence);
53extern int pfsFioSymlink(iomanX_iop_file_t *f, const char *old, const char *new_);
54extern int pfsFioReadlink(iomanX_iop_file_t *f, const char *path, char *buf, unsigned int buflen);
55
56#endif /* _PFS_FIO_H */
struct _iomanX_iop_file iomanX_iop_file_t