summaryrefslogtreecommitdiff
path: root/lib/libc/hidden
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-12 14:35:41 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-12 14:35:41 +0000
commitb07c97c87be5939f100e53cd34f6fa62eaaaf71e (patch)
treef6bd4fcf637650a0335d25eb1e65a995a39240e0 /lib/libc/hidden
parentcbc615853ba21e735aa71aff468b9f0f8dd2843c (diff)
Wrap <time.h> so that internal calls go direct and symbols not in C99 are weak
Add prototypes to localtime.c for offtime(), time2posix(), posix2time() to reduce noise with -Wmissing-prototypes Eliminate unnecessary #includes
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r--lib/libc/hidden/time.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/libc/hidden/time.h b/lib/libc/hidden/time.h
index f28504cd9e2..188f40c8a60 100644
--- a/lib/libc/hidden/time.h
+++ b/lib/libc/hidden/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.1 2015/09/11 15:38:33 guenther Exp $ */
+/* $OpenBSD: time.h,v 1.2 2015/09/12 14:35:40 guenther Exp $ */
/*
* Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
*
@@ -20,8 +20,31 @@
#include_next <time.h>
+extern PROTO_NORMAL(tzname);
+
+PROTO_NORMAL(asctime);
+PROTO_NORMAL(asctime_r);
+PROTO_STD_DEPRECATED(clock);
+PROTO_DEPRECATED(clock_getcpuclockid);
PROTO_NORMAL(clock_getres);
PROTO_NORMAL(clock_gettime);
PROTO_NORMAL(clock_settime);
+PROTO_STD_DEPRECATED(ctime);
+PROTO_DEPRECATED(ctime_r);
+PROTO_STD_DEPRECATED(difftime);
+PROTO_NORMAL(gmtime);
+PROTO_NORMAL(gmtime_r);
+PROTO_NORMAL(localtime);
+PROTO_NORMAL(localtime_r);
+PROTO_NORMAL(mktime);
+/*PROTO_CANCEL(nanosleep);*/
+PROTO_NORMAL(strftime);
+PROTO_NORMAL(strptime);
+PROTO_NORMAL(time);
+PROTO_DEPRECATED(timegm);
+PROTO_DEPRECATED(timelocal);
+PROTO_DEPRECATED(timeoff);
+PROTO_NORMAL(tzset);
+PROTO_DEPRECATED(tzsetwall);
#endif /* !_LIBC_TIME_H_ */