Reduce namespace pollution from <sys/_types.h>
Provide only __daddr_t through <sys/_types.h>.
This commit is contained in:
parent
4ab39e0a85
commit
282d57d2a8
|
@ -194,6 +194,10 @@ typedef _TIME_T_ __time_t;
|
||||||
|
|
||||||
typedef _CLOCKID_T_ __clockid_t;
|
typedef _CLOCKID_T_ __clockid_t;
|
||||||
|
|
||||||
|
#ifndef __machine_daddr_t_defined
|
||||||
|
typedef long __daddr_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _TIMER_T_ unsigned long
|
#define _TIMER_T_ unsigned long
|
||||||
typedef _TIMER_T_ __timer_t;
|
typedef _TIMER_T_ __timer_t;
|
||||||
|
|
||||||
|
|
|
@ -115,10 +115,8 @@ typedef _TIME_T_ time_t;
|
||||||
#define _TIME_T_DECLARED
|
#define _TIME_T_DECLARED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __daddr_t_defined
|
typedef __daddr_t daddr_t;
|
||||||
typedef long daddr_t;
|
|
||||||
#define __daddr_t_defined
|
|
||||||
#endif
|
|
||||||
#ifndef __caddr_t_defined
|
#ifndef __caddr_t_defined
|
||||||
typedef char * caddr_t;
|
typedef char * caddr_t;
|
||||||
#define __caddr_t_defined
|
#define __caddr_t_defined
|
||||||
|
|
|
@ -30,8 +30,8 @@ typedef __uint64_t _CLOCK_T_;
|
||||||
typedef int _CLOCKID_T_;
|
typedef int _CLOCKID_T_;
|
||||||
#define __machine_clockid_t_defined
|
#define __machine_clockid_t_defined
|
||||||
|
|
||||||
typedef __int64_t daddr_t;
|
typedef __int64_t __daddr_t;
|
||||||
#define __daddr_t_defined
|
#define __machine_daddr_t_defined
|
||||||
|
|
||||||
typedef int __accmode_t; /* access permissions */
|
typedef int __accmode_t; /* access permissions */
|
||||||
typedef __uint32_t __fixpt_t; /* fixed point number */
|
typedef __uint32_t __fixpt_t; /* fixed point number */
|
||||||
|
|
Loading…
Reference in New Issue