aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2006-02-11 18:57:43 +0000
committerChris Apers2006-02-11 18:57:43 +0000
commit87f6c767225d32337a9c428ecd92b1fe3cf96df3 (patch)
treeb2e02e2e31eef3e34f394a8bf3ceef1014fc2202
parent79f94b3cb2df58e4fc122d403fb8d9f698cb13db (diff)
downloadscummvm-rg350-87f6c767225d32337a9c428ecd92b1fe3cf96df3.tar.gz
scummvm-rg350-87f6c767225d32337a9c428ecd92b1fe3cf96df3.tar.bz2
scummvm-rg350-87f6c767225d32337a9c428ecd92b1fe3cf96df3.zip
This is now required
svn-id: r20574
-rw-r--r--backends/PalmOS/Src/missing/fcntl.h43
1 files changed, 42 insertions, 1 deletions
diff --git a/backends/PalmOS/Src/missing/fcntl.h b/backends/PalmOS/Src/missing/fcntl.h
index da84fa5f6b..59daa2ae05 100644
--- a/backends/PalmOS/Src/missing/fcntl.h
+++ b/backends/PalmOS/Src/missing/fcntl.h
@@ -1 +1,42 @@
-/* nothing */
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2001 Ludvig Strigeus
+ * Copyright (C) 2001-2006 The ScummVM project
+ * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#ifndef FCNTL_H
+#define FCNTL_H
+
+#define O_TEXT 0x0 /* 960827: Added this for Visual C++ compatibility. */
+#define O_RDWR 0x1 /* open the file in read/write mode */ /*- mm 980420 -*/
+#define O_RDONLY 0x2 /* open the file in read only mode */ /*- mm 980420 -*/
+#define O_WRONLY 0x4 /* open the file in write only mode */ /*- mm 980420 -*/
+#define O_APPEND 0x0100 /* open the file in append mode */
+#define O_CREAT 0x0200 /* create the file if it doesn't exist */
+#define O_EXCL 0x0400 /* if the file already exists don't create it again */
+#define O_TRUNC 0x0800 /* truncate the file after opening it */
+#define O_NRESOLVE 0x1000 /* Don't resolve any aliases */
+#define O_ALIAS 0x2000 /* Open alias file (if the file is an alias) */
+#define O_RSRC 0x4000 /* Open the resource fork */
+#define O_BINARY 0x8000 /* open the file in binary mode (default is text mode) */
+#define F_DUPFD 0x0 /* return a duplicate file descriptor */
+
+#endif