xref: /openbsd-src/lib/libc/hidden/time.h (revision d82e6535c6efd8305182f77041b2246ccfae1196)
1*d82e6535Spirofti /*	$OpenBSD: time.h,v 1.7 2020/07/06 13:33:06 pirofti Exp $	*/
215a0f535Sguenther /*
315a0f535Sguenther  * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
415a0f535Sguenther  *
515a0f535Sguenther  * Permission to use, copy, modify, and distribute this software for any
615a0f535Sguenther  * purpose with or without fee is hereby granted, provided that the above
715a0f535Sguenther  * copyright notice and this permission notice appear in all copies.
815a0f535Sguenther  *
915a0f535Sguenther  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1015a0f535Sguenther  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1115a0f535Sguenther  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1215a0f535Sguenther  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1315a0f535Sguenther  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1415a0f535Sguenther  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1515a0f535Sguenther  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1615a0f535Sguenther  */
1715a0f535Sguenther 
1815a0f535Sguenther #ifndef _LIBC_TIME_H_
1915a0f535Sguenther #define	_LIBC_TIME_H_
2015a0f535Sguenther 
2115a0f535Sguenther #include_next <time.h>
2215a0f535Sguenther 
2314437dc7Sguenther #if 0
24d17652bcSguenther extern PROTO_NORMAL(tzname);
2514437dc7Sguenther #endif
26d17652bcSguenther 
27d17652bcSguenther PROTO_NORMAL(asctime);
28d17652bcSguenther PROTO_NORMAL(asctime_r);
29d17652bcSguenther PROTO_STD_DEPRECATED(clock);
30d17652bcSguenther PROTO_DEPRECATED(clock_getcpuclockid);
3115a0f535Sguenther PROTO_NORMAL(clock_getres);
32*d82e6535Spirofti PROTO_WRAP(clock_gettime);
3315a0f535Sguenther PROTO_NORMAL(clock_settime);
34d17652bcSguenther PROTO_STD_DEPRECATED(ctime);
35d17652bcSguenther PROTO_DEPRECATED(ctime_r);
36d17652bcSguenther PROTO_STD_DEPRECATED(difftime);
37d17652bcSguenther PROTO_NORMAL(gmtime);
38d17652bcSguenther PROTO_NORMAL(gmtime_r);
39d17652bcSguenther PROTO_NORMAL(localtime);
40d17652bcSguenther PROTO_NORMAL(localtime_r);
41d17652bcSguenther PROTO_NORMAL(mktime);
42fe38b55cSguenther PROTO_CANCEL(nanosleep);
43d17652bcSguenther PROTO_NORMAL(strftime);
443a628b46Sschwarze PROTO_DEPRECATED(strftime_l);
45d17652bcSguenther PROTO_NORMAL(strptime);
46d17652bcSguenther PROTO_NORMAL(time);
47d17652bcSguenther PROTO_DEPRECATED(timegm);
48d17652bcSguenther PROTO_DEPRECATED(timelocal);
49d17652bcSguenther PROTO_DEPRECATED(timeoff);
506151004eSguenther PROTO_STD_DEPRECATED(timespec_get);
51d17652bcSguenther PROTO_NORMAL(tzset);
52d17652bcSguenther PROTO_DEPRECATED(tzsetwall);
5315a0f535Sguenther 
5415a0f535Sguenther #endif /* !_LIBC_TIME_H_ */
55