summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-02-04 23:32:54 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-02-04 23:32:54 +0000
commit0a63d118e26d7f30af98862e800a3b56f242f440 (patch)
tree4693dd9515ba80580d3dce7bc840fd1b7ab08acc
parent02407068c4c57765445da770023267a42a20a285 (diff)
Don't use __SSIZE_TYPE__ any longer, egcs 2.96 does no longer define
it. And while we're at it also eleminate the use of __SIZE_TYPE__ and __PTRDIFF_TYPE__.
-rw-r--r--include/asm-mips/posix_types.h18
-rw-r--r--include/asm-mips64/posix_types.h12
2 files changed, 11 insertions, 19 deletions
diff --git a/include/asm-mips/posix_types.h b/include/asm-mips/posix_types.h
index 057a44df8..3ddd7def2 100644
--- a/include/asm-mips/posix_types.h
+++ b/include/asm-mips/posix_types.h
@@ -1,17 +1,13 @@
-/* $Id: posix_types.h,v 1.5 1998/08/17 13:59:34 ralf Exp $
+/* $Id: posix_types.h,v 1.5 1998/08/25 09:22:00 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 1996, 1997, 1998 by Ralf Baechle
+ * Copyright (C) 1996, 1997, 1998, 2000 by Ralf Baechle
*/
-#ifndef __ARCH_MIPS_POSIX_TYPES_H
-#define __ARCH_MIPS_POSIX_TYPES_H
-
-#define __need_size_t
-#define __need_ptrdiff_t
-#include <stddef.h>
+#ifndef _ASM_POSIX_TYPES_H
+#define _ASM_POSIX_TYPES_H
/*
* This file is generally used by user-level software, so you need to
@@ -28,8 +24,8 @@ typedef long __kernel_pid_t;
typedef long __kernel_ipc_pid_t;
typedef long __kernel_uid_t;
typedef long __kernel_gid_t;
-typedef __SIZE_TYPE__ __kernel_size_t;
-typedef __SSIZE_TYPE__ __kernel_ssize_t;
+typedef unsigned int __kernel_size_t;
+typedef int __kernel_ssize_t;
typedef int __kernel_ptrdiff_t;
typedef long __kernel_time_t;
typedef long __kernel_suseconds_t;
@@ -117,4 +113,4 @@ static __inline__ void __FD_ZERO(__kernel_fd_set *__p)
#endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */
-#endif /* __ARCH_MIPS_POSIX_TYPES_H */
+#endif /* _ASM_POSIX_TYPES_H */
diff --git a/include/asm-mips64/posix_types.h b/include/asm-mips64/posix_types.h
index 45d9961b5..24a997ba7 100644
--- a/include/asm-mips64/posix_types.h
+++ b/include/asm-mips64/posix_types.h
@@ -1,4 +1,4 @@
-/* $Id: posix_types.h,v 1.1 1999/08/18 23:37:51 ralf Exp $
+/* $Id: posix_types.h,v 1.2 1999/12/04 03:59:12 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -10,10 +10,6 @@
#ifndef _ASM_POSIX_TYPES_H
#define _ASM_POSIX_TYPES_H
-#define __need_size_t
-#define __need_ptrdiff_t
-#include <stddef.h>
-
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
@@ -29,9 +25,9 @@ typedef int __kernel_pid_t;
typedef int __kernel_ipc_pid_t;
typedef int __kernel_uid_t;
typedef int __kernel_gid_t;
-typedef __SIZE_TYPE__ __kernel_size_t;
-typedef __SSIZE_TYPE__ __kernel_ssize_t;
-typedef __PTRDIFF_TYPE__ __kernel_ptrdiff_t;
+typedef unsigned long __kernel_size_t;
+typedef long __kernel_ssize_t;
+typedef long __kernel_ptrdiff_t;
typedef int __kernel_time_t;
typedef long __kernel_suseconds_t;
typedef int __kernel_clock_t;