mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-22 02:20:31 +00:00
Remove _Hide keyword
It never did anything and isn't worthwhile as documentation.
This commit is contained in:
parent
4fb6cbc1fe
commit
e0c2b91b3e
131 changed files with 716 additions and 917 deletions
|
@ -131,7 +131,7 @@ clock_gettime_f *__clock_gettime_get(bool *opt_out_isfast) {
|
|||
return res;
|
||||
}
|
||||
|
||||
_Hide int __clock_gettime_init(int clockid, struct timespec *ts) {
|
||||
int __clock_gettime_init(int clockid, struct timespec *ts) {
|
||||
clock_gettime_f *gettime;
|
||||
__clock_gettime = gettime = __clock_gettime_get(0);
|
||||
return gettime(clockid, ts);
|
||||
|
|
|
@ -7,9 +7,9 @@ COSMOPOLITAN_C_START_
|
|||
typedef int clock_gettime_f(int, struct timespec *);
|
||||
|
||||
extern clock_gettime_f *__clock_gettime;
|
||||
clock_gettime_f *__clock_gettime_get(bool *) _Hide;
|
||||
int __clock_gettime_init(int, struct timespec *) _Hide;
|
||||
int sys_clock_gettime_mono(struct timespec *) _Hide;
|
||||
clock_gettime_f *__clock_gettime_get(bool *);
|
||||
int __clock_gettime_init(int, struct timespec *);
|
||||
int sys_clock_gettime_mono(struct timespec *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "libc/nt/runtime.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
|
||||
void sys_fcntl_nt_lock_cleanup(int) _Hide;
|
||||
void sys_fcntl_nt_lock_cleanup(int);
|
||||
|
||||
textwindows int sys_close_nt(struct Fd *fd, int fildes) {
|
||||
int e;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool IsAPEMagic(char[8]) _Hide;
|
||||
bool IsAPEMagic(char[8]);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -102,7 +102,7 @@ static textwindows bool EqualsFileLock(struct FileLock *fl, int64_t off,
|
|||
return fl->off == off && off + len == fl->off + fl->len;
|
||||
}
|
||||
|
||||
_Hide textwindows void sys_fcntl_nt_lock_cleanup(int fd) {
|
||||
textwindows void sys_fcntl_nt_lock_cleanup(int fd) {
|
||||
struct FileLock *fl, *ft, **flp;
|
||||
pthread_mutex_lock(&g_locks.mu);
|
||||
for (flp = &g_locks.list, fl = *flp; fl;) {
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│
|
||||
│vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright 2020 Justine Alexandra Roberts Tunney │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and/or distribute this software for │
|
||||
│ any purpose with or without fee is hereby granted, provided that the │
|
||||
│ above copyright notice and this permission notice appear in all copies. │
|
||||
│ │
|
||||
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
||||
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
||||
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
||||
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
||||
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
||||
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.internal.h"
|
||||
|
||||
// Calls GetTempPathA() w/ different API.
|
||||
//
|
||||
// @see GetSystemDirectoryA(), GetWindowsDirectoryA()
|
||||
GetTempPathA_flunk:
|
||||
xchg %rcx,%rdx
|
||||
jmp *__imp_GetTempPathA(%rip)
|
||||
.endfn GetTempPathA_flunk,globl,hidden
|
|
@ -12,15 +12,15 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
#define kIoMotion ((const int8_t[3]){1, 0, 0})
|
||||
|
||||
_Hide extern struct Fds g_fds;
|
||||
_Hide extern const struct Fd kEmptyFd;
|
||||
extern struct Fds g_fds;
|
||||
extern const struct Fd kEmptyFd;
|
||||
|
||||
int __reservefd(int) _Hide;
|
||||
int __reservefd_unlocked(int) _Hide;
|
||||
void __releasefd(int) _Hide;
|
||||
int __ensurefds(int) _Hide;
|
||||
int __ensurefds_unlocked(int) _Hide;
|
||||
void __printfds(void) _Hide;
|
||||
int __reservefd(int);
|
||||
int __reservefd_unlocked(int);
|
||||
void __releasefd(int);
|
||||
int __ensurefds(int);
|
||||
int __ensurefds_unlocked(int);
|
||||
void __printfds(void);
|
||||
|
||||
forceinline int64_t __getfdhandleactual(int fd) {
|
||||
return g_fds.p[fd].handle;
|
||||
|
@ -34,8 +34,8 @@ forceinline bool __isfdkind(int fd, int kind) {
|
|||
return 0 <= fd && fd < g_fds.n && g_fds.p[fd].kind == kind;
|
||||
}
|
||||
|
||||
int sys_close_nt(struct Fd *, int) _Hide;
|
||||
int _check_interrupts(bool, struct Fd *) _Hide;
|
||||
int sys_close_nt(struct Fd *, int);
|
||||
int _check_interrupts(bool, struct Fd *);
|
||||
int sys_openat_metal(int, const char *, int, unsigned);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
|
||||
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
|
||||
╞══════════════════════════════════════════════════════════════════════════════╡
|
||||
│ Copyright 2021 Justine Alexandra Roberts Tunney │
|
||||
│ │
|
||||
│ Permission to use, copy, modify, and/or distribute this software for │
|
||||
│ any purpose with or without fee is hereby granted, provided that the │
|
||||
│ above copyright notice and this permission notice appear in all copies. │
|
||||
│ │
|
||||
│ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL │
|
||||
│ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED │
|
||||
│ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE │
|
||||
│ AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL │
|
||||
│ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR │
|
||||
│ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER │
|
||||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/struct/iovec.h"
|
||||
|
||||
size_t __iovec_size(const struct iovec *v, size_t n) {
|
||||
size_t i, sum;
|
||||
for (sum = i = 0; i < n; ++i) {
|
||||
sum += v[i].iov_len;
|
||||
}
|
||||
return sum;
|
||||
}
|
|
@ -19,4 +19,4 @@
|
|||
#include "libc/calls/internal.h"
|
||||
#include "libc/calls/struct/fd.internal.h"
|
||||
|
||||
_Hide const struct Fd kEmptyFd;
|
||||
const struct Fd kEmptyFd;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/ntmagicpaths.internal.h"
|
||||
|
||||
_Hide const struct NtMagicPaths kNtMagicPaths = {
|
||||
const struct NtMagicPaths kNtMagicPaths = {
|
||||
#define TAB(NAME, STRING) STRING,
|
||||
#include "libc/calls/ntmagicpaths.inc"
|
||||
#undef TAB
|
||||
|
|
|
@ -9,7 +9,7 @@ struct NtMagicPaths {
|
|||
#undef TAB
|
||||
};
|
||||
|
||||
_Hide extern const struct NtMagicPaths kNtMagicPaths;
|
||||
extern const struct NtMagicPaths kNtMagicPaths;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int mkntcmdline(char16_t[ARG_MAX / 2], char *const[]) _Hide;
|
||||
int mkntcmdline(char16_t[ARG_MAX / 2], char *const[]);
|
||||
int mkntenvblock(char16_t[ARG_MAX / 2], char *const[], const char *,
|
||||
char[ARG_MAX]) _Hide;
|
||||
char[ARG_MAX]);
|
||||
int ntspawn(const char *, char *const[], char *const[], const char *,
|
||||
struct NtSecurityAttributes *, struct NtSecurityAttributes *,
|
||||
bool32, uint32_t, const char16_t *, const struct NtStartupInfo *,
|
||||
struct NtProcessInformation *) _Hide;
|
||||
struct NtProcessInformation *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -11,10 +11,10 @@ struct Pledges {
|
|||
const size_t len;
|
||||
};
|
||||
|
||||
_Hide extern const struct Pledges kPledge[PROMISE_LEN_];
|
||||
extern const struct Pledges kPledge[PROMISE_LEN_];
|
||||
|
||||
int sys_pledge_linux(unsigned long, int) _Hide;
|
||||
int ParsePromises(const char *, unsigned long *) _Hide;
|
||||
int sys_pledge_linux(unsigned long, int);
|
||||
int ParsePromises(const char *, unsigned long *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -18,11 +18,11 @@ int sys_sched_get_priority_max(int);
|
|||
int sys_sched_get_priority_min(int);
|
||||
int sys_sched_getparam(int, struct sched_param *);
|
||||
int sys_sched_getscheduler(int);
|
||||
int sys_sched_setaffinity(int, uint64_t, const void *) _Hide;
|
||||
int sys_sched_setaffinity(int, uint64_t, const void *);
|
||||
int sys_sched_setparam(int, const struct sched_param *);
|
||||
int sys_sched_setscheduler(int, int, const struct sched_param *);
|
||||
int sys_sched_yield(void) _Hide;
|
||||
int64_t sys_sched_getaffinity(int, uint64_t, void *) _Hide;
|
||||
int sys_sched_yield(void);
|
||||
int64_t sys_sched_getaffinity(int, uint64_t, void *);
|
||||
|
||||
int sys_sched_getscheduler_netbsd(int, struct sched_param *);
|
||||
int sys_sched_setparam_netbsd(int, int, int, const struct sched_param *) //
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "libc/intrin/describeflags.internal.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
|
||||
int sys_sched_rr_get_interval(int, struct timespec *) _Hide;
|
||||
int sys_sched_rr_get_interval(int, struct timespec *);
|
||||
|
||||
/**
|
||||
* Returns round-robin `SCHED_RR` quantum for `pid`.
|
||||
|
|
|
@ -28,14 +28,14 @@ struct Signals {
|
|||
extern struct Signals __sig;
|
||||
extern atomic_long __sig_count;
|
||||
|
||||
bool __sig_check(bool) _Hide;
|
||||
bool __sig_handle(bool, int, int, ucontext_t *) _Hide;
|
||||
int __sig_add(int, int, int) _Hide;
|
||||
int __sig_mask(int, const sigset_t *, sigset_t *) _Hide;
|
||||
int __sig_raise(int, int) _Hide;
|
||||
void __sig_check_ignore(const int, const unsigned) _Hide;
|
||||
void __sig_pending(sigset_t *) _Hide;
|
||||
int __sig_is_applicable(struct Signal *) _Hide;
|
||||
bool __sig_check(bool);
|
||||
bool __sig_handle(bool, int, int, ucontext_t *);
|
||||
int __sig_add(int, int, int);
|
||||
int __sig_mask(int, const sigset_t *, sigset_t *);
|
||||
int __sig_raise(int, int);
|
||||
void __sig_check_ignore(const int, const unsigned);
|
||||
void __sig_pending(sigset_t *);
|
||||
int __sig_is_applicable(struct Signal *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_sigtimedwait(const sigset_t *, union siginfo_meta *,
|
||||
const struct timespec *, size_t) _Hide;
|
||||
const struct timespec *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
_Hide extern int __vforked;
|
||||
_Hide extern bool __time_critical;
|
||||
_Hide extern unsigned __sighandrvas[NSIG];
|
||||
_Hide extern unsigned __sighandflags[NSIG];
|
||||
_Hide extern pthread_mutex_t __fds_lock_obj;
|
||||
_Hide extern pthread_mutex_t __sig_lock_obj;
|
||||
_Hide extern const struct NtSecurityAttributes kNtIsInheritable;
|
||||
extern int __vforked;
|
||||
extern bool __time_critical;
|
||||
extern unsigned __sighandrvas[NSIG];
|
||||
extern unsigned __sighandflags[NSIG];
|
||||
extern pthread_mutex_t __fds_lock_obj;
|
||||
extern pthread_mutex_t __sig_lock_obj;
|
||||
extern const struct NtSecurityAttributes kNtIsInheritable;
|
||||
|
||||
void __fds_lock(void);
|
||||
void __fds_unlock(void);
|
||||
|
|
|
@ -6,24 +6,23 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int64_t sys_preadv(int, struct iovec *, int, int64_t, int64_t) _Hide;
|
||||
int64_t sys_pwritev(int, const struct iovec *, int, int64_t, int64_t) _Hide;
|
||||
int64_t sys_readv(int32_t, const struct iovec *, int32_t) _Hide;
|
||||
int64_t sys_vmsplice(int, const struct iovec *, int64_t, uint32_t) _Hide;
|
||||
int64_t sys_writev(int32_t, const struct iovec *, int32_t) _Hide;
|
||||
size_t __iovec_size(const struct iovec *, size_t) _Hide;
|
||||
ssize_t WritevUninterruptible(int, struct iovec *, int);
|
||||
ssize_t sys_read_nt(struct Fd *, const struct iovec *, size_t, int64_t) _Hide;
|
||||
ssize_t sys_readv_metal(struct Fd *, const struct iovec *, int) _Hide;
|
||||
ssize_t sys_readv_nt(struct Fd *, const struct iovec *, int) _Hide;
|
||||
ssize_t sys_readv_serial(struct Fd *, const struct iovec *, int) _Hide;
|
||||
ssize_t sys_write_nt(int, const struct iovec *, size_t, ssize_t) _Hide;
|
||||
ssize_t sys_writev_metal(struct Fd *, const struct iovec *, int) _Hide;
|
||||
ssize_t sys_writev_nt(int, const struct iovec *, int) _Hide;
|
||||
ssize_t sys_writev_serial(struct Fd *, const struct iovec *, int) _Hide;
|
||||
ssize_t sys_send_nt(int, const struct iovec *, size_t, uint32_t) _Hide;
|
||||
ssize_t __robust_writev(int, struct iovec *, int);
|
||||
int64_t sys_preadv(int, struct iovec *, int, int64_t, int64_t);
|
||||
int64_t sys_pwritev(int, const struct iovec *, int, int64_t, int64_t);
|
||||
int64_t sys_readv(int32_t, const struct iovec *, int32_t);
|
||||
int64_t sys_vmsplice(int, const struct iovec *, int64_t, uint32_t);
|
||||
int64_t sys_writev(int32_t, const struct iovec *, int32_t);
|
||||
ssize_t sys_read_nt(struct Fd *, const struct iovec *, size_t, int64_t);
|
||||
ssize_t sys_readv_metal(struct Fd *, const struct iovec *, int);
|
||||
ssize_t sys_readv_nt(struct Fd *, const struct iovec *, int);
|
||||
ssize_t sys_readv_serial(struct Fd *, const struct iovec *, int);
|
||||
ssize_t sys_write_nt(int, const struct iovec *, size_t, ssize_t);
|
||||
ssize_t sys_writev_metal(struct Fd *, const struct iovec *, int);
|
||||
ssize_t sys_writev_nt(int, const struct iovec *, int);
|
||||
ssize_t sys_writev_serial(struct Fd *, const struct iovec *, int);
|
||||
ssize_t sys_send_nt(int, const struct iovec *, size_t, uint32_t);
|
||||
ssize_t sys_sendto_nt(int, const struct iovec *, size_t, uint32_t, void *,
|
||||
uint32_t) _Hide;
|
||||
uint32_t);
|
||||
|
||||
const char *DescribeIovec(char[300], ssize_t, const struct iovec *, int);
|
||||
#define DescribeIovec(x, y, z) DescribeIovec(alloca(300), x, y, z)
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_getitimer(int, struct itimerval *) _Hide;
|
||||
int sys_setitimer(int, const struct itimerval *, struct itimerval *) _Hide;
|
||||
int sys_setitimer_nt(int, const struct itimerval *, struct itimerval *) _Hide;
|
||||
int sys_getitimer(int, struct itimerval *);
|
||||
int sys_setitimer(int, const struct itimerval *, struct itimerval *);
|
||||
int sys_setitimer_nt(int, const struct itimerval *, struct itimerval *);
|
||||
|
||||
const char *DescribeItimerval(char[90], int, const struct itimerval *);
|
||||
#define DescribeItimerval(rc, ts) DescribeItimerval(alloca(90), rc, ts)
|
||||
|
|
|
@ -112,7 +112,7 @@ union metastat {
|
|||
struct stat_netbsd netbsd;
|
||||
};
|
||||
|
||||
void __stat2cosmo(struct stat *restrict, const union metastat *) _Hide;
|
||||
void __stat2cosmo(struct stat *restrict, const union metastat *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_getrlimit(int, struct rlimit *) _Hide;
|
||||
int sys_setrlimit(int, const struct rlimit *) _Hide;
|
||||
int sys_setrlimit_nt(int, const struct rlimit *) _Hide;
|
||||
int sys_getrlimit(int, struct rlimit *);
|
||||
int sys_setrlimit(int, const struct rlimit *);
|
||||
int sys_setrlimit_nt(int, const struct rlimit *);
|
||||
|
||||
const char *DescribeRlimit(char[64], int, const struct rlimit *);
|
||||
#define DescribeRlimit(rc, rl) DescribeRlimit(alloca(64), rc, rl)
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int __sys_getrusage(int, struct rusage *) _Hide;
|
||||
int __sys_wait4(int, int *, int, struct rusage *) _Hide;
|
||||
int sys_getrusage(int, struct rusage *) _Hide;
|
||||
int sys_wait4(int, int *, int, struct rusage *) _Hide;
|
||||
void __rusage2linux(struct rusage *) _Hide;
|
||||
int sys_getrusage_nt(int, struct rusage *) _Hide;
|
||||
int __sys_getrusage(int, struct rusage *);
|
||||
int __sys_wait4(int, int *, int, struct rusage *);
|
||||
int sys_getrusage(int, struct rusage *);
|
||||
int sys_wait4(int, int *, int, struct rusage *);
|
||||
void __rusage2linux(struct rusage *);
|
||||
int sys_getrusage_nt(int, struct rusage *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -54,11 +54,11 @@ union metasigaction {
|
|||
struct sigaction_xnu_out xnu_out;
|
||||
};
|
||||
|
||||
void __sigenter_xnu(int, struct siginfo *, void *) _Hide;
|
||||
void __sigenter_wsl(int, struct siginfo *, void *) _Hide;
|
||||
void __sigenter_netbsd(int, struct siginfo *, void *) _Hide;
|
||||
void __sigenter_freebsd(int, struct siginfo *, void *) _Hide;
|
||||
void __sigenter_openbsd(int, struct siginfo *, void *) _Hide;
|
||||
void __sigenter_xnu(int, struct siginfo *, void *);
|
||||
void __sigenter_wsl(int, struct siginfo *, void *);
|
||||
void __sigenter_netbsd(int, struct siginfo *, void *);
|
||||
void __sigenter_freebsd(int, struct siginfo *, void *);
|
||||
void __sigenter_openbsd(int, struct siginfo *, void *);
|
||||
|
||||
const char *DescribeSigaction(char[256], int, const struct sigaction *);
|
||||
#define DescribeSigaction(rc, sa) DescribeSigaction(alloca(256), rc, sa)
|
||||
|
|
|
@ -16,7 +16,7 @@ union siginfo_meta {
|
|||
struct siginfo_netbsd netbsd;
|
||||
};
|
||||
|
||||
void __siginfo2cosmo(struct siginfo *, const union siginfo_meta *) _Hide;
|
||||
void __siginfo2cosmo(struct siginfo *, const union siginfo_meta *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_sigqueueinfo(int, const siginfo_t *) _Hide;
|
||||
int sys_sigqueueinfo(int, const siginfo_t *);
|
||||
|
||||
const char *DescribeSiginfo(char[300], int, const siginfo_t *);
|
||||
#define DescribeSiginfo(x, y) DescribeSiginfo(alloca(300), x, y)
|
||||
|
|
|
@ -5,11 +5,10 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int __sys_sigprocmask(int, const struct sigset *, struct sigset *,
|
||||
uint64_t) _Hide;
|
||||
int sys_sigprocmask(int, const struct sigset *, struct sigset *) _Hide;
|
||||
int sys_sigsuspend(const struct sigset *, uint64_t) _Hide;
|
||||
int sys_sigpending(struct sigset *, size_t) _Hide;
|
||||
int __sys_sigprocmask(int, const struct sigset *, struct sigset *, uint64_t);
|
||||
int sys_sigprocmask(int, const struct sigset *, struct sigset *);
|
||||
int sys_sigsuspend(const struct sigset *, uint64_t);
|
||||
int sys_sigpending(struct sigset *, size_t);
|
||||
|
||||
const char *DescribeSigset(char[128], int, const sigset_t *);
|
||||
#define DescribeSigset(rc, ss) DescribeSigset(alloca(128), rc, ss)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_sigqueue(int, int, const union sigval) _Hide;
|
||||
int sys_sigqueue(int, int, const union sigval);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_fstat(int, struct stat *) _Hide;
|
||||
int sys_fstatat(int, const char *, struct stat *, int) _Hide;
|
||||
int sys_fstat_nt(int64_t, struct stat *) _Hide;
|
||||
int sys_fstatat_nt(int, const char *, struct stat *, int) _Hide;
|
||||
int sys_lstat_nt(const char *, struct stat *) _Hide;
|
||||
int sys_fstat(int, struct stat *);
|
||||
int sys_fstatat(int, const char *, struct stat *, int);
|
||||
int sys_fstat_nt(int64_t, struct stat *);
|
||||
int sys_fstatat_nt(int, const char *, struct stat *, int);
|
||||
int sys_lstat_nt(const char *, struct stat *);
|
||||
int sys_fstat_metal(int, struct stat *);
|
||||
|
||||
const char *DescribeStat(char[300], int, const struct stat *);
|
||||
|
|
|
@ -17,7 +17,7 @@ union statfs_meta {
|
|||
struct statfs_netbsd netbsd;
|
||||
};
|
||||
|
||||
void statfs2cosmo(struct statfs *, const union statfs_meta *) _Hide;
|
||||
void statfs2cosmo(struct statfs *, const union statfs_meta *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_sysinfo(struct sysinfo *) _Hide;
|
||||
int sys_sysinfo_nt(struct sysinfo *) _Hide;
|
||||
int sys_sysinfo(struct sysinfo *);
|
||||
int sys_sysinfo_nt(struct sysinfo *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,26 +6,26 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
int __sys_clock_nanosleep(int, int, const struct timespec *, struct timespec *) _Hide;
|
||||
int __sys_utimensat(int, const char *, const struct timespec[2], int) _Hide;
|
||||
int __utimens(int, const char *, const struct timespec[2], int) _Hide;
|
||||
int sys_clock_getres(int, struct timespec *) _Hide;
|
||||
int __sys_clock_nanosleep(int, int, const struct timespec *, struct timespec *);
|
||||
int __sys_utimensat(int, const char *, const struct timespec[2], int);
|
||||
int __utimens(int, const char *, const struct timespec[2], int);
|
||||
int sys_clock_getres(int, struct timespec *);
|
||||
int sys_clock_settime(int, const struct timespec *);
|
||||
int sys_clock_gettime(int, struct timespec *) _Hide;
|
||||
int sys_clock_gettime_nt(int, struct timespec *) _Hide;
|
||||
int sys_clock_gettime_m1(int, struct timespec *) _Hide;
|
||||
int sys_clock_gettime_xnu(int, struct timespec *) _Hide;
|
||||
int sys_clock_nanosleep_nt(int, int, const struct timespec *, struct timespec *) _Hide;
|
||||
int sys_clock_nanosleep_openbsd(int, int, const struct timespec *, struct timespec *) _Hide;
|
||||
int sys_clock_nanosleep_xnu(int, int, const struct timespec *, struct timespec *) _Hide;
|
||||
int sys_futimens(int, const struct timespec[2]) _Hide;
|
||||
int sys_nanosleep(const struct timespec *, struct timespec *) _Hide;
|
||||
int sys_nanosleep_nt(const struct timespec *, struct timespec *) _Hide;
|
||||
int sys_nanosleep_xnu(const struct timespec *, struct timespec *) _Hide;
|
||||
int sys_sem_timedwait(int64_t, const struct timespec *) _Hide;
|
||||
int sys_utimensat(int, const char *, const struct timespec[2], int) _Hide;
|
||||
int sys_utimensat_nt(int, const char *, const struct timespec[2], int) _Hide;
|
||||
int sys_utimensat_xnu(int, const char *, const struct timespec[2], int) _Hide;
|
||||
int sys_clock_gettime(int, struct timespec *);
|
||||
int sys_clock_gettime_nt(int, struct timespec *);
|
||||
int sys_clock_gettime_m1(int, struct timespec *);
|
||||
int sys_clock_gettime_xnu(int, struct timespec *);
|
||||
int sys_clock_nanosleep_nt(int, int, const struct timespec *, struct timespec *);
|
||||
int sys_clock_nanosleep_openbsd(int, int, const struct timespec *, struct timespec *);
|
||||
int sys_clock_nanosleep_xnu(int, int, const struct timespec *, struct timespec *);
|
||||
int sys_futimens(int, const struct timespec[2]);
|
||||
int sys_nanosleep(const struct timespec *, struct timespec *);
|
||||
int sys_nanosleep_nt(const struct timespec *, struct timespec *);
|
||||
int sys_nanosleep_xnu(const struct timespec *, struct timespec *);
|
||||
int sys_sem_timedwait(int64_t, const struct timespec *);
|
||||
int sys_utimensat(int, const char *, const struct timespec[2], int);
|
||||
int sys_utimensat_nt(int, const char *, const struct timespec[2], int);
|
||||
int sys_utimensat_xnu(int, const char *, const struct timespec[2], int);
|
||||
|
||||
const char *DescribeTimespec(char[45], int, const struct timespec *);
|
||||
#define DescribeTimespec(rc, ts) DescribeTimespec(alloca(45), rc, ts)
|
||||
|
|
|
@ -6,15 +6,15 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
axdx_t sys_gettimeofday(struct timeval *, struct timezone *, void *) _Hide;
|
||||
int sys_settimeofday(const struct timeval *, const struct timezone *) _Hide;
|
||||
int sys_futimes(int, const struct timeval *) _Hide;
|
||||
int sys_lutimes(const char *, const struct timeval *) _Hide;
|
||||
int sys_utimes(const char *, const struct timeval *) _Hide;
|
||||
axdx_t sys_gettimeofday_m1(struct timeval *, struct timezone *, void *) _Hide;
|
||||
axdx_t sys_gettimeofday_xnu(struct timeval *, struct timezone *, void *) _Hide;
|
||||
axdx_t sys_gettimeofday_nt(struct timeval *, struct timezone *, void *) _Hide;
|
||||
int sys_utimes_nt(const char *, const struct timeval[2]) _Hide;
|
||||
axdx_t sys_gettimeofday(struct timeval *, struct timezone *, void *);
|
||||
int sys_settimeofday(const struct timeval *, const struct timezone *);
|
||||
int sys_futimes(int, const struct timeval *);
|
||||
int sys_lutimes(const char *, const struct timeval *);
|
||||
int sys_utimes(const char *, const struct timeval *);
|
||||
axdx_t sys_gettimeofday_m1(struct timeval *, struct timezone *, void *);
|
||||
axdx_t sys_gettimeofday_xnu(struct timeval *, struct timezone *, void *);
|
||||
axdx_t sys_gettimeofday_nt(struct timeval *, struct timezone *, void *);
|
||||
int sys_utimes_nt(const char *, const struct timeval[2]);
|
||||
axdx_t sys_gettimeofday_metal(struct timeval *, struct timezone *, void *);
|
||||
|
||||
const char *DescribeTimeval(char[45], int, const struct timeval *);
|
||||
|
|
|
@ -29,8 +29,8 @@ COSMOPOLITAN_C_START_
|
|||
#error "unsupported architecture"
|
||||
#endif
|
||||
|
||||
void _ntcontext2linux(struct ucontext *, const struct NtContext *) _Hide;
|
||||
void _ntlinux2context(struct NtContext *, const ucontext_t *) _Hide;
|
||||
void _ntcontext2linux(struct ucontext *, const struct NtContext *);
|
||||
void _ntlinux2context(struct NtContext *, const ucontext_t *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int tcgetwinsize_nt(struct Fd *, struct winsize *) _Hide;
|
||||
int tcgetwinsize_nt(struct Fd *, struct winsize *);
|
||||
const char *DescribeWinsize(char[64], int, struct winsize *);
|
||||
#define DescribeWinsize(rc, ws) DescribeWinsize(alloca(12), rc, ws)
|
||||
|
||||
|
|
|
@ -3,41 +3,40 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 sys_isatty_nt(int) _Hide;
|
||||
char *sys_getcwd_nt(char *, size_t) _Hide;
|
||||
int sys_chdir_nt(const char *) _Hide;
|
||||
int sys_close_epoll_nt(int) _Hide;
|
||||
int sys_dup_nt(int, int, int, int) _Hide;
|
||||
int sys_execve_nt(const char *, char *const[], char *const[]) _Hide;
|
||||
int sys_faccessat_nt(int, const char *, int, uint32_t) _Hide;
|
||||
int sys_fadvise_nt(int, uint64_t, uint64_t, int) _Hide;
|
||||
int sys_fchdir_nt(int) _Hide;
|
||||
int sys_fchmodat_nt(int, const char *, uint32_t, int) _Hide;
|
||||
int sys_fcntl_nt(int, int, uintptr_t) _Hide;
|
||||
int sys_fdatasync_nt(int) _Hide;
|
||||
int sys_flock_nt(int, int) _Hide;
|
||||
int sys_fork_nt(uint32_t) _Hide;
|
||||
int sys_ftruncate_nt(int64_t, uint64_t) _Hide;
|
||||
int sys_getloadavg_nt(double *, int) _Hide;
|
||||
int sys_getppid_nt(void) _Hide;
|
||||
int sys_getpriority_nt(int, unsigned) _Hide;
|
||||
int sys_kill_nt(int, int) _Hide;
|
||||
int sys_linkat_nt(int, const char *, int, const char *) _Hide;
|
||||
int sys_madvise_nt(void *, size_t, int) _Hide;
|
||||
int sys_mkdirat_nt(int, const char *, uint32_t) _Hide;
|
||||
int sys_msync_nt(char *, size_t, int) _Hide;
|
||||
int sys_open_nt(int, const char *, uint32_t, int32_t)
|
||||
dontdiscard _Hide;
|
||||
int sys_pipe_nt(int[hasatleast 2], unsigned) _Hide;
|
||||
int sys_renameat_nt(int, const char *, int, const char *) _Hide;
|
||||
int sys_sched_yield_nt(void) _Hide;
|
||||
int sys_setpriority_nt(int, unsigned, int) _Hide;
|
||||
int sys_symlinkat_nt(const char *, int, const char *) _Hide;
|
||||
int sys_sync_nt(void) _Hide;
|
||||
int sys_truncate_nt(const char *, uint64_t) _Hide;
|
||||
int sys_unlinkat_nt(int, const char *, int) _Hide;
|
||||
int64_t sys_lseek_nt(int, int64_t, int) _Hide;
|
||||
ssize_t sys_readlinkat_nt(int, const char *, char *, size_t) _Hide;
|
||||
bool32 sys_isatty_nt(int);
|
||||
char *sys_getcwd_nt(char *, size_t);
|
||||
int sys_chdir_nt(const char *);
|
||||
int sys_close_epoll_nt(int);
|
||||
int sys_dup_nt(int, int, int, int);
|
||||
int sys_execve_nt(const char *, char *const[], char *const[]);
|
||||
int sys_faccessat_nt(int, const char *, int, uint32_t);
|
||||
int sys_fadvise_nt(int, uint64_t, uint64_t, int);
|
||||
int sys_fchdir_nt(int);
|
||||
int sys_fchmodat_nt(int, const char *, uint32_t, int);
|
||||
int sys_fcntl_nt(int, int, uintptr_t);
|
||||
int sys_fdatasync_nt(int);
|
||||
int sys_flock_nt(int, int);
|
||||
int sys_fork_nt(uint32_t);
|
||||
int sys_ftruncate_nt(int64_t, uint64_t);
|
||||
int sys_getloadavg_nt(double *, int);
|
||||
int sys_getppid_nt(void);
|
||||
int sys_getpriority_nt(int, unsigned);
|
||||
int sys_kill_nt(int, int);
|
||||
int sys_linkat_nt(int, const char *, int, const char *);
|
||||
int sys_madvise_nt(void *, size_t, int);
|
||||
int sys_mkdirat_nt(int, const char *, uint32_t);
|
||||
int sys_msync_nt(char *, size_t, int);
|
||||
int sys_open_nt(int, const char *, uint32_t, int32_t) dontdiscard;
|
||||
int sys_pipe_nt(int[hasatleast 2], unsigned);
|
||||
int sys_renameat_nt(int, const char *, int, const char *);
|
||||
int sys_sched_yield_nt(void);
|
||||
int sys_setpriority_nt(int, unsigned, int);
|
||||
int sys_symlinkat_nt(const char *, int, const char *);
|
||||
int sys_sync_nt(void);
|
||||
int sys_truncate_nt(const char *, uint64_t);
|
||||
int sys_unlinkat_nt(int, const char *, int);
|
||||
int64_t sys_lseek_nt(int, int64_t, int);
|
||||
ssize_t sys_readlinkat_nt(int, const char *, char *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -10,135 +10,135 @@ COSMOPOLITAN_C_START_
|
|||
│ cosmopolitan § syscalls » system five » structless synthetic jump slots ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
axdx_t __sys_fork(void) _Hide;
|
||||
axdx_t __sys_pipe(i32[hasatleast 2], i32) _Hide;
|
||||
axdx_t sys_getpid(void) _Hide;
|
||||
char *sys_getcwd(char *, u64) _Hide;
|
||||
char *sys_getcwd_xnu(char *, u64) _Hide;
|
||||
i32 __sys_dup3(i32, i32, i32) _Hide;
|
||||
i32 __sys_execve(const char *, char *const[], char *const[]) _Hide;
|
||||
i32 __sys_fcntl(i32, i32, ...) _Hide;
|
||||
i32 __sys_fcntl_cp(i32, i32, ...) _Hide;
|
||||
i32 __sys_fstat(i32, void *) _Hide;
|
||||
i32 __sys_fstatat(i32, const char *, void *, i32) _Hide;
|
||||
i32 __sys_gettid(i64 *) _Hide;
|
||||
i32 __sys_munmap(void *, u64) _Hide;
|
||||
i32 __sys_openat(i32, const char *, i32, u32) _Hide;
|
||||
i32 __sys_openat_nc(i32, const char *, i32, u32) _Hide;
|
||||
i32 __sys_pipe2(i32[hasatleast 2], u32) _Hide;
|
||||
i32 sys_arch_prctl(i32, i64) _Hide;
|
||||
i32 sys_chdir(const char *) _Hide;
|
||||
i32 sys_chroot(const char *) _Hide;
|
||||
i32 sys_close(i32) _Hide;
|
||||
i32 sys_close_range(u32, u32, u32) _Hide;
|
||||
i32 sys_closefrom(i32) _Hide;
|
||||
i32 sys_dup(i32) _Hide;
|
||||
i32 sys_dup2(i32, i32, i32) _Hide;
|
||||
i32 sys_dup3(i32, i32, i32) _Hide;
|
||||
i32 sys_execve(const char *, char *const[], char *const[]) _Hide;
|
||||
i32 sys_execveat(i32, const char *, char *const[], char *const[], i32) _Hide;
|
||||
i32 sys_faccessat(i32, const char *, i32, u32) _Hide;
|
||||
i32 sys_faccessat2(i32, const char *, i32, u32) _Hide;
|
||||
i32 sys_fadvise(i32, i64, i64, i32) _Hide;
|
||||
i32 sys_fchdir(i32) _Hide;
|
||||
i32 sys_fchmod(i32, u32) _Hide;
|
||||
i32 sys_fchmodat(i32, const char *, u32, u32) _Hide;
|
||||
i32 sys_fchown(i64, u32, u32) _Hide;
|
||||
i32 sys_fchownat(i32, const char *, u32, u32, u32) _Hide;
|
||||
i32 sys_fcntl(i32, i32, u64, i32 (*)(i32, i32, ...)) _Hide;
|
||||
i32 sys_fdatasync(i32) _Hide;
|
||||
i32 sys_fexecve(i32, char *const[], char *const[]) _Hide;
|
||||
i32 sys_flock(i32, i32) _Hide;
|
||||
i32 sys_fork(void) _Hide;
|
||||
i32 sys_fsync(i32) _Hide;
|
||||
i32 sys_ftruncate(i32, i64, i64) _Hide;
|
||||
i32 sys_getcontext(void *) _Hide;
|
||||
i32 sys_getpgid(i32) _Hide;
|
||||
i32 sys_getppid(void) _Hide;
|
||||
i32 sys_getpriority(i32, u32) _Hide;
|
||||
i32 sys_getresgid(u32 *, u32 *, u32 *) _Hide;
|
||||
i32 sys_getresuid(u32 *, u32 *, u32 *) _Hide;
|
||||
i32 sys_getsid(i32) _Hide;
|
||||
i32 sys_gettid(void) _Hide;
|
||||
i32 sys_ioctl(i32, u64, ...) _Hide;
|
||||
i32 sys_ioctl_cp(i32, u64, ...) _Hide;
|
||||
i32 sys_issetugid(void) _Hide;
|
||||
i32 sys_kill(i32, i32, i32) _Hide;
|
||||
i32 sys_linkat(i32, const char *, i32, const char *, i32) _Hide;
|
||||
i32 sys_madvise(void *, size_t, i32) _Hide;
|
||||
i32 sys_memfd_create(const char *, u32) _Hide;
|
||||
i32 sys_mincore(void *, u64, unsigned char *) _Hide;
|
||||
i32 sys_mkdirat(i32, const char *, u32) _Hide;
|
||||
i32 sys_mkfifo(const char *, u32) _Hide;
|
||||
i32 sys_mknod(const char *, u32, u64) _Hide;
|
||||
i32 sys_mknodat(i32, const char *, u32, u64) _Hide;
|
||||
i32 sys_mprotect(void *, u64, i32) _Hide;
|
||||
i32 sys_msync(void *, u64, i32) _Hide;
|
||||
i32 sys_munmap(void *, u64) _Hide;
|
||||
i32 sys_openat(i32, const char *, i32, u32) _Hide;
|
||||
i32 sys_pause(void) _Hide;
|
||||
i32 sys_pipe(i32[hasatleast 2]) _Hide;
|
||||
i32 sys_pipe2(i32[hasatleast 2], u32) _Hide;
|
||||
i32 sys_pivot_root(const char *, const char *) _Hide;
|
||||
i32 sys_pledge(const char *, const char *) _Hide;
|
||||
i32 sys_posix_openpt(i32) _Hide;
|
||||
i32 sys_renameat(i32, const char *, i32, const char *) _Hide;
|
||||
i32 sys_sem_close(i64) _Hide;
|
||||
i32 sys_sem_destroy(i64) _Hide;
|
||||
i32 sys_sem_getvalue(i64, u32 *) _Hide;
|
||||
i32 sys_sem_init(u32, i64 *) _Hide;
|
||||
i32 sys_sem_open(const char *, int, u32, i64 *) _Hide;
|
||||
i32 sys_sem_post(i64) _Hide;
|
||||
i32 sys_sem_trywait(i64) _Hide;
|
||||
i32 sys_sem_unlink(const char *) _Hide;
|
||||
i32 sys_sem_wait(i64) _Hide;
|
||||
i32 sys_setfsgid(i32) _Hide;
|
||||
i32 sys_setfsuid(i32) _Hide;
|
||||
i32 sys_setgid(i32) _Hide;
|
||||
i32 sys_setpgid(i32, i32) _Hide;
|
||||
i32 sys_setpriority(i32, u32, i32) _Hide;
|
||||
i32 sys_setregid(u32, u32) _Hide;
|
||||
i32 sys_setresgid(u32, u32, u32) _Hide;
|
||||
i32 sys_setresuid(u32, u32, u32) _Hide;
|
||||
i32 sys_setreuid(u32, u32) _Hide;
|
||||
i32 sys_setsid(void) _Hide;
|
||||
i32 sys_setuid(i32) _Hide;
|
||||
i32 sys_shm_open(const char *, i32, u32) _Hide;
|
||||
i32 sys_sigaction(i32, const void *, void *, i64, i64) _Hide;
|
||||
i32 sys_sigaltstack(const void *, void *) _Hide;
|
||||
i32 sys_symlinkat(const char *, i32, const char *) _Hide;
|
||||
i32 sys_sync(void) _Hide;
|
||||
i32 sys_sync_file_range(i32, i64, i64, u32) _Hide;
|
||||
i32 sys_syslog(i32, char *, i32) _Hide;
|
||||
i32 sys_tgkill(i32, i32, i32) _Hide;
|
||||
i32 sys_tkill(i32, i32, void *) _Hide;
|
||||
i32 sys_truncate(const char *, u64, u64) _Hide;
|
||||
i32 sys_uname(void *) _Hide;
|
||||
i32 sys_unlink(const char *) _Hide;
|
||||
i32 sys_unlinkat(i32, const char *, i32) _Hide;
|
||||
i32 sys_unmount(const char *, i32) _Hide;
|
||||
i32 sys_unveil(const char *, const char *) _Hide;
|
||||
i64 __sys_ptrace(i32, i32, i64, long *) _Hide;
|
||||
i64 sys_copy_file_range(i32, long *, i32, long *, u64, u32) _Hide;
|
||||
i64 sys_getrandom(void *, u64, u32) _Hide;
|
||||
i64 sys_lseek(i32, i64, i64, i64) _Hide;
|
||||
i64 sys_pread(i32, void *, u64, i64, i64) _Hide;
|
||||
i64 sys_pwrite(i32, const void *, u64, i64, i64) _Hide;
|
||||
i64 sys_read(i32, void *, u64) _Hide;
|
||||
i64 sys_readlinkat(i32, const char *, char *, u64) _Hide;
|
||||
i64 sys_sendfile(i32, i32, i64 *, u64) _Hide;
|
||||
i64 sys_splice(i32, i64 *, i32, i64 *, u64, u32) _Hide;
|
||||
i64 sys_write(i32, const void *, u64) _Hide;
|
||||
u32 sys_getegid(void) _Hide;
|
||||
u32 sys_geteuid(void) _Hide;
|
||||
u32 sys_getgid(void) _Hide;
|
||||
u32 sys_getuid(void) _Hide;
|
||||
u32 sys_umask(u32) _Hide;
|
||||
unsigned long _sysret(unsigned long) _Hide;
|
||||
void *__sys_mmap(void *, u64, u32, u32, i64, i64, i64) _Hide;
|
||||
void *__sys_mremap(void *, u64, u64, i32, void *) _Hide;
|
||||
void *sys_mremap(void *, u64, u64, i32, void *) _Hide;
|
||||
void sys_exit(i32) _Hide;
|
||||
axdx_t __sys_fork(void);
|
||||
axdx_t __sys_pipe(i32[hasatleast 2], i32);
|
||||
axdx_t sys_getpid(void);
|
||||
char *sys_getcwd(char *, u64);
|
||||
char *sys_getcwd_xnu(char *, u64);
|
||||
i32 __sys_dup3(i32, i32, i32);
|
||||
i32 __sys_execve(const char *, char *const[], char *const[]);
|
||||
i32 __sys_fcntl(i32, i32, ...);
|
||||
i32 __sys_fcntl_cp(i32, i32, ...);
|
||||
i32 __sys_fstat(i32, void *);
|
||||
i32 __sys_fstatat(i32, const char *, void *, i32);
|
||||
i32 __sys_gettid(i64 *);
|
||||
i32 __sys_munmap(void *, u64);
|
||||
i32 __sys_openat(i32, const char *, i32, u32);
|
||||
i32 __sys_openat_nc(i32, const char *, i32, u32);
|
||||
i32 __sys_pipe2(i32[hasatleast 2], u32);
|
||||
i32 sys_arch_prctl(i32, i64);
|
||||
i32 sys_chdir(const char *);
|
||||
i32 sys_chroot(const char *);
|
||||
i32 sys_close(i32);
|
||||
i32 sys_close_range(u32, u32, u32);
|
||||
i32 sys_closefrom(i32);
|
||||
i32 sys_dup(i32);
|
||||
i32 sys_dup2(i32, i32, i32);
|
||||
i32 sys_dup3(i32, i32, i32);
|
||||
i32 sys_execve(const char *, char *const[], char *const[]);
|
||||
i32 sys_execveat(i32, const char *, char *const[], char *const[], i32);
|
||||
i32 sys_faccessat(i32, const char *, i32, u32);
|
||||
i32 sys_faccessat2(i32, const char *, i32, u32);
|
||||
i32 sys_fadvise(i32, i64, i64, i32);
|
||||
i32 sys_fchdir(i32);
|
||||
i32 sys_fchmod(i32, u32);
|
||||
i32 sys_fchmodat(i32, const char *, u32, u32);
|
||||
i32 sys_fchown(i64, u32, u32);
|
||||
i32 sys_fchownat(i32, const char *, u32, u32, u32);
|
||||
i32 sys_fcntl(i32, i32, u64, i32 (*)(i32, i32, ...));
|
||||
i32 sys_fdatasync(i32);
|
||||
i32 sys_fexecve(i32, char *const[], char *const[]);
|
||||
i32 sys_flock(i32, i32);
|
||||
i32 sys_fork(void);
|
||||
i32 sys_fsync(i32);
|
||||
i32 sys_ftruncate(i32, i64, i64);
|
||||
i32 sys_getcontext(void *);
|
||||
i32 sys_getpgid(i32);
|
||||
i32 sys_getppid(void);
|
||||
i32 sys_getpriority(i32, u32);
|
||||
i32 sys_getresgid(u32 *, u32 *, u32 *);
|
||||
i32 sys_getresuid(u32 *, u32 *, u32 *);
|
||||
i32 sys_getsid(i32);
|
||||
i32 sys_gettid(void);
|
||||
i32 sys_ioctl(i32, u64, ...);
|
||||
i32 sys_ioctl_cp(i32, u64, ...);
|
||||
i32 sys_issetugid(void);
|
||||
i32 sys_kill(i32, i32, i32);
|
||||
i32 sys_linkat(i32, const char *, i32, const char *, i32);
|
||||
i32 sys_madvise(void *, size_t, i32);
|
||||
i32 sys_memfd_create(const char *, u32);
|
||||
i32 sys_mincore(void *, u64, unsigned char *);
|
||||
i32 sys_mkdirat(i32, const char *, u32);
|
||||
i32 sys_mkfifo(const char *, u32);
|
||||
i32 sys_mknod(const char *, u32, u64);
|
||||
i32 sys_mknodat(i32, const char *, u32, u64);
|
||||
i32 sys_mprotect(void *, u64, i32);
|
||||
i32 sys_msync(void *, u64, i32);
|
||||
i32 sys_munmap(void *, u64);
|
||||
i32 sys_openat(i32, const char *, i32, u32);
|
||||
i32 sys_pause(void);
|
||||
i32 sys_pipe(i32[hasatleast 2]);
|
||||
i32 sys_pipe2(i32[hasatleast 2], u32);
|
||||
i32 sys_pivot_root(const char *, const char *);
|
||||
i32 sys_pledge(const char *, const char *);
|
||||
i32 sys_posix_openpt(i32);
|
||||
i32 sys_renameat(i32, const char *, i32, const char *);
|
||||
i32 sys_sem_close(i64);
|
||||
i32 sys_sem_destroy(i64);
|
||||
i32 sys_sem_getvalue(i64, u32 *);
|
||||
i32 sys_sem_init(u32, i64 *);
|
||||
i32 sys_sem_open(const char *, int, u32, i64 *);
|
||||
i32 sys_sem_post(i64);
|
||||
i32 sys_sem_trywait(i64);
|
||||
i32 sys_sem_unlink(const char *);
|
||||
i32 sys_sem_wait(i64);
|
||||
i32 sys_setfsgid(i32);
|
||||
i32 sys_setfsuid(i32);
|
||||
i32 sys_setgid(i32);
|
||||
i32 sys_setpgid(i32, i32);
|
||||
i32 sys_setpriority(i32, u32, i32);
|
||||
i32 sys_setregid(u32, u32);
|
||||
i32 sys_setresgid(u32, u32, u32);
|
||||
i32 sys_setresuid(u32, u32, u32);
|
||||
i32 sys_setreuid(u32, u32);
|
||||
i32 sys_setsid(void);
|
||||
i32 sys_setuid(i32);
|
||||
i32 sys_shm_open(const char *, i32, u32);
|
||||
i32 sys_sigaction(i32, const void *, void *, i64, i64);
|
||||
i32 sys_sigaltstack(const void *, void *);
|
||||
i32 sys_symlinkat(const char *, i32, const char *);
|
||||
i32 sys_sync(void);
|
||||
i32 sys_sync_file_range(i32, i64, i64, u32);
|
||||
i32 sys_syslog(i32, char *, i32);
|
||||
i32 sys_tgkill(i32, i32, i32);
|
||||
i32 sys_tkill(i32, i32, void *);
|
||||
i32 sys_truncate(const char *, u64, u64);
|
||||
i32 sys_uname(void *);
|
||||
i32 sys_unlink(const char *);
|
||||
i32 sys_unlinkat(i32, const char *, i32);
|
||||
i32 sys_unmount(const char *, i32);
|
||||
i32 sys_unveil(const char *, const char *);
|
||||
i64 __sys_ptrace(i32, i32, i64, long *);
|
||||
i64 sys_copy_file_range(i32, long *, i32, long *, u64, u32);
|
||||
i64 sys_getrandom(void *, u64, u32);
|
||||
i64 sys_lseek(i32, i64, i64, i64);
|
||||
i64 sys_pread(i32, void *, u64, i64, i64);
|
||||
i64 sys_pwrite(i32, const void *, u64, i64, i64);
|
||||
i64 sys_read(i32, void *, u64);
|
||||
i64 sys_readlinkat(i32, const char *, char *, u64);
|
||||
i64 sys_sendfile(i32, i32, i64 *, u64);
|
||||
i64 sys_splice(i32, i64 *, i32, i64 *, u64, u32);
|
||||
i64 sys_write(i32, const void *, u64);
|
||||
u32 sys_getegid(void);
|
||||
u32 sys_geteuid(void);
|
||||
u32 sys_getgid(void);
|
||||
u32 sys_getuid(void);
|
||||
u32 sys_umask(u32);
|
||||
unsigned long _sysret(unsigned long);
|
||||
void *__sys_mmap(void *, u64, u32, u32, i64, i64, i64);
|
||||
void *__sys_mremap(void *, u64, u64, i32, void *);
|
||||
void *sys_mremap(void *, u64, u64, i32, void *);
|
||||
void sys_exit(i32);
|
||||
|
||||
#undef i32
|
||||
#undef i64
|
||||
|
|
|
@ -3,25 +3,25 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool isdirectory_nt(const char *) _Hide;
|
||||
bool isregularfile_nt(const char *) _Hide;
|
||||
bool issymlink_nt(const char *) _Hide;
|
||||
bool32 ntsetprivilege(int64_t, const char16_t *, uint32_t) _Hide;
|
||||
char16_t *CreatePipeName(char16_t *) _Hide;
|
||||
int __mkntpath(const char *, char16_t[hasatleast PATH_MAX]) _Hide;
|
||||
int __mkntpath2(const char *, char16_t[hasatleast PATH_MAX], int) _Hide;
|
||||
int __mkntpathat(int, const char *, int, char16_t[hasatleast PATH_MAX]) _Hide;
|
||||
int __sample_pids(int[hasatleast 64], int64_t[hasatleast 64], bool) _Hide;
|
||||
int ntaccesscheck(const char16_t *, uint32_t) paramsnonnull() _Hide;
|
||||
int sys_pause_nt(void) _Hide;
|
||||
int64_t __fix_enotdir(int64_t, char16_t *) _Hide;
|
||||
int64_t __fix_enotdir3(int64_t, char16_t *, char16_t *) _Hide;
|
||||
bool isdirectory_nt(const char *);
|
||||
bool isregularfile_nt(const char *);
|
||||
bool issymlink_nt(const char *);
|
||||
bool32 ntsetprivilege(int64_t, const char16_t *, uint32_t);
|
||||
char16_t *CreatePipeName(char16_t *);
|
||||
int __mkntpath(const char *, char16_t[hasatleast PATH_MAX]);
|
||||
int __mkntpath2(const char *, char16_t[hasatleast PATH_MAX], int);
|
||||
int __mkntpathat(int, const char *, int, char16_t[hasatleast PATH_MAX]);
|
||||
int __sample_pids(int[hasatleast 64], int64_t[hasatleast 64], bool);
|
||||
int ntaccesscheck(const char16_t *, uint32_t) paramsnonnull();
|
||||
int sys_pause_nt(void);
|
||||
int64_t __fix_enotdir(int64_t, char16_t *);
|
||||
int64_t __fix_enotdir3(int64_t, char16_t *, char16_t *);
|
||||
int64_t __winerr(void) nocallback privileged;
|
||||
int64_t ntreturn(uint32_t);
|
||||
void *GetProcAddressModule(const char *, const char *) _Hide;
|
||||
void WinMainForked(void) _Hide;
|
||||
void _check_sigalrm(void) _Hide;
|
||||
void _check_sigchld(void) _Hide;
|
||||
void *GetProcAddressModule(const char *, const char *);
|
||||
void WinMainForked(void);
|
||||
void _check_sigalrm(void);
|
||||
void _check_sigchld(void);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,27 +6,27 @@ COSMOPOLITAN_C_START_
|
|||
│ cosmopolitan § syscalls » system five » structless support ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
bool __is_linux_2_6_23(void) _Hide;
|
||||
bool __is_linux_2_6_23(void);
|
||||
bool32 sys_isatty_metal(int);
|
||||
int __fixupnewfd(int, int) _Hide;
|
||||
int __fixupnewfd(int, int);
|
||||
int __notziposat(int, const char *);
|
||||
int __tkill(int, int, void *) _Hide;
|
||||
int _fork(uint32_t) _Hide;
|
||||
int _isptmaster(int) _Hide;
|
||||
int _ptsname(int, char *, size_t) _Hide;
|
||||
int getdomainname_linux(char *, size_t) _Hide;
|
||||
int gethostname_bsd(char *, size_t, int) _Hide;
|
||||
int gethostname_linux(char *, size_t) _Hide;
|
||||
int gethostname_nt(char *, size_t, int) _Hide;
|
||||
int __tkill(int, int, void *);
|
||||
int _fork(uint32_t);
|
||||
int _isptmaster(int);
|
||||
int _ptsname(int, char *, size_t);
|
||||
int getdomainname_linux(char *, size_t);
|
||||
int gethostname_bsd(char *, size_t, int);
|
||||
int gethostname_linux(char *, size_t);
|
||||
int gethostname_nt(char *, size_t, int);
|
||||
int sys_msyscall(void *, size_t);
|
||||
long sys_bogus(void);
|
||||
ssize_t __getrandom(void *, size_t, unsigned) _Hide;
|
||||
void *__vdsosym(const char *, const char *) _Hide;
|
||||
void __onfork(void) _Hide;
|
||||
void __restore_rt() _Hide;
|
||||
void __restore_rt_netbsd(void) _Hide;
|
||||
void cosmo2flock(uintptr_t) _Hide;
|
||||
void flock2cosmo(uintptr_t) _Hide;
|
||||
ssize_t __getrandom(void *, size_t, unsigned);
|
||||
void *__vdsosym(const char *, const char *);
|
||||
void __onfork(void);
|
||||
void __restore_rt();
|
||||
void __restore_rt_netbsd(void);
|
||||
void cosmo2flock(uintptr_t);
|
||||
void flock2cosmo(uintptr_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_wait4_nt(int, int *, int, struct rusage *) _Hide;
|
||||
int sys_wait4_nt(int, int *, int, struct rusage *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -19,9 +19,8 @@
|
|||
#include "libc/calls/struct/iovec.h"
|
||||
#include "libc/calls/struct/iovec.internal.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/sock/sock.h"
|
||||
|
||||
ssize_t WritevUninterruptible(int fd, struct iovec *iov, int iovlen) {
|
||||
ssize_t __robust_writev(int fd, struct iovec *iov, int iovlen) {
|
||||
ssize_t rc;
|
||||
size_t wrote;
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue