diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2018-05-25 13:40:05 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2018-05-25 13:40:05 +0000 |
commit | fe9fbe221db15dc2e9cbddf3af8b0e5af90ae891 (patch) | |
tree | 165ae7a4bdd742869caa617ee7065e49f274cbc1 | |
parent | 13ab2c5370260f014734505ad330dc0ee4cdd2b5 (diff) | |
download | src-fe9fbe221db15dc2e9cbddf3af8b0e5af90ae891.tar.gz src-fe9fbe221db15dc2e9cbddf3af8b0e5af90ae891.zip |
Add time2posix and posix2time to time.h
These are documented in `time2posix.3` but the symbols are not actually
visible. Since these are not POSIX hide them behind _BSD_VISIBLE.
Reviewed by: wollman
Differential Revision: https://reviews.freebsd.org/D15530
Notes
Notes:
svn path=/head/; revision=334207
-rw-r--r-- | include/time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h index 52c95918f116..e3c51abeb14c 100644 --- a/include/time.h +++ b/include/time.h @@ -199,6 +199,8 @@ void tzsetwall(void); time_t timelocal(struct tm * const); time_t timegm(struct tm * const); int timer_oshandle_np(timer_t timerid); +time_t time2posix(time_t t); +time_t posix2time(time_t t); #endif /* __BSD_VISIBLE */ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) |