19,20 → 19,11 |
|
#include <_ansi.h> |
# include <sys/cdefs.h> |
|
#ifndef __INTTYPES_DEFINED__ |
#define __INTTYPES_DEFINED__ |
|
#include <machine/_types.h> |
|
#if defined(__rtems__) || defined(__XMK__) |
/* |
* The following section is RTEMS specific and is needed to more |
* closely match the types defined in the BSD sys/types.h. |
* This is needed to let the RTEMS/BSD TCP/IP stack compile. |
*/ |
|
/* deprecated */ |
/* BSD types permitted by POSIX and always exposed as in Glibc. Only provided |
for backward compatibility with BSD code. The uintN_t standard types should |
be preferred in new code. */ |
#if ___int8_t_defined |
typedef __uint8_t u_int8_t; |
#endif |
42,20 → 33,26 |
#if ___int32_t_defined |
typedef __uint32_t u_int32_t; |
#endif |
|
#if ___int64_t_defined |
typedef __uint64_t u_int64_t; |
#endif |
|
#if defined(__rtems__) || defined(__XMK__) |
/* |
* The following section is RTEMS specific and is needed to more |
* closely match the types defined in the BSD sys/types.h. |
* This is needed to let the RTEMS/BSD TCP/IP stack compile. |
*/ |
|
/* deprecated */ |
#if ___int64_t_defined |
typedef __uint64_t u_quad_t; |
typedef __int64_t quad_t; |
typedef quad_t * qaddr_t; |
#endif |
|
#endif |
#endif /* __rtems__ || __XMK__ */ |
|
#endif /* ! __INTTYPES_DEFINED */ |
|
#ifndef __need_inttypes |
|
#define _SYS_TYPES_H |
85,10 → 82,12 |
#endif |
|
# if __BSD_VISIBLE |
|
#include <sys/select.h> |
# define physadr physadr_t |
# define quad quad_t |
#endif |
|
#if __MISC_VISIBLE |
#ifndef _BSDTYPES_DEFINED |
/* also defined in mingw/gmon.h and in w32api/winsock[2].h */ |
#ifndef __u_char_defined |
109,11 → 108,13 |
#endif |
#define _BSDTYPES_DEFINED |
#endif |
#endif /*__BSD_VISIBLE || __CYGWIN__ */ |
|
#if __MISC_VISIBLE |
typedef unsigned short ushort; /* System V compatibility */ |
typedef unsigned int uint; /* System V compatibility */ |
typedef unsigned long ulong; /* System V compatibility */ |
# endif /*__BSD_VISIBLE */ |
#endif |
|
#ifndef __clock_t_defined |
typedef _CLOCK_T_ clock_t; |
187,7 → 188,11 |
#ifndef __CYGWIN__ |
typedef long key_t; |
#endif |
|
#ifndef _SSIZE_T_DECLARED |
typedef _ssize_t ssize_t; |
#define _SSIZE_T_DECLARED |
#endif |
|
#if !defined(__CYGWIN__) && !defined(__rtems__) |
#ifdef __MS_types__ |
410,6 → 415,7 |
|
typedef struct { |
int is_initialized; |
clock_t clock; /* specifiy clock for timeouts */ |
#if defined(_POSIX_THREAD_PROCESS_SHARED) |
int process_shared; /* allow this to be shared amongst processes */ |
#endif |
431,6 → 437,7 |
|
/* POSIX Barrier Types */ |
|
#if !defined(__CYGWIN__) |
#if defined(_POSIX_BARRIERS) |
typedef __uint32_t pthread_barrier_t; /* POSIX Barrier Object */ |
typedef struct { |
443,7 → 450,6 |
|
/* POSIX Spin Lock Types */ |
|
#if !defined (__CYGWIN__) |
#if defined(_POSIX_SPIN_LOCKS) |
typedef __uint32_t pthread_spinlock_t; /* POSIX Spin Lock Object */ |
#endif /* defined(_POSIX_SPIN_LOCKS) */ |