/* * SYSCALLS.H * * (c)Copyright 2015, Matthew Dillon, All Rights Reserved. See the COPYRIGHT * file at the base of the distribution. */ struct ReferenceStor; struct read_args; struct write_args; struct open_args; struct close_args; struct dup_args; struct dup2_args; struct flock_args; struct lseek_args; struct fsimple_args; struct pipe_args; struct socketpair_args; struct iowait_args; struct bcopy_args; struct exit_args; struct new_args; struct lockcount_args; struct abort_args; struct wakeup_args; struct usleep_args; struct mssleep_args; struct tsleep_args; struct opendir_args; struct fdopendir_args; struct stat_path_args; struct stat_fd_args; struct symlink_args; struct link_args; struct readlink_args; struct unlink_args; struct umask_args; struct fdlock_args; struct mmap_args; struct munmap_args; struct mprotect_args; struct madvise_args; struct msync_args; struct getenv_args; struct setenv_args; struct unsetenv_args; struct exec_args; struct wait_args; struct waitn_args; struct srandomdev_args; struct srandom_args; struct random_args; struct DirStor; void RUNESYSCALL(read) (struct read_args *args, srunesize_t *rval); void RUNESYSCALL(read1) (struct read_args *args, srunesize_t *rval); void RUNESYSCALL(readn) (struct read_args *args, srunesize_t *rval); void RUNESYSCALL(write) (struct write_args *args, srunesize_t *rval); void RUNESYSCALL(write1) (struct write_args *args, srunesize_t *rval); void RUNESYSCALL(writen) (struct write_args *args, srunesize_t *rval); void RUNESYSCALL(open) (struct open_args *args, int *rval); void RUNESYSCALL(close) (struct close_args *args, int *rval); void RUNESYSCALL(dup) (struct dup_args *args, int *rval); void RUNESYSCALL(dup2) (struct dup2_args *args, int *rval); void RUNESYSCALL(umask) (struct umask_args *args, runemode_t *rval); void RUNESYSCALL(flock) (struct flock_args *args, int *rval); void RUNESYSCALL(lseek) (struct lseek_args *args, srunesize_t *rval); void RUNESYSCALL(setcloexec) (struct fsimple_args *args, int *rval); void RUNESYSCALL(setappend) (struct fsimple_args *args, int *rval); void RUNESYSCALL(setnonblock) (struct fsimple_args *args, int *rval); void RUNESYSCALL(setdirect) (struct fsimple_args *args, int *rval); void RUNESYSCALL(importdesc) (struct fsimple_args *args, int *rval); void RUNESYSCALL(pipe) (struct pipe_args *args, int *rval); void RUNESYSCALL(socketpair) (struct socketpair_args *args, int *rval); void RUNESYSCALL(iowait_rd) (struct iowait_args *args, void *rval); void RUNESYSCALL(iowait_wr) (struct iowait_args *args, void *rval); void RUNESYSCALL(symlink) (struct symlink_args *args, int *rval); void RUNESYSCALL(link) (struct link_args *args, int *rval); void RUNESYSCALL(readlink) (struct readlink_args *args, int *rval); void RUNESYSCALL(unlink) (struct unlink_args *args, int *rval); void RUNESYSCALL(pow_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(pow_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(pow_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(exp_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(exp_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(exp_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(exp2_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(exp2_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(exp2_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(expm1_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(expm1_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(expm1_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(log_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(log_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(log_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(log1p_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(log1p_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(log1p_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(log2_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(log2_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(log2_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(log10_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(log10_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(log10_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(ilogb_Float32) (float32_t *val, int32_t *rval); void RUNESYSCALL(ilogb_Float64) (float64_t *val, int32_t *rval); void RUNESYSCALL(ilogb_Float128) (float128_t *val, int32_t *rval); typedef struct { float32_t mant; int32_t exp2; } frexp_float32_res_t; typedef struct { float64_t mant; int32_t exp2; int32_t unused01; } frexp_float64_res_t; typedef struct { float128_t mant; int32_t exp2; int32_t unused01; int32_t unused02; int32_t unused03; } frexp_float128_res_t; void RUNESYSCALL(frexp_Float32) (float32_t *val, frexp_float32_res_t *rval); void RUNESYSCALL(frexp_Float64) (float64_t *val, frexp_float64_res_t *rval); void RUNESYSCALL(frexp_Float128) (float128_t *val, frexp_float128_res_t *rval); void RUNESYSCALL(sin_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(sin_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(sin_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(cos_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(cos_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(cos_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(tan_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(tan_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(tan_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(asin_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(asin_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(asin_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(acos_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(acos_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(acos_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(atan_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(atan_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(atan_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(atan2_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(atan2_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(atan2_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(sinh_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(sinh_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(sinh_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(cosh_Float32) (float32_t *val, float32_t *rval); void RUNESYSCALL(cosh_Float64) (float64_t *val, float64_t *rval); void RUNESYSCALL(cosh_Float128) (float128_t *val, float128_t *rval); void RUNESYSCALL(bcopy) (struct bcopy_args *args, void *rval); void RUNESYSCALL(new) (struct new_args *args, void *rval __unused); void RUNESYSCALL(lockcount) (struct lockcount_args *args, srunesize_t *rval); void RUNESYSCALL(exit) (struct exit_args *args, void *rval __unused); void RUNESYSCALL(abort) (struct abort_args *args, void *rval __unused); void RUNESYSCALL(waitThreads) (void *args, void *rval); void RUNESYSCALL(wakeup) (struct wakeup_args *args, void *rval); void RUNESYSCALL(usleep) (struct usleep_args *args, void *rval); void RUNESYSCALL(mssleep) (struct mssleep_args *args, void *rval); void RUNESYSCALL(tsleep) (struct tsleep_args *args, void *rval); void RUNESYSCALL(opendir) (struct opendir_args *args, int *resp); void RUNESYSCALL(fdopendir) (struct fdopendir_args *args, int *resp); void RUNESYSCALL(readdir) (struct DirStor *ds, int *resp); void RUNESYSCALL(rewinddir) (struct DirStor *ds, void *rval); void RUNESYSCALL(closedir) (struct DirStor *ds, void *rval); void RUNESYSCALL(dirfd) (struct DirStor *ds, int *resp); void RUNESYSCALL(stat) (struct stat_path_args *args, int *resp); void RUNESYSCALL(lstat) (struct stat_path_args *args, int *resp); void RUNESYSCALL(fstat) (struct stat_fd_args *args, int *resp); void RUNESYSCALL(chmod) (struct stat_path_args *args, int *resp); void RUNESYSCALL(lchmod) (struct stat_path_args *args, int *resp); void RUNESYSCALL(fchmod) (struct stat_fd_args *args, int *resp); void RUNESYSCALL(chown) (struct stat_path_args *args, int *resp); void RUNESYSCALL(lchown) (struct stat_path_args *args, int *resp); void RUNESYSCALL(fchown) (struct stat_fd_args *args, int *resp); void RUNESYSCALL(utimes) (struct stat_path_args *args, int *resp); void RUNESYSCALL(lutimes) (struct stat_path_args *args, int *resp); void RUNESYSCALL(futimes) (struct stat_fd_args *args, int *resp); void RUNESYSCALL(fgetlk) (struct fdlock_args *args, int *resp); void RUNESYSCALL(fsetlk) (struct fdlock_args *args, int *resp); void RUNESYSCALL(fsetlkw) (struct fdlock_args *args, int *resp); void RUNESYSCALL(mmap) (struct mmap_args *args, int *resp); void RUNESYSCALL(munmap) (struct mmap_args *args, int *resp); void RUNESYSCALL(mprotect) (struct mprotect_args *args, int *resp); void RUNESYSCALL(madvise) (struct madvise_args *args, int *resp); void RUNESYSCALL(msync) (struct msync_args *args, int *resp); void RUNESYSCALL(getenv) (struct getenv_args *args, void **resp); void RUNESYSCALL(setenv) (struct setenv_args *args, void *resp); void RUNESYSCALL(unsetenv) (struct unsetenv_args *args, int *resp); void RUNESYSCALL(exec) (struct exec_args *args, int *resp); void RUNESYSCALL(wait) (struct wait_args *args, int *resp); void RUNESYSCALL(waitn) (struct waitn_args *args, int *resp); void RUNESYSCALL(srandomdev) (struct srandomdev_args *args, void *resp); void RUNESYSCALL(srandom) (struct srandom_args *args, void *resp); void RUNESYSCALL(random) (struct random_args *args, uint64_t *resp);