Deleted Added
full compact
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.

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

37 *
38 * @(#)time.h 8.3 (Berkeley) 1/21/94
39 */
40
41#ifndef _TIME_H_
42#define _TIME_H_
43
44#include <machine/ansi.h>
45#include <sys/_posix.h>
46
47#ifndef _ANSI_SOURCE
48/*
49 * Frequency of the clock ticks reported by times(). Deprecated - use
50 * sysconf(_SC_CLK_TCK) instead.
51 */
52#define CLK_TCK _BSD_CLK_TCK_
53#endif

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

69#undef _BSD_TIME_T_
70#endif
71
72#ifdef _BSD_SIZE_T_
73typedef _BSD_SIZE_T_ size_t;
74#undef _BSD_SIZE_T_
75#endif
76
76#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
77/* XXX I'm not sure if _ANSI_SOURCE is playing properly
78 * with the setups in _posix.h:
79 */
80#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY)
81/*
82 * New in POSIX 1003.1b-1993.
83 */
84#ifdef _BSD_CLOCKID_T_
85typedef _BSD_CLOCKID_T_ clockid_t;
86#undef _BSD_CLOCKID_T_
87#endif
88

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

139#endif /* not ANSI */
140
141#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
142const char *strptime __P((const char *, const char *, struct tm *));
143char *timezone __P((int, int));
144void tzsetwall __P((void));
145time_t timelocal __P((struct tm * const));
146time_t timegm __P((struct tm * const));
147#endif /* neither ANSI nor POSIX */
148
149#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY)
150/* Introduced in POSIX 1003.1b-1993, not part of 1003.1-1990. */
151int clock_getres __P((clockid_t, struct timespec *));
152int clock_gettime __P((clockid_t, struct timespec *));
153int clock_settime __P((clockid_t, const struct timespec *));
154int nanosleep __P((const struct timespec *, struct timespec *));
155#endif /* neither ANSI nor POSIX */
156__END_DECLS
157
158#endif /* !_TIME_H_ */