1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Remove the hack for segsz_t from <sys/types.h>; use the normal

_BSD_FOO_T_ method for defining segsz_t.
This commit is contained in:
Mike Barcroft 2002-04-10 15:58:13 +00:00
parent 7f0f1cfd57
commit 49285705cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94363
6 changed files with 10 additions and 5 deletions

View File

@ -53,6 +53,7 @@
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */
#define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */
#define _BSD_SEGSZ_T_ __int64_t /* segment size (in pages) */
#define _BSD_SIZE_T_ unsigned long /* sizeof() */
#define _BSD_SOCKLEN_T_ __uint32_t /* socklen_t (duh) */
#define _BSD_SSIZE_T_ long /* byte count or error */

View File

@ -52,6 +52,7 @@
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */
#define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */
#define _BSD_SEGSZ_T_ __int32_t /* segment size (in pages) */
#define _BSD_SIZE_T_ unsigned int /* sizeof() */
#define _BSD_SOCKLEN_T_ __uint32_t /* socklen_t (duh) */
#define _BSD_SSIZE_T_ int /* byte count or error */

View File

@ -53,6 +53,7 @@
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */
#define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */
#define _BSD_SEGSZ_T_ __int32_t /* segment size (in pages) */
#define _BSD_SIZE_T_ unsigned long /* sizeof() */
#define _BSD_SOCKLEN_T_ __uint32_t
#define _BSD_SSIZE_T_ long /* byte count or error */

View File

@ -52,6 +52,7 @@
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */
#define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */
#define _BSD_SEGSZ_T_ __int32_t /* segment size (in pages) */
#define _BSD_SIZE_T_ unsigned int /* sizeof() */
#define _BSD_SOCKLEN_T_ __uint32_t /* socklen_t (duh) */
#define _BSD_SSIZE_T_ long /* byte count or error */

View File

@ -53,6 +53,7 @@
#define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */
#define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */
#define _BSD_RUNE_T_ _BSD_CT_RUNE_T_ /* rune_t (see below) */
#define _BSD_SEGSZ_T_ __int64_t /* segment size (in pages) */
#define _BSD_SIZE_T_ unsigned long /* sizeof() */
#define _BSD_SOCKLEN_T_ __uint32_t /* socklen_t (duh) */
#define _BSD_SSIZE_T_ long /* byte count or error */

View File

@ -143,12 +143,12 @@ typedef u_int16_t nlink_t; /* link count */
typedef _BSD_OFF_T_ off_t; /* file offset */
typedef _BSD_PID_T_ pid_t; /* process id */
typedef quad_t rlim_t; /* resource limit */
#if defined(__alpha__) || defined(__sparc64__)
/* XXX should be in <machine/types.h> */
typedef int64_t segsz_t; /* segment size */
#else
typedef int32_t segsz_t; /* segment size */
#ifdef _BSD_SEGSZ_T_
typedef _BSD_SEGSZ_T_ segsz_t; /* segment size (in pages) */
#undef _BSD_SEGSZ_T_
#endif
typedef int32_t swblk_t; /* swap offset */
typedef int32_t ufs_daddr_t;
typedef int32_t ufs_time_t;