From owner-svn-src-head@FreeBSD.ORG Sat Mar 14 19:15:13 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E55FA1065676; Sat, 14 Mar 2009 19:15:13 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D3E368FC29; Sat, 14 Mar 2009 19:15:13 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2EJFDpN005629; Sat, 14 Mar 2009 19:15:13 GMT (envelope-from das@svn.freebsd.org) Received: (from das@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2EJFDp2005628; Sat, 14 Mar 2009 19:15:13 GMT (envelope-from das@svn.freebsd.org) Message-Id: <200903141915.n2EJFDp2005628@svn.freebsd.org> From: David Schultz Date: Sat, 14 Mar 2009 19:15:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189821 - head/sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2009 19:15:14 -0000 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 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 #include +#include __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 */