Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/cloudabi/cloudabi_util.h
Show All 27 Lines | |||||
#ifndef _CLOUDABI_UTIL_H_ | #ifndef _CLOUDABI_UTIL_H_ | ||||
#define _CLOUDABI_UTIL_H_ | #define _CLOUDABI_UTIL_H_ | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <contrib/cloudabi/cloudabi_types_common.h> | #include <contrib/cloudabi/cloudabi_types_common.h> | ||||
struct file; | struct file; | ||||
struct sysentvec; | |||||
struct thread; | struct thread; | ||||
struct timespec; | struct timespec; | ||||
/* Fetches the time value of a clock. */ | /* Fetches the time value of a clock. */ | ||||
int cloudabi_clock_time_get(struct thread *, cloudabi_clockid_t, | int cloudabi_clock_time_get(struct thread *, cloudabi_clockid_t, | ||||
cloudabi_timestamp_t *); | cloudabi_timestamp_t *); | ||||
/* Converts a FreeBSD errno to a CloudABI errno. */ | /* Converts a FreeBSD errno to a CloudABI errno. */ | ||||
Show All 26 Lines | int cloudabi_futex_condvar_wait(struct thread *, cloudabi_condvar_t *, | ||||
cloudabi_scope_t, cloudabi_lock_t *, cloudabi_scope_t, cloudabi_clockid_t, | cloudabi_scope_t, cloudabi_lock_t *, cloudabi_scope_t, cloudabi_clockid_t, | ||||
cloudabi_timestamp_t, cloudabi_timestamp_t); | cloudabi_timestamp_t, cloudabi_timestamp_t); | ||||
int cloudabi_futex_lock_rdlock(struct thread *, cloudabi_lock_t *, | int cloudabi_futex_lock_rdlock(struct thread *, cloudabi_lock_t *, | ||||
cloudabi_scope_t, cloudabi_clockid_t, cloudabi_timestamp_t, | cloudabi_scope_t, cloudabi_clockid_t, cloudabi_timestamp_t, | ||||
cloudabi_timestamp_t); | cloudabi_timestamp_t); | ||||
int cloudabi_futex_lock_wrlock(struct thread *, cloudabi_lock_t *, | int cloudabi_futex_lock_wrlock(struct thread *, cloudabi_lock_t *, | ||||
cloudabi_scope_t, cloudabi_clockid_t, cloudabi_timestamp_t, | cloudabi_scope_t, cloudabi_clockid_t, cloudabi_timestamp_t, | ||||
cloudabi_timestamp_t); | cloudabi_timestamp_t); | ||||
/* vDSO setup and teardown. */ | |||||
void cloudabi_vdso_init(struct sysentvec *, char *, char *); | |||||
void cloudabi_vdso_destroy(struct sysentvec *); | |||||
#endif | #endif |