mirror of
https://github.com/astromaddie/HaloCE-VR.git
synced 2026-10-23 09:00:12 +02:00
31 lines
612 B
C
31 lines
612 B
C
/*
|
|
FCNTL.H
|
|
|
|
Host <fcntl.h> plus the MSVC text/binary mode flags (no-ops on Linux).
|
|
*/
|
|
|
|
#ifndef __HALO_LINUX_FCNTL_H
|
|
#define __HALO_LINUX_FCNTL_H
|
|
|
|
#include_next <fcntl.h>
|
|
|
|
#define O_BINARY 0
|
|
#define O_TEXT 0
|
|
#define _O_BINARY 0
|
|
#define _O_TEXT 0
|
|
#define _O_RDONLY O_RDONLY
|
|
#define _O_WRONLY O_WRONLY
|
|
#define _O_RDWR O_RDWR
|
|
#define _O_CREAT O_CREAT
|
|
#define _O_TRUNC O_TRUNC
|
|
#define _O_APPEND O_APPEND
|
|
#define _O_EXCL O_EXCL
|
|
|
|
/* open() takes Xbox paths in game code; see stdio.h */
|
|
#ifndef HALO_LINUX_PLATFORM_LAYER
|
|
int halo_linux_open(const char *path, int flags, ...);
|
|
#define open halo_linux_open
|
|
#endif
|
|
|
|
#endif
|