Annotation of os232sdk/c386/include/time.h, revision 1.1

1.1     ! root        1: /***
        !             2: *time.h - definitions/declarations for time routines
        !             3: *
        !             4: *      Copyright (c) 1985-1990, 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: 
        !            15: /* define the implementation defined time type */
        !            16: 
        !            17: #ifndef _TIME_T_DEFINED
        !            18: typedef long time_t;           /* time value */
        !            19: #define _TIME_T_DEFINED        /* avoid multiple def's of time_t */
        !            20: #endif
        !            21: 
        !            22: #ifndef _CLOCK_T_DEFINED
        !            23: typedef long clock_t;
        !            24: #define _CLOCK_T_DEFINED
        !            25: #endif
        !            26: 
        !            27: #ifndef _SIZE_T_DEFINED
        !            28: typedef unsigned int size_t;
        !            29: #define _SIZE_T_DEFINED
        !            30: #endif
        !            31: 
        !            32: #ifndef _TM_DEFINED
        !            33: struct tm {
        !            34:        int tm_sec;     /* seconds after the minute - [0,59] */
        !            35:        int tm_min;     /* minutes after the hour - [0,59] */
        !            36:        int tm_hour;    /* hours since midnight - [0,23] */
        !            37:        int tm_mday;    /* day of the month - [1,31] */
        !            38:        int tm_mon;     /* months since January - [0,11] */
        !            39:        int tm_year;    /* years since 1900 */
        !            40:        int tm_wday;    /* days since Sunday - [0,6] */
        !            41:        int tm_yday;    /* days since January 1 - [0,365] */
        !            42:        int tm_isdst;   /* daylight savings time flag */
        !            43:        };
        !            44: #define _TM_DEFINED
        !            45: #endif
        !            46: 
        !            47: #define CLK_TCK 1000
        !            48: 
        !            49: 
        !            50: /* extern declarations for the global variables used by the ctime family of
        !            51:  * routines.
        !            52:  */
        !            53: 
        !            54: extern int _cdecl daylight;    /* non-zero if daylight savings time is used */
        !            55: extern long _cdecl timezone;   /* difference in seconds between GMT and local time */
        !            56: extern char * _cdecl tzname[2]; /* standard/daylight savings time zone names */
        !            57: 
        !            58: 
        !            59: /* function prototypes */
        !            60: 
        !            61: char * _cdecl asctime(const struct tm *);
        !            62: char * _cdecl ctime(const time_t *);
        !            63: clock_t _cdecl clock(void);
        !            64: double _cdecl difftime(time_t, time_t);
        !            65: struct tm * _cdecl gmtime(const time_t *);
        !            66: struct tm * _cdecl localtime(const time_t *);
        !            67: time_t _cdecl mktime(struct tm *);
        !            68: size_t _cdecl strftime(char *, size_t, const char *, const struct tm *);
        !            69: char * _cdecl _strdate(char *);
        !            70: char * _cdecl _strtime(char *);
        !            71: time_t _cdecl time(time_t *);
        !            72: void _cdecl tzset(void);

unix.superglobalmegacorp.com

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