vitasdk
Documentation of the vitasdk
fcntl.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_IO_FCNTL_H_
8 #define _PSP2_IO_FCNTL_H_
9 
10 #include <psp2/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 
39 SceUID sceIoOpen(const char *file, int flags, SceMode mode);
40 
52 
67 SceSSize sceIoRead(SceUID fd, void *buf, SceSize nbyte);
68 
84 int sceIoPread(SceUID fd, void *data, SceSize size, SceOff offset);
85 
100 SceSSize sceIoWrite(SceUID fd, const void *buf, SceSize nbyte);
101 
117 int sceIoPwrite(SceUID fd, const void *data, SceSize size, SceOff offset);
118 
133 SceOff sceIoLseek(SceUID fd, SceOff offset, int whence);
134 
149 long sceIoLseek32(SceUID fd, long offset, int whence);
150 
157 int sceIoRemove(const char *file);
158 
166 int sceIoRename(const char *oldname, const char *newname);
167 
174 int sceIoSync(const char *device, unsigned int unk);
175 
184 int sceIoSyncByFd(SceUID fd, int flag);
185 
194 
198 int sceIoSetPriority(SceUID fd, int priority);
201 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 #endif /* _PSP2_IO_FCNTL_H_ */
207 
int sceIoGetPriority(SceUID fd)
int sceIoClose(SceUID fd)
Delete a descriptor.
int sceIoPwrite(SceUID fd, const void *data, SceSize size, SceOff offset)
Write output at offset.
int sceIoPread(SceUID fd, void *data, SceSize size, SceOff offset)
Read input at offset.
int sceIoSetPriority(SceUID fd, int priority)
int sceIoSetThreadDefaultPriority(int priority)
long sceIoLseek32(SceUID fd, long offset, int whence)
Reposition read/write file descriptor offset (32bit mode)
int sceIoSync(const char *device, unsigned int unk)
Synchronize the file data on the device.
int sceIoGetProcessDefaultPriority(void)
SceOff sceIoLseek(SceUID fd, SceOff offset, int whence)
Reposition read/write file descriptor offset.
SceUID sceIoOpen(const char *file, int flags, SceMode mode)
Open or create a file for reading or writing.
int sceIoRename(const char *oldname, const char *newname)
Change the name of a file.
SceSSize sceIoRead(SceUID fd, void *buf, SceSize nbyte)
Read input.
int sceIoSetProcessDefaultPriority(int priority)
int sceIoCancel(SceUID fd)
Cancel an asynchronous operation on a file descriptor.
int sceIoSyncByFd(SceUID fd, int flag)
Synchronize the file data for one file.
SceSSize sceIoWrite(SceUID fd, const void *buf, SceSize nbyte)
Write output.
int sceIoRemove(const char *file)
Remove directory entry.
int sceIoGetThreadDefaultPriority(void)
SceSize size
struct size(variable size)
Definition: debug.h:0
int flags
Event flags.
Definition: debug.h:3
signed int SceSSize
Definition: types.h:57
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