pspsdk-1.0+beta2
pspiofilemgr_fcntl.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * pspiofilemgr_fcntl.h - File control definitions.
7  *
8  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11  *
12  * $Id: pspiofilemgr_fcntl.h 559 2005-07-09 08:47:52Z mrbrown $
13  */
14 #ifndef PSPIOFILEMGR_FCNTL_H
15 #define PSPIOFILEMGR_FCNTL_H
16 
17 /* Note: Not all of these sceIoOpen() flags are not compatible with the
18  open() flags found in sys/unistd.h. */
19 #define PSP_O_RDONLY 0x0001
20 #define PSP_O_WRONLY 0x0002
21 #define PSP_O_RDWR (PSP_O_RDONLY | PSP_O_WRONLY)
22 #define PSP_O_NBLOCK 0x0004
23 #define PSP_O_DIROPEN 0x0008 // Internal use for dopen
24 #define PSP_O_APPEND 0x0100
25 #define PSP_O_CREAT 0x0200
26 #define PSP_O_TRUNC 0x0400
27 #define PSP_O_EXCL 0x0800
28 #define PSP_O_NOWAIT 0x8000
29 
30 #define PSP_SEEK_SET 0
31 #define PSP_SEEK_CUR 1
32 #define PSP_SEEK_END 2
33 
34 #endif /* PSPIOFILEMGR_FCNTL_H */