mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Move the definition of sbintime_t type from <sys/time.h> to <sys/types.h>.
With this change we prevent gross namespace pollution. Reported by: bde Suggested by: attilio
This commit is contained in:
parent
e234a588cb
commit
aa97685d73
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247476
@ -109,7 +109,6 @@ bintime_mul(struct bintime *bt, u_int x)
|
||||
((a)->frac cmp (b)->frac) : \
|
||||
((a)->sec cmp (b)->sec))
|
||||
|
||||
typedef int64_t sbintime_t;
|
||||
#define SBT_1S ((sbintime_t)1 << 32)
|
||||
#define SBT_1M (SBT_1S * 60)
|
||||
#define SBT_1MS (SBT_1S / 1000)
|
||||
|
@ -188,6 +188,8 @@ typedef __rlim_t rlim_t; /* resource limit */
|
||||
#define _RLIM_T_DECLARED
|
||||
#endif
|
||||
|
||||
typedef __int64_t sbintime_t;
|
||||
|
||||
typedef __segsz_t segsz_t; /* segment size (in pages) */
|
||||
|
||||
#ifndef _SIZE_T_DECLARED
|
||||
|
Loading…
Reference in New Issue
Block a user