Annotation of mstools/h/time.h, revision 1.1

1.1     ! root        1: /***
        !             2: *time.h - definitions/declarations for time routines
        !             3: *
        !             4: *      Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
        !             5: *
        !             6: *Purpose:
        !             7: *      This file has declarations of time routines and defines
        !             8: *      the structure returned by the localtime and gmtime routines and
        !             9: *      used by asctime.
        !            10: *      [ANSI/System V]
        !            11: *
        !            12: ****/
        !            13: 
        !            14: #ifndef _INC_TIME
        !            15: 
        !            16: #ifdef __cplusplus
        !            17: extern "C" {
        !            18: #endif
        !            19: 
        !            20: 
        !            21: #if (_MSC_VER <= 600)
        !            22: #define __cdecl _cdecl
        !            23: #endif
        !            24: 
        !            25: /* define the implementation defined time type */
        !            26: 
        !            27: #ifndef _TIME_T_DEFINED
        !            28: typedef long time_t;           /* time value */
        !            29: #define _TIME_T_DEFINED        /* avoid multiple def's of time_t */
        !            30: #endif
        !            31: 
        !            32: #ifndef _CLOCK_T_DEFINED
        !            33: typedef long clock_t;
        !            34: #define _CLOCK_T_DEFINED
        !            35: #endif
        !            36: 
        !            37: #ifndef _SIZE_T_DEFINED
        !            38: typedef unsigned int size_t;
        !            39: #define _SIZE_T_DEFINED
        !            40: #endif
        !            41: 
        !            42: 
        !            43: /* define NULL pointer value */
        !            44: 
        !            45: #ifndef NULL
        !            46: #ifdef __cplusplus
        !            47: #define NULL   0
        !            48: #else
        !            49: #define NULL   ((void *)0)
        !            50: #endif
        !            51: #endif
        !            52: 
        !            53: 
        !            54: #ifndef _TM_DEFINED
        !            55: struct tm {
        !            56:        int tm_sec;     /* seconds after the minute - [0,59] */
        !            57:        int tm_min;     /* minutes after the hour - [0,59] */
        !            58:        int tm_hour;    /* hours since midnight - [0,23] */
        !            59:        int tm_mday;    /* day of the month - [1,31] */
        !            60:        int tm_mon;     /* months since January - [0,11] */
        !            61:        int tm_year;    /* years since 1900 */
        !            62:        int tm_wday;    /* days since Sunday - [0,6] */
        !            63:        int tm_yday;    /* days since January 1 - [0,365] */
        !            64:        int tm_isdst;   /* daylight savings time flag */
        !            65:        };
        !            66: #define _TM_DEFINED
        !            67: #endif
        !            68: 
        !            69: 
        !            70: /* clock ticks macro - ANSI version */
        !            71: 
        !            72: #define CLOCKS_PER_SEC 1000
        !            73: 
        !            74: 
        !            75: /* extern declarations for the global variables used by the ctime family of
        !            76:  * routines.
        !            77:  */
        !            78: 
        !            79: /* non-zero if daylight savings time is used */
        !            80: extern int _daylight;
        !            81: 
        !            82: /* difference in seconds between GMT and local time */
        !            83: extern long _timezone;
        !            84: 
        !            85: /* standard/daylight savings time zone names */
        !            86: extern char * _tzname[2];
        !            87: 
        !            88: 
        !            89: /* function prototypes */
        !            90: 
        !            91: char * asctime(const struct tm *);
        !            92: char * ctime(const time_t *);
        !            93: clock_t clock(void);
        !            94: double difftime(time_t, time_t);
        !            95: struct tm * gmtime(const time_t *);
        !            96: struct tm * localtime(const time_t *);
        !            97: time_t mktime(struct tm *);
        !            98: size_t strftime(char *, size_t, const char *, const struct tm *);
        !            99: char * _strdate(char *);
        !           100: char * _strtime(char *);
        !           101: time_t time(time_t *);
        !           102: void _tzset(void);
        !           103: unsigned _getsystime(struct tm *);
        !           104: unsigned _setsystime(struct tm *, unsigned);
        !           105: 
        !           106: 
        !           107: #if !__STDC__
        !           108: /* Non-ANSI names for compatibility */
        !           109: 
        !           110: #define CLK_TCK  CLOCKS_PER_SEC
        !           111: 
        !           112: #define daylight _daylight
        !           113: #define timezone _timezone
        !           114: #define tzname  _tzname
        !           115: 
        !           116: #define tzset   _tzset
        !           117: 
        !           118: #endif /* __STDC__ */
        !           119: 
        !           120: #ifdef __cplusplus
        !           121: }
        !           122: #endif
        !           123: 
        !           124: #define _INC_TIME
        !           125: #endif /* _INC_TIME */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.