Changeset 10005 for trunk/src/msvcrt/time.c
- Timestamp:
- Apr 10, 2003, 12:28:07 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msvcrt/time.c
r9633 r10005 23 23 #ifdef __WIN32OS2__ 24 24 #include <emxheader.h> 25 #include <sys/times.h> 25 #include <unistd.h> 26 #include <time.h> 27 #include <sys\times.h> 26 28 #else 27 29 #include "config.h" … … 63 65 { 64 66 MSVCRT_time_t res; 67 dprintf(("MSVCRT: mktime")); 65 68 struct tm tm; 66 69 … … 89 92 * _strdate (MSVCRT.@) 90 93 */ 91 char* _strdate(char* date)94 char* MSVCRT__strdate(char* date) 92 95 { 96 dprintf(("MSVCRT: _strdate")); 93 97 return msvcrt_get_current_time(date,"%m/%d/%y"); 94 98 } … … 97 101 * _strtime (MSVCRT.@) 98 102 */ 99 char* _strtime(char* date)103 char* MSVCRT__strtime(char* date) 100 104 { 105 dprintf(("MSVCRT: _strtime")); 101 106 return msvcrt_get_current_time(date,"%H:%M:%S"); 102 107 } … … 110 115 clock_t res; 111 116 112 times(&alltimes); 117 dprintf(("MSVCRT: clock")); 118 119 emx__times(&alltimes); 113 120 res = alltimes.tms_utime + alltimes.tms_stime + 114 121 alltimes.tms_cutime + alltimes.tms_cstime; … … 124 131 double MSVCRT_difftime(MSVCRT_time_t time1, MSVCRT_time_t time2) 125 132 { 133 dprintf(("MSVCRT: difftime")); 126 134 return (double)(time1 - time2); 127 135 } … … 133 141 { 134 142 MSVCRT_time_t curtime = time(NULL); 143 dprintf(("MSVCRT: time")); 135 144 return buf ? *buf = curtime : curtime; 136 145 } … … 140 149 */ 141 150 #ifdef __WIN32OS2__ 142 void MSVCRT_ ftime(struct _timeb *buf)151 void MSVCRT__ftime(struct _timeb *buf) 143 152 #else 144 153 void _ftime(struct _timeb *buf) 145 154 #endif 146 155 { 156 dprintf(("MSVCRT: _ftime %p",buf)); 147 157 buf->time = MSVCRT_time(NULL); 148 158 buf->millitm = 0; /* FIXME */ … … 150 160 buf->dstflag = 0; 151 161 } 162 163 /********************************************************************* 164 * _daylight (MSVCRT.@) 165 */ 166 int MSVCRT___daylight = 1; /* FIXME: assume daylight */ 167 168 /********************************************************************* 169 * __p_daylight (MSVCRT.@) 170 */ 171 void *MSVCRT___p__daylight(void) 172 { 173 return &MSVCRT___daylight; 174 }
Note:
See TracChangeset
for help on using the changeset viewer.