From 16e6b51cbabec11f04de3a4b947481e25ceb2834 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 2 Dec 1991 16:42:31 +0000 Subject: [PATCH] upgraded --- include/_tail_cc/sys/types.h | 30 +++++++++++++++++++++++++++++- include/_tail_mon/sys/types.h | 30 +++++++++++++++++++++++++++++- 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/include/_tail_cc/sys/types.h b/include/_tail_cc/sys/types.h index b4c35dd3b..8dcf84ecd 100644 --- a/include/_tail_cc/sys/types.h +++ b/include/_tail_cc/sys/types.h @@ -11,6 +11,21 @@ * Basic system types and major/minor device constructing/busting macros. */ +#if !defined(_SYS_TYPES_H) +#define _SYS_TYPES_H + +#if !defined(_SIZE_T) +#define _SIZE_T +typedef unsigned int size_t; /* type returned by sizeof */ +#endif /* _SIZE_T */ + +#if !defined(_TIME_T) +#define _TIME_T +typedef unsigned long time_t; +#endif /* TIME_T */ + +#if !defined(_POSIX_SOURCE) + /* major part of a device */ #define major(x) ((int)(((unsigned)(x)>>8)&0377)) @@ -28,7 +43,7 @@ typedef unsigned long u_long; typedef struct _physadr { int r[1]; } *physadr; typedef long daddr_t; typedef char * caddr_t; -#ifdef __BSD4_2 +#if defined(__BSD4_2) typedef u_long ino_t; #else typedef u_short ino_t; @@ -49,4 +64,17 @@ typedef short cnt_t; typedef long paddr_t; typedef long key_t; +#else /* _POSIX_SOURCE */ +#if defined(_MINIX) +typedef unsigned short dev_t; /* hold (major|minor) device pair */ +typedef unsigned char gid_t; /* group id */ +typedef unsigned short ino_t; /* i-node number */ +typedef unsigned short mode_t; /* mode number within an i-node */ +typedef unsigned char nlink_t; /* number-of-links field within an i-node */ +typedef long off_t; /* offsets within a file */ +typedef int pid_t; /* type for pids (must be signed) */ +typedef unsigned short uid_t; /* user id */ +#endif /* _MINIX */ +#endif /* _POSIX_SOURCE */ + #endif /* __TYPES_H__ */ diff --git a/include/_tail_mon/sys/types.h b/include/_tail_mon/sys/types.h index b4c35dd3b..8dcf84ecd 100644 --- a/include/_tail_mon/sys/types.h +++ b/include/_tail_mon/sys/types.h @@ -11,6 +11,21 @@ * Basic system types and major/minor device constructing/busting macros. */ +#if !defined(_SYS_TYPES_H) +#define _SYS_TYPES_H + +#if !defined(_SIZE_T) +#define _SIZE_T +typedef unsigned int size_t; /* type returned by sizeof */ +#endif /* _SIZE_T */ + +#if !defined(_TIME_T) +#define _TIME_T +typedef unsigned long time_t; +#endif /* TIME_T */ + +#if !defined(_POSIX_SOURCE) + /* major part of a device */ #define major(x) ((int)(((unsigned)(x)>>8)&0377)) @@ -28,7 +43,7 @@ typedef unsigned long u_long; typedef struct _physadr { int r[1]; } *physadr; typedef long daddr_t; typedef char * caddr_t; -#ifdef __BSD4_2 +#if defined(__BSD4_2) typedef u_long ino_t; #else typedef u_short ino_t; @@ -49,4 +64,17 @@ typedef short cnt_t; typedef long paddr_t; typedef long key_t; +#else /* _POSIX_SOURCE */ +#if defined(_MINIX) +typedef unsigned short dev_t; /* hold (major|minor) device pair */ +typedef unsigned char gid_t; /* group id */ +typedef unsigned short ino_t; /* i-node number */ +typedef unsigned short mode_t; /* mode number within an i-node */ +typedef unsigned char nlink_t; /* number-of-links field within an i-node */ +typedef long off_t; /* offsets within a file */ +typedef int pid_t; /* type for pids (must be signed) */ +typedef unsigned short uid_t; /* user id */ +#endif /* _MINIX */ +#endif /* _POSIX_SOURCE */ + #endif /* __TYPES_H__ */