PSPSDK 2024-10-31
Loading...
Searching...
No Matches
pspiofilemgr_fcntl.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
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 */
13#ifndef PSPIOFILEMGR_FCNTL_H
14#define PSPIOFILEMGR_FCNTL_H
15
16/* Note: Not all of these sceIoOpen() flags are not compatible with the
17 open() flags found in sys/unistd.h. */
18#define PSP_O_RDONLY 0x0001
19#define PSP_O_WRONLY 0x0002
20#define PSP_O_RDWR (PSP_O_RDONLY | PSP_O_WRONLY)
21#define PSP_O_NBLOCK 0x0004
22#define PSP_O_DIR 0x0008
23#define PSP_O_APPEND 0x0100
24#define PSP_O_CREAT 0x0200
25#define PSP_O_TRUNC 0x0400
26#define PSP_O_EXCL 0x0800
27#define PSP_O_NOWAIT 0x8000
28
29#define PSP_SEEK_SET 0
30#define PSP_SEEK_CUR 1
31#define PSP_SEEK_END 2
32
33#endif /* PSPIOFILEMGR_FCNTL_H */