Rev 6099 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6099 | Rev 6536 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | #ifndef _TIME_H_ |
7 | #ifndef _TIME_H_ |
Line 8... | Line 8... | ||
8 | #define _TIME_H_ |
8 | #define _TIME_H_ |
- | 9 | ||
9 | 10 | #include "_ansi.h" |
|
Line 10... | Line 11... | ||
10 | #include "_ansi.h" |
11 | #include |
11 | #include |
12 | #include |
12 | 13 | ||
Line 74... | Line 75... | ||
74 | 75 | ||
75 | #ifdef __cplusplus |
76 | #ifdef __cplusplus |
76 | extern "C" { |
77 | extern "C" { |
Line 77... | Line 78... | ||
77 | #endif |
78 | #endif |
78 | 79 | ||
79 | #ifndef __STRICT_ANSI__ |
80 | #if __XSI_VISIBLE |
80 | char *_EXFUN(strptime, (const char *__restrict, |
81 | char *_EXFUN(strptime, (const char *__restrict, |
- | 82 | const char *__restrict, |
|
- | 83 | struct tm *__restrict)); |
|
81 | const char *__restrict, |
84 | #endif |
- | 85 | #if __POSIX_VISIBLE |
|
82 | struct tm *__restrict)); |
86 | _VOID _EXFUN(tzset, (_VOID)); |
Line 83... | Line 87... | ||
83 | _VOID _EXFUN(tzset, (_VOID)); |
87 | #endif |
84 | _VOID _EXFUN(_tzset_r, (struct _reent *)); |
88 | _VOID _EXFUN(_tzset_r, (struct _reent *)); |
85 | 89 | ||
Line 104... | Line 108... | ||
104 | __tzinfo_type *_EXFUN (__gettzinfo, (_VOID)); |
108 | __tzinfo_type *_EXFUN (__gettzinfo, (_VOID)); |
Line 105... | Line 109... | ||
105 | 109 | ||
Line 106... | Line 110... | ||
106 | /* getdate functions */ |
110 | /* getdate functions */ |
- | 111 | ||
107 | 112 | #ifdef HAVE_GETDATE |
|
108 | #ifdef HAVE_GETDATE |
113 | #if __XSI_VISIBLE >= 4 |
109 | #ifndef _REENT_ONLY |
114 | #ifndef _REENT_ONLY |
Line 110... | Line 115... | ||
110 | #define getdate_err (*__getdate_err()) |
115 | #define getdate_err (*__getdate_err()) |
Line 119... | Line 124... | ||
119 | 5 an error is encountered while reading the template file, |
124 | 5 an error is encountered while reading the template file, |
120 | 6 memory allication failed (not enough memory available), |
125 | 6 memory allication failed (not enough memory available), |
121 | 7 there is no line in the template that matches the input, |
126 | 7 there is no line in the template that matches the input, |
122 | 8 invalid input specification */ |
127 | 8 invalid input specification */ |
123 | #endif /* !_REENT_ONLY */ |
128 | #endif /* !_REENT_ONLY */ |
- | 129 | #endif /* __XSI_VISIBLE >= 4 */ |
|
Line -... | Line 130... | ||
- | 130 | ||
124 | 131 | #if __GNU_VISIBLE |
|
125 | /* getdate_r returns the error code as above */ |
132 | /* getdate_r returns the error code as above */ |
- | 133 | int _EXFUN(getdate_r, (const char *, struct tm *)); |
|
126 | int _EXFUN(getdate_r, (const char *, struct tm *)); |
134 | #endif /* __GNU_VISIBLE */ |
Line 127... | Line 135... | ||
127 | #endif /* HAVE_GETDATE */ |
135 | #endif /* HAVE_GETDATE */ |
- | 136 | ||
128 | 137 | /* defines for the opengroup specifications Derived from Issue 1 of the SVID. */ |
|
129 | /* defines for the opengroup specifications Derived from Issue 1 of the SVID. */ |
138 | #if __SVID_VISIBLE || __XSI_VISIBLE |
- | 139 | extern __IMPORT long _timezone; |
|
- | 140 | extern __IMPORT int _daylight; |
|
130 | extern __IMPORT long _timezone; |
141 | #endif |
Line 131... | Line 142... | ||
131 | extern __IMPORT int _daylight; |
142 | #if __POSIX_VISIBLE |
132 | extern __IMPORT char *_tzname[2]; |
143 | extern __IMPORT char *_tzname[2]; |
133 | 144 | ||
134 | /* POSIX defines the external tzname being defined in time.h */ |
145 | /* POSIX defines the external tzname being defined in time.h */ |
135 | #ifndef tzname |
146 | #ifndef tzname |
Line 136... | Line 147... | ||
136 | #define tzname _tzname |
147 | #define tzname _tzname |
137 | #endif |
148 | #endif |
138 | #endif /* !__STRICT_ANSI__ */ |
149 | #endif /* __POSIX_VISIBLE */ |