|
XenevaOS
|
#include <time.h>#include <stdint.h>#include <string.h>#include <stdlib.h>#include <_xeneva.h>#include <sys/_ketime.h>#include <pthread.h>
Functions | |
| size_t | dlmalloc_usable_size (void *ptr) |
| size_t | _msize (void *ptr) |
| size_t | malloc_usable_size (void *ptr) |
| int | clock_gettime (int clock_id, struct timespec *ts) |
| struct tm * | gmtime (const time_t *t) |
| struct tm * | gmtime_r (const time_t *t, struct tm *out) |
| struct tm * | localtime (const time_t *t) |
| struct tm * | localtime_r (const time_t *t, struct tm *out) |
| time_t | time (time_t *t) |
| double | difftime (time_t a, time_t b) |
| int | pthread_cond_init (pthread_cond_t *c, const pthread_condattr_t *a) |
| int | pthread_cond_destroy (pthread_cond_t *c) |
| int | pthread_cond_signal (pthread_cond_t *c) |
| int | pthread_cond_broadcast (pthread_cond_t *c) |
| int | pthread_cond_wait (pthread_cond_t *c, int volatile *m) |
| int | pthread_cond_timedwait (pthread_cond_t *c, int volatile *m, const struct timespec *ts) |
| size_t _msize | ( | void * | ptr | ) |
| int clock_gettime | ( | int | clock_id, |
| struct timespec * | ts | ||
| ) |
| size_t dlmalloc_usable_size | ( | void * | ptr | ) |
Port glue for QuickJS on XenevaOS (single-threaded).
libc bits quickjs.c needs that XEClib does not provide, following the original os.o semantics (msize via dlmalloc, no-op pthread cond vars, UTC local time) but completing them so the port builds from source:
| size_t malloc_usable_size | ( | void * | ptr | ) |
| int pthread_cond_broadcast | ( | pthread_cond_t * | c | ) |
| int pthread_cond_destroy | ( | pthread_cond_t * | c | ) |
| int pthread_cond_init | ( | pthread_cond_t * | c, |
| const pthread_condattr_t * | a | ||
| ) |
| int pthread_cond_signal | ( | pthread_cond_t * | c | ) |
| int pthread_cond_timedwait | ( | pthread_cond_t * | c, |
| int volatile * | m, | ||
| const struct timespec * | ts | ||
| ) |
| int pthread_cond_wait | ( | pthread_cond_t * | c, |
| int volatile * | m | ||
| ) |