[sword-cvs] swordreader/src/Dll1/winceSword/include fcntl.h,1.1.1.1,1.2 unistd.h,1.1.1.1,1.2
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 17 Jan 2004 00:00:33 -0700
Update of /cvs/core/swordreader/src/Dll1/winceSword/include
In directory www:/tmp/cvs-serv16326/src/Dll1/winceSword/include
Modified Files:
fcntl.h unistd.h
Log Message:
redid io calls-- not done
Index: fcntl.h
===================================================================
RCS file: /cvs/core/swordreader/src/Dll1/winceSword/include/fcntl.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- fcntl.h 16 Jan 2004 17:34:27 -0000 1.1.1.1
+++ fcntl.h 17 Jan 2004 07:00:31 -0000 1.2
@@ -4,14 +4,14 @@
#include <errno.h>
-
-#define O_RDONLY 0x0000 /* open for reading only */
-#define O_WRONLY 0x0001 /* open for writing only */
-#define O_RDWR 0x0002 /* open for reading and writing */
-#define O_APPEND 0x0008 /* writes done at eof */
-
-#define O_CREAT 0x0100 /* create and open file */
-#define O_TRUNC 0x0200 /* open and truncate */
+#define O_RDONLY 00
+#define O_WRONLY 01
+#define O_RDWR 02
+#define O_CREAT 0100 /* not fcntl */
+//#define O_EXCL 0200 /* not fcntl */
+//#define O_NOCTTY 0400 /* not fcntl */
+#define O_TRUNC 01000 /* not fcntl */
+#define O_APPEND 02000
//not implemented for CE #define O_EXCL 0x0400 /* open only if file doesn't already exist */
/* O_TEXT files have <cr><lf> sequences translated to <lf> on read()'s,
Index: unistd.h
===================================================================
RCS file: /cvs/core/swordreader/src/Dll1/winceSword/include/unistd.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- unistd.h 16 Jan 2004 17:34:27 -0000 1.1.1.1
+++ unistd.h 17 Jan 2004 07:00:31 -0000 1.2
@@ -3,6 +3,13 @@
#include <stdlib.h>
+#ifndef SEEK_SET
+# define SEEK_SET 0 /* Seek from beginning of file. */
+# define SEEK_CUR 1 /* Seek from current position. */
+# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
+#endif
+
+
typedef long off_t;
int close (int fd);