8446 uts: pci_check_bios() should check for BIOS
[unleashed.git] / include / iso / time_iso.h
blobc94f8ad8360b3929ce9a5c629c3593c48e9950d7
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
26 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
27 * Copyright 2014 PALO, Richard.
29 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
34 * An application should not include this header directly. Instead it
35 * should be included only through the inclusion of other Sun headers.
37 * The contents of this header is limited to identifiers specified in the
38 * C Standard. Any new identifiers specified in future amendments to the
39 * C Standard must be placed in this header. If these new identifiers
40 * are required to also be in the C++ Standard "std" namespace, then for
41 * anything other than macro definitions, corresponding "using" directives
42 * must also be added to <time.h.h>.
45 #ifndef _ISO_TIME_ISO_H
46 #define _ISO_TIME_ISO_H
48 #include <sys/feature_tests.h>
49 #include <sys/null.h>
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
55 #if __cplusplus >= 199711L
56 namespace std {
57 #endif
59 #if !defined(_SIZE_T) || __cplusplus >= 199711L
60 #define _SIZE_T
61 #if defined(_LP64) || defined(_I32LPx)
62 typedef unsigned long size_t; /* size of something in bytes */
63 #else
64 typedef unsigned size_t; /* (historical version) */
65 #endif
66 #endif /* !_SIZE_T */
68 #if !defined(_CLOCK_T) || __cplusplus >= 199711L
69 #define _CLOCK_T
70 typedef long clock_t;
71 #endif /* !_CLOCK_T */
73 #if !defined(_TIME_T) || __cplusplus >= 199711L
74 #define _TIME_T
75 typedef long time_t;
76 #endif /* !_TIME_T */
78 #define CLOCKS_PER_SEC 1000000L
80 struct tm { /* see ctime(3) */
81 int tm_sec;
82 int tm_min;
83 int tm_hour;
84 int tm_mday;
85 int tm_mon;
86 int tm_year;
87 int tm_wday;
88 int tm_yday;
89 int tm_isdst;
93 extern char *asctime(const struct tm *);
94 extern clock_t clock(void);
95 extern char *ctime(const time_t *);
96 extern double difftime(time_t, time_t);
97 extern struct tm *gmtime(const time_t *);
98 extern struct tm *localtime(const time_t *);
99 extern time_t mktime(struct tm *);
100 extern time_t time(time_t *);
101 extern size_t strftime(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD,
102 const struct tm *_RESTRICT_KYWD);
104 #if __cplusplus >= 199711L
106 #endif /* end of namespace std */
108 #ifdef __cplusplus
110 #endif
112 #endif /* _ISO_TIME_ISO_H */