1
0
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:
Davide Italiano 2013-02-28 17:10:30 +00:00
parent e234a588cb
commit aa97685d73
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247476
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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