diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-07-05 19:46:28 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-07-05 19:46:28 +0000 |
commit | c7db72065086f0d31f99f199a9c3807aafe684ab (patch) | |
tree | fe62c47396089b7c9875ca3b66ba303eb588716c /sys | |
parent | 07a2d9afcc5ccefb5c7ecbb4c21a721eb248d91f (diff) |
Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>
ok deraadt@ kettenis@ otto@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/amd64/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/arm/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/hppa/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/hppa64/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/i386/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/ia64/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/m68k/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/m88k/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/mips64/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/powerpc/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/sh/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/sparc/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/sparc64/include/_types.h | 7 | ||||
-rw-r--r-- | sys/arch/vax/include/_types.h | 7 | ||||
-rw-r--r-- | sys/sys/_types.h | 23 |
16 files changed, 29 insertions, 99 deletions
diff --git a/sys/arch/alpha/include/_types.h b/sys/arch/alpha/include/_types.h index d50d8fde325..76b7de3711d 100644 --- a/sys/arch/alpha/include/_types.h +++ b/sys/arch/alpha/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.19 2013/07/04 13:57:39 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.20 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/amd64/include/_types.h b/sys/arch/amd64/include/_types.h index 94186de9614..f3c8f651ccb 100644 --- a/sys/arch/amd64/include/_types.h +++ b/sys/arch/amd64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.12 2013/07/04 13:57:40 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.13 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/arm/include/_types.h b/sys/arch/arm/include/_types.h index 255a744101c..f86853054f9 100644 --- a/sys/arch/arm/include/_types.h +++ b/sys/arch/arm/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.12 2013/07/04 13:57:40 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.13 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/hppa/include/_types.h b/sys/arch/hppa/include/_types.h index 33b1e49c063..06aa7a811fa 100644 --- a/sys/arch/hppa/include/_types.h +++ b/sys/arch/hppa/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.20 2013/07/04 13:57:40 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.21 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -121,16 +121,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/hppa64/include/_types.h b/sys/arch/hppa64/include/_types.h index 69ad6d7337e..80b5c3ff159 100644 --- a/sys/arch/hppa64/include/_types.h +++ b/sys/arch/hppa64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.13 2013/07/04 13:57:40 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.14 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -121,16 +121,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; typedef __builtin_va_list __va_list; /* Wide character support types */ diff --git a/sys/arch/i386/include/_types.h b/sys/arch/i386/include/_types.h index ea4a8546b0f..02c21cabd20 100644 --- a/sys/arch/i386/include/_types.h +++ b/sys/arch/i386/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.17 2013/07/04 13:57:41 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.18 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef long double __double_t; typedef long double __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/ia64/include/_types.h b/sys/arch/ia64/include/_types.h index a8a145380e6..f6ec320c501 100644 --- a/sys/arch/ia64/include/_types.h +++ b/sys/arch/ia64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.6 2013/07/04 13:57:41 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.7 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -118,16 +118,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/m68k/include/_types.h b/sys/arch/m68k/include/_types.h index d89e0eaee42..816dd114192 100644 --- a/sys/arch/m68k/include/_types.h +++ b/sys/arch/m68k/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.14 2013/07/04 13:57:41 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.15 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef long double __double_t; typedef long double __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/m88k/include/_types.h b/sys/arch/m88k/include/_types.h index aad3d5223b7..0c9dd3d7dda 100644 --- a/sys/arch/m88k/include/_types.h +++ b/sys/arch/m88k/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.12 2013/07/04 13:57:41 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.13 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -121,16 +121,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef long double __double_t; typedef long double __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/mips64/include/_types.h b/sys/arch/mips64/include/_types.h index 81f7a471db1..2b44d82a349 100644 --- a/sys/arch/mips64/include/_types.h +++ b/sys/arch/mips64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.14 2013/07/04 13:57:42 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.15 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -125,16 +125,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/powerpc/include/_types.h b/sys/arch/powerpc/include/_types.h index a30fe665a2e..cfd072491fa 100644 --- a/sys/arch/powerpc/include/_types.h +++ b/sys/arch/powerpc/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.16 2013/07/04 13:57:42 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.17 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/sh/include/_types.h b/sys/arch/sh/include/_types.h index c8b27cdf62f..084a5a05776 100644 --- a/sys/arch/sh/include/_types.h +++ b/sys/arch/sh/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.14 2013/07/04 13:57:42 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.15 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/sparc/include/_types.h b/sys/arch/sparc/include/_types.h index ef66a80ef71..68084ea3c4f 100644 --- a/sys/arch/sparc/include/_types.h +++ b/sys/arch/sparc/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.21 2013/07/04 13:57:42 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.22 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -118,16 +118,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/sparc64/include/_types.h b/sys/arch/sparc64/include/_types.h index 4ae2b5cc8d5..2767906e823 100644 --- a/sys/arch/sparc64/include/_types.h +++ b/sys/arch/sparc64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.17 2013/07/04 13:57:43 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.18 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/arch/vax/include/_types.h b/sys/arch/vax/include/_types.h index d3f39991f2a..be85a313f33 100644 --- a/sys/arch/vax/include/_types.h +++ b/sys/arch/vax/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.17 2013/07/04 13:57:43 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.18 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,16 +117,11 @@ typedef unsigned long __vsize_t; typedef unsigned long __psize_t; /* Standard system types */ -typedef int __clock_t; -typedef int __clockid_t; typedef double __double_t; typedef float __float_t; -typedef long long __off_t; typedef long __ptrdiff_t; typedef unsigned long __size_t; typedef long __ssize_t; -typedef int __time_t; -typedef int __timer_t; #if defined(__GNUC__) && __GNUC__ >= 3 typedef __builtin_va_list __va_list; #else diff --git a/sys/sys/_types.h b/sys/sys/_types.h index 3a7d7f8439f..4c16e5288be 100644 --- a/sys/sys/_types.h +++ b/sys/sys/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.4 2013/07/04 13:57:39 otto Exp $ */ +/* $OpenBSD: _types.h,v 1.5 2013/07/05 19:46:27 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -36,28 +36,33 @@ #include <machine/_types.h> +typedef __int32_t __clock_t; /* ticks in CLOCKS_PER_SEC */ +typedef __int32_t __clockid_t; /* CLOCK_* identifiers */ typedef unsigned long __cpuid_t; /* CPU id */ typedef __int32_t __dev_t; /* device number */ typedef __uint32_t __fixpt_t; /* fixed point number */ +typedef __uint64_t __fsblkcnt_t; /* file system block count */ +typedef __uint64_t __fsfilcnt_t; /* file system file count */ typedef __uint32_t __gid_t; /* group id */ typedef __uint32_t __id_t; /* may contain pid, uid or gid */ -typedef __uint32_t __in_addr_t; /* base type for internet address */ -typedef __uint16_t __in_port_t; /* IP port type */ +typedef __uint32_t __in_addr_t; /* base type for internet address */ +typedef __uint16_t __in_port_t; /* IP port type */ typedef __uint32_t __ino_t; /* inode number */ typedef long __key_t; /* IPC key (for Sys V IPC) */ typedef __uint32_t __mode_t; /* permissions */ typedef __uint32_t __nlink_t; /* link count */ +typedef __int64_t __off_t; /* file offset or size */ typedef __int32_t __pid_t; /* process id */ -typedef __uint64_t __rlim_t; /* resource limit */ -typedef __uint8_t __sa_family_t; /* sockaddr address family type */ +typedef __uint64_t __rlim_t; /* resource limit */ +typedef __uint8_t __sa_family_t; /* sockaddr address family type */ typedef __int32_t __segsz_t; /* segment size */ -typedef __uint32_t __socklen_t; /* length type for network syscalls */ +typedef __uint32_t __socklen_t; /* length type for network syscalls */ +typedef __int32_t __suseconds_t; /* microseconds (signed) */ typedef __int32_t __swblk_t; /* swap offset */ +typedef __int32_t __time_t; /* epoch time */ +typedef __int32_t __timer_t; /* POSIX timer identifiers */ typedef __uint32_t __uid_t; /* user id */ typedef __uint32_t __useconds_t; /* microseconds */ -typedef __int32_t __suseconds_t; /* microseconds (signed) */ -typedef __uint64_t __fsblkcnt_t; /* file system block count */ -typedef __uint64_t __fsfilcnt_t; /* file system file count */ /* * mbstate_t is an opaque object to keep conversion state, during multibyte |