Mercurial > ecos
annotate packages/language/c/libc/current/include/sys/timeutil.h @ 66:bf00f99aec69 ecos-sw-2000-02-02
Merge from eCos master repository on 2000-02-02-19:16:44-GMT
| author | jlarmour |
|---|---|
| date | Wed, 02 Feb 2000 19:57:02 +0000 |
| parents | c38311975d4f |
| children |
| rev | line source |
|---|---|
| 2 | 1 #ifndef CYGONCE_LIBC_SYS_TIMEUTIL_H |
| 2 #define CYGONCE_LIBC_SYS_TIMEUTIL_H | |
| 3 //======================================================================== | |
| 4 // | |
| 5 // sys/timeutil.h | |
| 6 // | |
| 7 // ISO C date and time implementation support functions | |
| 8 // | |
| 9 //======================================================================== | |
| 10 //####COPYRIGHTBEGIN#### | |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
11 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
12 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
13 // The contents of this file are subject to the Red Hat eCos Public License |
|
66
bf00f99aec69
Merge from eCos master repository on 2000-02-02-19:16:44-GMT
jlarmour
parents:
64
diff
changeset
|
14 // Version 1.1 (the "License"); you may not use this file except in |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
15 // compliance with the License. You may obtain a copy of the License at |
|
66
bf00f99aec69
Merge from eCos master repository on 2000-02-02-19:16:44-GMT
jlarmour
parents:
64
diff
changeset
|
16 // http://www.redhat.com/ |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
17 // |
|
66
bf00f99aec69
Merge from eCos master repository on 2000-02-02-19:16:44-GMT
jlarmour
parents:
64
diff
changeset
|
18 // Software distributed under the License is distributed on an "AS IS" |
|
64
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
19 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
20 // License for the specific language governing rights and limitations under |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
21 // the License. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
22 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
23 // The Original Code is eCos - Embedded Configurable Operating System, |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
24 // released September 30, 1998. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
25 // |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
26 // The Initial Developer of the Original Code is Red Hat. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
27 // Portions created by Red Hat are |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
28 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
29 // All Rights Reserved. |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
30 // ------------------------------------------- |
|
c38311975d4f
Merge from eCos master repository on 2000-01-28-04:28:11-GMT
jlarmour
parents:
2
diff
changeset
|
31 // |
| 2 | 32 //####COPYRIGHTEND#### |
| 33 //======================================================================== | |
| 34 //#####DESCRIPTIONBEGIN#### | |
| 35 // | |
| 36 // Author(s): jlarmour | |
| 37 // Contributors: jlarmour | |
| 38 // Date: 1999-03-03 | |
| 39 // Purpose: Provide declarations for support functions used by the | |
| 40 // ISO C date and time implementation | |
| 41 // Description: | |
| 42 // Usage: #include <sys/timeutil.h> | |
| 43 // | |
| 44 //####DESCRIPTIONEND#### | |
| 45 // | |
| 46 //======================================================================== | |
| 47 | |
| 48 // INCLUDES | |
| 49 | |
| 50 #include <cyg/infra/cyg_type.h> // Common type definitions and support | |
| 51 | |
| 52 #ifdef __cplusplus | |
| 53 extern "C" { | |
| 54 #endif | |
| 55 | |
| 56 // GLOBALS | |
| 57 | |
| 58 // Strings of the days and month names | |
| 59 // FIXME: uncomment "const" when PR 19440 is fixed | |
| 60 extern /*const*/ char cyg_libc_time_day_name[7][10]; | |
| 61 extern const cyg_uint8 cyg_libc_time_day_name_len[7]; | |
| 62 extern /*const*/ char cyg_libc_time_month_name[12][10]; | |
| 63 extern const cyg_uint8 cyg_libc_time_month_name_len[12]; | |
| 64 | |
| 65 // number of days in each month, defined for normal and leap years | |
| 66 extern const cyg_uint8 cyg_libc_time_month_lengths[2][12]; | |
| 67 | |
| 68 | |
| 69 // FUNCTION PROTOTYPES | |
| 70 | |
| 71 // cyg_libc_time_normalize_structtm() will adjust the fields of a struct tm | |
| 72 // so that they are within the normal ranges expected. | |
| 73 // tm_wday, tm_yday, and tm_isdst are ignored | |
| 74 | |
| 75 extern void | |
| 76 cyg_libc_time_normalize_structtm( struct tm *__timeptr ); | |
| 77 | |
| 78 #ifdef __cplusplus | |
| 79 } // extern "C" | |
| 80 #endif | |
| 81 | |
| 82 #endif // CYGONCE_LIBC_SYS_TIMEUTIL_H multiple inclusion protection | |
| 83 | |
| 84 // EOF sys/timeutil.h |
