summaryrefslogtreecommitdiff
path: root/wince/sys/types.h
diff options
context:
space:
mode:
authoruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-14 05:27:35 +0000
committeruema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-14 05:27:35 +0000
commit009f78761d729b18ac34749136f1474d89d54a69 (patch)
treec26991efff67368cda5153751d797893b796fc80 /wince/sys/types.h
parentc79e87783658aa264c3939497a1855942b0e6c5b (diff)
* wince/sys : add stat.c, stat.h, timeb.c, timeb.h,
types.h, utime.c, utime.h * wince/dll.mak : object file name changed. * wince/io.c : add empty dup2(). * wince/io.h : add dup2 definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'wince/sys/types.h')
-rw-r--r--wince/sys/types.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/wince/sys/types.h b/wince/sys/types.h
new file mode 100644
index 0000000000..214bd4a9b9
--- /dev/null
+++ b/wince/sys/types.h
@@ -0,0 +1,67 @@
+#ifndef SYS_TYPES_H
+#define SYS_TYPES_H 1
+
+#define BIG_ENDIAN 1234
+#define LITTLE_ENDIAN 4321
+
+#ifdef MIPS
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
+
+//#if UNDER_CE > 201
+// typedef unsigned long time_t;
+// #define _TIME_T_DEFINED_
+//#endif
+typedef unsigned long dev_t;
+typedef unsigned long ino_t;
+#ifndef _MODE_T_DEFINED_
+ typedef unsigned long mode_t;
+ #define _MODE_T_DEFINED_
+#endif
+
+//typedef unsigned short gid_t;
+//typedef unsigned short uid_t;
+typedef long clock_t;
+
+#ifndef _PTRDIFF_T_DEFINED
+typedef long ptrdiff_t;
+#define _PTRDIFF_T_DEFINED
+#endif
+
+typedef long off_t;
+
+//typedef unsigned char u_char;
+//typedef unsigned short u_short;
+
+#ifndef _CADDR_T_DEFINED_
+typedef unsigned char * caddr_t;
+#define _CADDR_T_DEFINED_
+#endif
+
+#ifndef _SIZE_T_DEFINED_
+typedef unsigned int size_t;
+#define _SIZE_T_DEFINED_
+#endif
+
+//typedef unsigned char u_int8_t;
+
+//typedef short int16_t;
+//typedef unsigned short u_int16_t;
+
+//typedef int int32_t;
+//typedef unsigned int u_int32_t;
+
+//typedef unsigned long u_long;
+//typedef unsigned int u_int;
+
+//#ifndef _TIME_T_DEFINED_
+//typedef unsigned long time_t;
+//#define _TIME_T_DEFINED_
+//#endif
+
+#ifndef _PID_T_DEFINED_
+typedef unsigned long pid_t;
+#define _PID_T_DEFINED_
+#endif
+
+#endif