summaryrefslogtreecommitdiffstats
path: root/sys/sys/time.h
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-14 19:15:13 +0000
committerdas <das@FreeBSD.org>2009-03-14 19:15:13 +0000
commit688bdd6550c82df363b157ec5f3a89cbd5a21abb (patch)
tree0a5a0d28239fbda3b00ea81adbc325d1ad171934 /sys/sys/time.h
parentf29890082d20fdfdec8fcf38e4f2ecfaef527248 (diff)
downloadFreeBSD-src-688bdd6550c82df363b157ec5f3a89cbd5a21abb.zip
FreeBSD-src-688bdd6550c82df363b157ec5f3a89cbd5a21abb.tar.gz
Namespace: adjtime(), futimes(), futimesat(), lutimes(), and settimeofday()
are BSD extensions. Also include <sys/select.h> in user code, since this header is also supposed to define most of the symbols there.
Diffstat (limited to 'sys/sys/time.h')
-rw-r--r--sys/sys/time.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h
index 7512840..0185c31 100644
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -316,17 +316,25 @@ int tvtohz(struct timeval *tv);
#include <time.h>
#include <sys/cdefs.h>
+#include <sys/select.h>
__BEGIN_DECLS
+int setitimer(int, const struct itimerval *, struct itimerval *);
+int utimes(const char *, const struct timeval *);
+
+#if __BSD_VISIBLE
int adjtime(const struct timeval *, struct timeval *);
int futimes(int, const struct timeval *);
-int getitimer(int, struct itimerval *);
-int gettimeofday(struct timeval *, struct timezone *);
+int futimesat(int, const char *, const struct timeval [2]);
int lutimes(const char *, const struct timeval *);
-int setitimer(int, const struct itimerval *, struct itimerval *);
int settimeofday(const struct timeval *, const struct timezone *);
-int utimes(const char *, const struct timeval *);
-int futimesat(int, const char *, const struct timeval [2]);
+#endif
+
+#if __XSI_VISIBLE
+int getitimer(int, struct itimerval *);
+int gettimeofday(struct timeval *, struct timezone *);
+#endif
+
__END_DECLS
#endif /* !_KERNEL */
OpenPOWER on IntegriCloud