Author: das
Date: Sat Mar 14 19:15:13 2009
New Revision: 189821
URL: http://svn.freebsd.org/changeset/base/189821

Log:
  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.

Modified:
  head/sys/sys/time.h

Modified: head/sys/sys/time.h
==============================================================================
--- head/sys/sys/time.h Sat Mar 14 19:13:30 2009        (r189820)
+++ head/sys/sys/time.h Sat Mar 14 19:15:13 2009        (r189821)
@@ -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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to