Fix a bug (in revision 426) which made "Mode 3 - Unhook Syscalls" un-effectivei ...
[open-ps2-loader.git] / modules / ps2fs / inode.h
blobecc9c5986ab8d50f45104225ab48808277f93f61
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.
10 # $Id: inode.h 577 2004-09-14 14:41:46Z pixel $
13 #ifndef _INODE_H
14 #define _INODE_H
16 int inodeCheckSum(pfs_inode *inode);
17 void inodePrint(pfs_inode *inode);
18 void inodeUpdateTime(pfs_cache_t *clink);
19 pfs_cache_t *inodeGetData(pfs_mount_t *pfsMount, u16 sub, u32 inode, int *result);
20 pfs_cache_t *inodeGetFileInDir(pfs_cache_t *dirInode, char *path, int *result);
21 int inodeSync(pfs_blockpos_t *blockpos, u64 size, u32 used_segments);
22 pfs_cache_t *inodeGetFile(pfs_mount_t *pfsMount, pfs_cache_t *clink, const char *name, int *result);
23 int inodeRemove(pfs_cache_t *parent, pfs_cache_t *inode, char *path);
24 pfs_cache_t *inodeGetParent(pfs_mount_t *pfsMount, pfs_cache_t *clink, const char *filename,
25 char *path, int *result);
26 pfs_cache_t *inodeCreateNewFile(pfs_cache_t *clink, u16 mode, u16 uid, u16 gid, int *result);
28 #endif /* _INODE_H */