@@ -374,12 +374,27 @@ extern "C" {
374374 pub fn signal ( signum : c_int , handler : sighandler_t ) -> sighandler_t ;
375375 pub fn raise ( signum : c_int ) -> c_int ;
376376
377+ pub fn clock ( ) -> clock_t ;
378+ pub fn ctime ( sourceTime : * const time_t ) -> * mut c_char ;
379+ pub fn difftime ( timeEnd : time_t , timeStart : time_t ) -> c_double ;
377380 #[ link_name = "_gmtime64_s" ]
378381 pub fn gmtime_s ( destTime : * mut tm , srcTime : * const time_t ) -> c_int ;
382+ #[ link_name = "_get_daylight" ]
383+ pub fn get_daylight ( hours : * mut c_int ) -> errno_t ;
384+ #[ link_name = "_get_dstbias" ]
385+ pub fn get_dstbias ( seconds : * mut c_long ) -> errno_t ;
386+ #[ link_name = "_get_timezone" ]
387+ pub fn get_timezone ( seconds : * mut c_long ) -> errno_t ;
388+ #[ link_name = "_get_tzname" ]
389+ pub fn get_tzname ( p_return_value : * mut size_t , time_zone_name : * mut c_char , size_in_bytes : size_t , index : c_int ) -> errno_t ;
379390 #[ link_name = "_localtime64_s" ]
380391 pub fn localtime_s ( tmDest : * mut tm , sourceTime : * const time_t ) -> crate :: errno_t ;
381392 #[ link_name = "_time64" ]
382393 pub fn time ( destTime : * mut time_t ) -> time_t ;
394+ #[ link_name = "_tzset" ]
395+ pub fn tzset ( ) ;
396+ #[ link_name = "_wctime" ]
397+ pub fn wctime ( sourceTime : * const time_t ) -> * mut wchar_t ;
383398 #[ link_name = "_chmod" ]
384399 pub fn chmod ( path : * const c_char , mode : c_int ) -> c_int ;
385400 #[ link_name = "_wchmod" ]
0 commit comments