time.h (28021) | time.h (34925) |
---|---|
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> | 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> |
|
45 46#ifndef _ANSI_SOURCE 47/* 48 * Frequency of the clock ticks reported by times(). Deprecated - use 49 * sysconf(_SC_CLK_TCK) instead. 50 */ 51#define CLK_TCK _BSD_CLK_TCK_ 52#endif --- 15 unchanged lines hidden (view full) --- 68#undef _BSD_TIME_T_ 69#endif 70 71#ifdef _BSD_SIZE_T_ 72typedef _BSD_SIZE_T_ size_t; 73#undef _BSD_SIZE_T_ 74#endif 75 | 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) |
77/* 78 * New in POSIX 1003.1b-1993. 79 */ 80#ifdef _BSD_CLOCKID_T_ 81typedef _BSD_CLOCKID_T_ clockid_t; 82#undef _BSD_CLOCKID_T_ 83#endif 84 --- 50 unchanged lines hidden (view full) --- 135#endif /* not ANSI */ 136 137#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 138const char *strptime __P((const char *, const char *, struct tm *)); 139char *timezone __P((int, int)); 140void tzsetwall __P((void)); 141time_t timelocal __P((struct tm * const)); 142time_t timegm __P((struct tm * const)); | 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 */ |
|
143 | 148 |
149#if !defined(_ANSI_SOURCE) && defined(_P1003_1B_VISIBLE_HISTORICALLY) |
|
144/* Introduced in POSIX 1003.1b-1993, not part of 1003.1-1990. */ 145int clock_getres __P((clockid_t, struct timespec *)); 146int clock_gettime __P((clockid_t, struct timespec *)); 147int clock_settime __P((clockid_t, const struct timespec *)); 148int nanosleep __P((const struct timespec *, struct timespec *)); 149#endif /* neither ANSI nor POSIX */ 150__END_DECLS 151 152#endif /* !_TIME_H_ */ | 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_ */ |