Deleted Added
full compact
time.h (235785) time.h (254398)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)time.h 8.3 (Berkeley) 1/21/94
35 */
36
37/*
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 21 unchanged lines hidden (view full) ---

30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)time.h 8.3 (Berkeley) 1/21/94
35 */
36
37/*
38 * $FreeBSD: stable/9/include/time.h 235785 2012-05-22 14:40:39Z theraven $
38 * $FreeBSD: stable/9/include/time.h 254398 2013-08-16 06:40:12Z davidxu $
39 */
40
41#ifndef _TIME_H_
42#define _TIME_H_
43
44#include <sys/cdefs.h>
45#include <sys/_null.h>
46#include <sys/_types.h>

--- 36 unchanged lines hidden (view full) ---

83#ifndef _TIMER_T_DECLARED
84typedef __timer_t timer_t;
85#define _TIMER_T_DECLARED
86#endif
87
88#include <sys/timespec.h>
89#endif /* __POSIX_VISIBLE >= 199309 */
90
39 */
40
41#ifndef _TIME_H_
42#define _TIME_H_
43
44#include <sys/cdefs.h>
45#include <sys/_null.h>
46#include <sys/_types.h>

--- 36 unchanged lines hidden (view full) ---

83#ifndef _TIMER_T_DECLARED
84typedef __timer_t timer_t;
85#define _TIMER_T_DECLARED
86#endif
87
88#include <sys/timespec.h>
89#endif /* __POSIX_VISIBLE >= 199309 */
90
91#if __POSIX_VISIBLE >= 200112
92#ifndef _PID_T_DECLARED
93typedef __pid_t pid_t;
94#define _PID_T_DECLARED
95#endif
96#endif
97
91/* These macros are also in sys/time.h. */
92#if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112
93#define CLOCK_REALTIME 0
94#ifdef __BSD_VISIBLE
95#define CLOCK_VIRTUAL 1
96#define CLOCK_PROF 2
97#endif
98#define CLOCK_MONOTONIC 4

--- 61 unchanged lines hidden (view full) ---

160#if __POSIX_VISIBLE >= 199309
161int clock_getres(clockid_t, struct timespec *);
162int clock_gettime(clockid_t, struct timespec *);
163int clock_settime(clockid_t, const struct timespec *);
164/* XXX missing: clock_nanosleep() */
165int nanosleep(const struct timespec *, struct timespec *);
166#endif /* __POSIX_VISIBLE >= 199309 */
167
98/* These macros are also in sys/time.h. */
99#if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112
100#define CLOCK_REALTIME 0
101#ifdef __BSD_VISIBLE
102#define CLOCK_VIRTUAL 1
103#define CLOCK_PROF 2
104#endif
105#define CLOCK_MONOTONIC 4

--- 61 unchanged lines hidden (view full) ---

167#if __POSIX_VISIBLE >= 199309
168int clock_getres(clockid_t, struct timespec *);
169int clock_gettime(clockid_t, struct timespec *);
170int clock_settime(clockid_t, const struct timespec *);
171/* XXX missing: clock_nanosleep() */
172int nanosleep(const struct timespec *, struct timespec *);
173#endif /* __POSIX_VISIBLE >= 199309 */
174
175#if __POSIX_VISIBLE >= 200112
176int clock_getcpuclockid(pid_t, clockid_t *);
177#endif
178
168#if __POSIX_VISIBLE >= 199506
169char *asctime_r(const struct tm *, char *);
170char *ctime_r(const time_t *, char *);
171struct tm *gmtime_r(const time_t *, struct tm *);
172struct tm *localtime_r(const time_t *, struct tm *);
173#endif
174
175#if __XSI_VISIBLE

--- 17 unchanged lines hidden ---
179#if __POSIX_VISIBLE >= 199506
180char *asctime_r(const struct tm *, char *);
181char *ctime_r(const time_t *, char *);
182struct tm *gmtime_r(const time_t *, struct tm *);
183struct tm *localtime_r(const time_t *, struct tm *);
184#endif
185
186#if __XSI_VISIBLE

--- 17 unchanged lines hidden ---