summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/machine
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-04-13 21:00:17 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-04-13 21:00:17 +0200
commit7b391244009ebca831aa8f8dac82112a9daa9023 (patch)
tree86bddf8c69af8681a14f9d62f2cc7e0f325348d5 /winsup/cygwin/include/machine
parentde51829c1747c0dd220f720ca84a51a818315b27 (diff)
downloadcygnal-7b391244009ebca831aa8f8dac82112a9daa9023.tar.gz
cygnal-7b391244009ebca831aa8f8dac82112a9daa9023.tar.bz2
cygnal-7b391244009ebca831aa8f8dac82112a9daa9023.zip
Get rid of some special cases for Cygwin in sys/types.h
Remove off_t typedef from cygwin/types.h thus relying on sys/types.h. Introduce winsup/cygwin/machine/_types.h and move some types shared with newlib into it. Get rid of their definition in cygwin/types.h. Add same handling for __key_t/key_t as for the other types. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/include/machine')
-rw-r--r--winsup/cygwin/include/machine/_types.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/winsup/cygwin/include/machine/_types.h b/winsup/cygwin/include/machine/_types.h
new file mode 100644
index 000000000..aafa9987c
--- /dev/null
+++ b/winsup/cygwin/include/machine/_types.h
@@ -0,0 +1,26 @@
+/* Cygwin's machine/_types.h */
+
+#ifndef _MACHINE__TYPES_H
+#define _MACHINE__TYPES_H
+
+#include <machine/_default_types.h>
+
+#if defined (__INSIDE_CYGWIN__) || defined (_COMPILING_NEWLIB)
+typedef __int16_t __dev16_t;
+typedef __uint16_t __uid16_t;
+typedef __uint16_t __gid16_t;
+#endif
+
+#define __dev_t_defined
+typedef __uint32_t __dev_t;
+
+#define __uid_t_defined
+typedef __uint32_t __uid_t;
+
+#define __gid_t_defined
+typedef __uint32_t __gid_t;
+
+#define __key_t_defined
+typedef long long __key_t;
+
+#endif /* _MACHINE__TYPES_H */