mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
LibC, LibM: Add functions needed to compile python3
This commit is contained in:
parent
3042c942d8
commit
e7affa24dc
Notes:
sideshowbarker
2024-07-19 11:15:36 +09:00
Author: https://github.com/lnzero1dev
Commit: e7affa24dc
Pull-request: https://github.com/SerenityOS/serenity/pull/763
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/bugaevc
7 changed files with 136 additions and 1 deletions
|
@ -48,11 +48,13 @@ typedef int clockid_t;
|
|||
|
||||
int clock_gettime(clockid_t, struct timespec*);
|
||||
int clock_nanosleep(clockid_t, int flags, const struct timespec* requested_sleep, struct timespec* remaining_sleep);
|
||||
int clock_getres(clockid_t, struct timespec* result);
|
||||
struct tm* gmtime_r(const time_t* timep, struct tm* result);
|
||||
struct tm* localtime_r(const time_t* timep, struct tm* result);
|
||||
|
||||
double difftime(time_t, time_t);
|
||||
size_t strftime(char* s, size_t max, const char* format, const struct tm*);
|
||||
|
||||
#define difftime(t1, t0) (double)(t1 - t0)
|
||||
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue