summaryrefslogtreecommitdiff
path: root/libc/kinclude
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1996-11-03 22:33:35 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:33:35 +0200
commitc218c617b5be443b7968308506969ad2b726d73c (patch)
tree0051f396af56133d24fcf2ab757fabc78c1a09bf /libc/kinclude
parent0936b9aeab611665645a4e6bafaded7ca76dd189 (diff)
parent0d2fbe9b1bd284ce2cad55be17e8f2c896031a25 (diff)
downloaddev86-c218c617b5be443b7968308506969ad2b726d73c.tar.gz
Import Dev86src-0.0.8.tar.gzv0.0.8
Diffstat (limited to 'libc/kinclude')
-rw-r--r--libc/kinclude/Makefile4
-rw-r--r--libc/kinclude/arch/types.h8
-rw-r--r--libc/kinclude/linuxmt/stat.h2
-rw-r--r--libc/kinclude/linuxmt/types.h2
4 files changed, 11 insertions, 5 deletions
diff --git a/libc/kinclude/Makefile b/libc/kinclude/Makefile
index 83d05ed..8982f57 100644
--- a/libc/kinclude/Makefile
+++ b/libc/kinclude/Makefile
@@ -14,10 +14,14 @@ libc.a:
transfer:
-@rm -f ../include/linuxmt
ln -s ../kinclude/linuxmt ../include
+ @touch Used
# This is for use once linuxmt's syscall interface really gets working.
+# beware the arch directory must be removed when you do this.
real_transfer:
-@rm -f ../include/linuxmt
cd ../include ; ln -s ../../linuxmt/include/linuxmt .
clean:
+ -@rm -f ../include/linuxmt
+ -@rm -f Used
diff --git a/libc/kinclude/arch/types.h b/libc/kinclude/arch/types.h
index b77ad8e..00afeed 100644
--- a/libc/kinclude/arch/types.h
+++ b/libc/kinclude/arch/types.h
@@ -10,10 +10,10 @@ typedef unsigned char * __pu8;
typedef char __s8;
typedef char * __ps8;
-typedef unsigned int __u16;
-typedef unsigned int * __pu16;
-typedef int __s16;
-typedef int * __ps16;
+typedef unsigned short __u16;
+typedef unsigned short * __pu16;
+typedef short __s16;
+typedef short * __ps16;
typedef unsigned long __u32;
typedef unsigned long * __pu32;
diff --git a/libc/kinclude/linuxmt/stat.h b/libc/kinclude/linuxmt/stat.h
index 48256a5..9fbd191 100644
--- a/libc/kinclude/linuxmt/stat.h
+++ b/libc/kinclude/linuxmt/stat.h
@@ -27,7 +27,9 @@
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
+#ifdef __LINUXMT_NETWORK__
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
+#endif
#define S_IRWXU 00700
#define S_IRUSR 00400
diff --git a/libc/kinclude/linuxmt/types.h b/libc/kinclude/linuxmt/types.h
index 1450d25..8e5236a 100644
--- a/libc/kinclude/linuxmt/types.h
+++ b/libc/kinclude/linuxmt/types.h
@@ -24,7 +24,7 @@ typedef __u32 loff_t;
typedef __u32 speed_t;
typedef __u16 dev_t;
-typedef __u16 ino_t;
+typedef __uint ino_t;
typedef __u32 tcflag_t;
typedef __u8 cc_t;