vitasdk
Documentation of the vitasdk
fcntl.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2KERN_IO_FCNTL_H_
8 #define _PSP2KERN_IO_FCNTL_H_
9 
10 #include <psp2kern/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 
39 SceUID ksceIoOpen(const char *file, int flags, SceMode mode);
40 
52 
67 int ksceIoRead(SceUID fd, void *data, SceSize size);
68 
84 int ksceIoPread(SceUID fd, void *data, SceSize size, SceOff offset);
85 
100 int ksceIoWrite(SceUID fd, const void *data, SceSize size);
101 
117 int ksceIoPwrite(SceUID fd, const void *data, SceSize size, SceOff offset);
118 
133 SceOff ksceIoLseek(SceUID fd, SceOff offset, int whence);
134 
141 int ksceIoRemove(const char *file);
142 
150 int ksceIoRename(const char *oldname, const char *newname);
151 
158 int ksceIoSync(const char *device, unsigned int unk);
159 
168 
169 
170 #ifdef __cplusplus
171 }
172 #endif
173 
174 #endif /* _PSP2KERN_IO_FCNTL_H_ */
175 
int ksceIoPwrite(SceUID fd, const void *data, SceSize size, SceOff offset)
Write output at offset.
int ksceIoPread(SceUID fd, void *data, SceSize size, SceOff offset)
Read input at offset.
int ksceIoClose(SceUID fd)
Delete a descriptor.
int ksceIoRead(SceUID fd, void *data, SceSize size)
Read input.
int ksceIoRename(const char *oldname, const char *newname)
Change the name of a file.
int ksceIoWrite(SceUID fd, const void *data, SceSize size)
Write output.
SceUID ksceIoOpen(const char *file, int flags, SceMode mode)
Open or create a file for reading or writing.
SceOff ksceIoLseek(SceUID fd, SceOff offset, int whence)
Reposition read/write file descriptor offset.
int ksceIoSync(const char *device, unsigned int unk)
Synchronize the file data on the device.
int ksceIoSyncByFd(SceUID fd)
Synchronize the file data for one file.
int ksceIoRemove(const char *file)
Remove directory entry.
SceSize size
struct size(variable size)
Definition: debug.h:0
int flags
Event flags.
Definition: debug.h:3
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
SceInt64 SceOff
Offset type.
Definition: types.h:88
int SceMode
Mode for I/O functions.
Definition: types.h:87