mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Rename hidden keyword to _Hide
This commit is contained in:
parent
251dcb07eb
commit
bf7843833f
112 changed files with 616 additions and 3290 deletions
|
@ -4,7 +4,7 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern bool __assert_disable;
|
||||
void __assert_fail(const char *, const char *, int) hidden relegated;
|
||||
void __assert_fail(const char *, const char *, int) _Hide relegated;
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define assert(x) ((void)0)
|
||||
|
|
|
@ -119,7 +119,7 @@ clock_gettime_f *__clock_gettime_get(bool *opt_out_isfast) {
|
|||
return res;
|
||||
}
|
||||
|
||||
hidden int __clock_gettime_init(int clockid, struct timespec *ts) {
|
||||
_Hide 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 *) hidden;
|
||||
int __clock_gettime_init(int, struct timespec *) hidden;
|
||||
int sys_clock_gettime_mono(struct timespec *) hidden;
|
||||
clock_gettime_f *__clock_gettime_get(bool *) _Hide;
|
||||
int __clock_gettime_init(int, struct timespec *) _Hide;
|
||||
int sys_clock_gettime_mono(struct timespec *) _Hide;
|
||||
|
||||
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) hidden;
|
||||
void sys_fcntl_nt_lock_cleanup(int) _Hide;
|
||||
|
||||
textwindows int sys_close_nt(struct Fd *fd, int fildes) {
|
||||
int e;
|
||||
|
|
|
@ -98,7 +98,7 @@ static textwindows bool EqualsFileLock(struct FileLock *fl, int64_t off,
|
|||
return fl->off == off && off + len == fl->off + fl->len;
|
||||
}
|
||||
|
||||
hidden textwindows void sys_fcntl_nt_lock_cleanup(int fd) {
|
||||
_Hide 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;) {
|
||||
|
|
|
@ -97,7 +97,7 @@ gettimeofday_f *__gettimeofday_get(bool *opt_out_isfast) {
|
|||
return res;
|
||||
}
|
||||
|
||||
hidden int __gettimeofday_init(struct timeval *tv, struct timezone *tz) {
|
||||
_Hide int __gettimeofday_init(struct timeval *tv, struct timezone *tz) {
|
||||
gettimeofday_f *gettime;
|
||||
__gettimeofday = gettime = __gettimeofday_get(0);
|
||||
return gettime(tv, tz, 0).ax;
|
||||
|
|
|
@ -12,15 +12,15 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
#define kIoMotion ((const int8_t[3]){1, 0, 0})
|
||||
|
||||
hidden extern struct Fds g_fds;
|
||||
hidden extern const struct Fd kEmptyFd;
|
||||
_Hide extern struct Fds g_fds;
|
||||
_Hide extern const struct Fd kEmptyFd;
|
||||
|
||||
int __reservefd(int) hidden;
|
||||
int __reservefd_unlocked(int) hidden;
|
||||
void __releasefd(int) hidden;
|
||||
int __ensurefds(int) hidden;
|
||||
int __ensurefds_unlocked(int) hidden;
|
||||
void __printfds(void) hidden;
|
||||
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;
|
||||
|
||||
forceinline int64_t __getfdhandleactual(int fd) {
|
||||
return g_fds.p[fd].handle;
|
||||
|
@ -42,8 +42,8 @@ forceinline size_t _clampio(size_t size) {
|
|||
}
|
||||
}
|
||||
|
||||
int sys_close_nt(struct Fd *, int) hidden;
|
||||
int _check_interrupts(bool, struct Fd *) hidden;
|
||||
int sys_close_nt(struct Fd *, int) _Hide;
|
||||
int _check_interrupts(bool, struct Fd *) _Hide;
|
||||
int sys_openat_metal(int, const char *, int, unsigned);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -43,11 +43,11 @@
|
|||
* The ifc_len is an input/output parameter: set it to the total size of
|
||||
* the ifcu_buf (ifcu_req) buffer on input.
|
||||
*/
|
||||
int ioctl_siocgifconf_nt(int, struct ifconf *) hidden;
|
||||
int ioctl_siocgifaddr_nt(int, struct ifreq *) hidden;
|
||||
int ioctl_siocgifflags_nt(int, struct ifreq *) hidden;
|
||||
int ioctl_siocgifnetmask_nt(int, struct ifreq *) hidden;
|
||||
int ioctl_siocgifbrdaddr_nt(int, struct ifreq *) hidden;
|
||||
int ioctl_siocgifconf_nt(int, struct ifconf *) _Hide;
|
||||
int ioctl_siocgifaddr_nt(int, struct ifreq *) _Hide;
|
||||
int ioctl_siocgifflags_nt(int, struct ifreq *) _Hide;
|
||||
int ioctl_siocgifnetmask_nt(int, struct ifreq *) _Hide;
|
||||
int ioctl_siocgifbrdaddr_nt(int, struct ifreq *) _Hide;
|
||||
|
||||
static int ioctl_siocgifconf_sysv(int fd, struct ifconf *ifc) {
|
||||
/*
|
||||
|
|
|
@ -18,18 +18,18 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/internal.h"
|
||||
#include "libc/calls/ioctl.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
#include "libc/calls/struct/metatermios.internal.h"
|
||||
#include "libc/calls/syscall-sysv.internal.h"
|
||||
#include "libc/calls/termios.internal.h"
|
||||
#include "libc/calls/ttydefaults.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/intrin/asan.internal.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/termios.h"
|
||||
#include "libc/sysv/errfuns.h"
|
||||
|
||||
int ioctl_tcgets_nt(int, struct termios *) hidden;
|
||||
int ioctl_tcgets_nt(int, struct termios *) _Hide;
|
||||
|
||||
static int ioctl_tcgets_metal(int fd, struct termios *tio) {
|
||||
bzero(tio, sizeof(*tio));
|
||||
|
|
|
@ -19,4 +19,4 @@
|
|||
#include "libc/calls/internal.h"
|
||||
#include "libc/calls/struct/fd.internal.h"
|
||||
|
||||
hidden const struct Fd kEmptyFd;
|
||||
_Hide const struct Fd kEmptyFd;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/ntmagicpaths.internal.h"
|
||||
|
||||
hidden const struct NtMagicPaths kNtMagicPaths = {
|
||||
_Hide const struct NtMagicPaths kNtMagicPaths = {
|
||||
#define TAB(NAME, STRING) STRING,
|
||||
#include "libc/calls/ntmagicpaths.inc"
|
||||
#undef TAB
|
||||
|
|
|
@ -9,7 +9,7 @@ struct NtMagicPaths {
|
|||
#undef TAB
|
||||
};
|
||||
|
||||
hidden extern const struct NtMagicPaths kNtMagicPaths;
|
||||
_Hide 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], const char *, char *const[]) hidden;
|
||||
int mkntcmdline(char16_t[ARG_MAX / 2], const char *, char *const[]) _Hide;
|
||||
int mkntenvblock(char16_t[ARG_MAX / 2], char *const[], const char *,
|
||||
char[ARG_MAX]) hidden;
|
||||
char[ARG_MAX]) _Hide;
|
||||
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 *) hidden;
|
||||
struct NtProcessInformation *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -11,10 +11,10 @@ struct Pledges {
|
|||
const size_t len;
|
||||
};
|
||||
|
||||
hidden extern const struct Pledges kPledge[PROMISE_LEN_];
|
||||
_Hide extern const struct Pledges kPledge[PROMISE_LEN_];
|
||||
|
||||
int sys_pledge_linux(unsigned long, int) hidden;
|
||||
int ParsePromises(const char *, unsigned long *) hidden;
|
||||
int sys_pledge_linux(unsigned long, int) _Hide;
|
||||
int ParsePromises(const char *, unsigned long *) _Hide;
|
||||
|
||||
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 *) hidden;
|
||||
int sys_sched_setaffinity(int, uint64_t, const void *) _Hide;
|
||||
int sys_sched_setparam(int, const struct sched_param *);
|
||||
int sys_sched_setscheduler(int, int, const struct sched_param *);
|
||||
int sys_sched_yield(void) hidden;
|
||||
int64_t sys_sched_getaffinity(int, uint64_t, void *) hidden;
|
||||
int sys_sched_yield(void) _Hide;
|
||||
int64_t sys_sched_getaffinity(int, uint64_t, void *) _Hide;
|
||||
|
||||
int sys_sched_getscheduler_netbsd(int, struct sched_param *);
|
||||
int sys_sched_setparam_netbsd(int, int, int, const struct sched_param *) //
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
#include "libc/calls/struct/timespec.internal.h"
|
||||
#include "libc/intrin/describeflags.internal.h"
|
||||
#include "libc/intrin/strace.internal.h"
|
||||
|
||||
int sys_sched_rr_get_interval(int, struct timespec *) hidden;
|
||||
int sys_sched_rr_get_interval(int, struct timespec *) _Hide;
|
||||
|
||||
/**
|
||||
* Returns round-robin `SCHED_RR` quantum for `pid`.
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -28,14 +28,14 @@ struct Signals {
|
|||
extern struct Signals __sig;
|
||||
extern atomic_long __sig_count;
|
||||
|
||||
bool __sig_check(bool) hidden;
|
||||
bool __sig_handle(bool, int, int, ucontext_t *) hidden;
|
||||
int __sig_add(int, int, int) hidden;
|
||||
int __sig_mask(int, const sigset_t *, sigset_t *) hidden;
|
||||
int __sig_raise(int, int) hidden;
|
||||
void __sig_check_ignore(const int, const unsigned) hidden;
|
||||
void __sig_pending(sigset_t *) hidden;
|
||||
int __sig_is_applicable(struct Signal *) hidden;
|
||||
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;
|
||||
|
||||
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) hidden;
|
||||
const struct timespec *, size_t) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
hidden extern int __vforked;
|
||||
hidden extern bool __time_critical;
|
||||
hidden extern unsigned __sighandrvas[NSIG];
|
||||
hidden extern unsigned __sighandflags[NSIG];
|
||||
hidden extern pthread_mutex_t __fds_lock_obj;
|
||||
hidden extern pthread_mutex_t __sig_lock_obj;
|
||||
hidden extern const struct NtSecurityAttributes kNtIsInheritable;
|
||||
_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;
|
||||
|
||||
void __fds_lock(void);
|
||||
void __fds_unlock(void);
|
||||
|
|
|
@ -6,24 +6,24 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int64_t sys_preadv(int, struct iovec *, int, int64_t, int64_t) hidden;
|
||||
int64_t sys_pwritev(int, const struct iovec *, int, int64_t, int64_t) hidden;
|
||||
int64_t sys_readv(int32_t, const struct iovec *, int32_t) hidden;
|
||||
int64_t sys_vmsplice(int, const struct iovec *, int64_t, uint32_t) hidden;
|
||||
int64_t sys_writev(int32_t, const struct iovec *, int32_t) hidden;
|
||||
size_t __iovec_size(const struct iovec *, size_t) hidden;
|
||||
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, ssize_t) hidden;
|
||||
ssize_t sys_readv_metal(struct Fd *, const struct iovec *, int) hidden;
|
||||
ssize_t sys_readv_nt(struct Fd *, const struct iovec *, int) hidden;
|
||||
ssize_t sys_readv_serial(struct Fd *, const struct iovec *, int) hidden;
|
||||
ssize_t sys_write_nt(int, const struct iovec *, size_t, ssize_t) hidden;
|
||||
ssize_t sys_writev_metal(struct Fd *, const struct iovec *, int) hidden;
|
||||
ssize_t sys_writev_nt(int, const struct iovec *, int) hidden;
|
||||
ssize_t sys_writev_serial(struct Fd *, const struct iovec *, int) hidden;
|
||||
ssize_t sys_send_nt(int, const struct iovec *, size_t, uint32_t) hidden;
|
||||
ssize_t sys_read_nt(struct Fd *, const struct iovec *, size_t, ssize_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 sys_sendto_nt(int, const struct iovec *, size_t, uint32_t, void *,
|
||||
uint32_t) hidden;
|
||||
uint32_t) _Hide;
|
||||
|
||||
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 *) hidden;
|
||||
int sys_setitimer(int, const struct itimerval *, struct itimerval *) hidden;
|
||||
int sys_setitimer_nt(int, const struct itimerval *, struct itimerval *) hidden;
|
||||
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;
|
||||
|
||||
const char *DescribeTimeval(char[45], int, const struct timeval *);
|
||||
#define DescribeTimeval(rc, ts) DescribeTimeval(alloca(45), rc, ts)
|
||||
|
|
|
@ -94,7 +94,7 @@ union metastat {
|
|||
struct stat_netbsd netbsd;
|
||||
};
|
||||
|
||||
void __stat2cosmo(struct stat *restrict, const union metastat *) hidden;
|
||||
void __stat2cosmo(struct stat *restrict, const union metastat *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_getrlimit(int, struct rlimit *) hidden;
|
||||
int sys_setrlimit(int, const struct rlimit *) hidden;
|
||||
int sys_setrlimit_nt(int, const struct rlimit *) hidden;
|
||||
int sys_getrlimit(int, struct rlimit *) _Hide;
|
||||
int sys_setrlimit(int, const struct rlimit *) _Hide;
|
||||
int sys_setrlimit_nt(int, const struct rlimit *) _Hide;
|
||||
|
||||
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 *) hidden;
|
||||
int __sys_wait4(int, int *, int, struct rusage *) hidden;
|
||||
int sys_getrusage(int, struct rusage *) hidden;
|
||||
int sys_wait4(int, int *, int, struct rusage *) hidden;
|
||||
void __rusage2linux(struct rusage *) hidden;
|
||||
int sys_getrusage_nt(int, struct rusage *) hidden;
|
||||
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;
|
||||
|
||||
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 *) hidden;
|
||||
void __sigenter_wsl(int, struct siginfo *, void *) hidden;
|
||||
void __sigenter_netbsd(int, struct siginfo *, void *) hidden;
|
||||
void __sigenter_freebsd(int, struct siginfo *, void *) hidden;
|
||||
void __sigenter_openbsd(int, struct siginfo *, void *) hidden;
|
||||
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;
|
||||
|
||||
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 *) hidden;
|
||||
void __siginfo2cosmo(struct siginfo *, const union siginfo_meta *) _Hide;
|
||||
|
||||
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 *) hidden;
|
||||
int sys_sigqueueinfo(int, const siginfo_t *) _Hide;
|
||||
|
||||
const char *DescribeSiginfo(char[300], int, const siginfo_t *);
|
||||
#define DescribeSiginfo(x, y) DescribeSiginfo(alloca(300), x, y)
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
|
||||
int __sys_sigprocmask(int, const struct sigset *, struct sigset *,
|
||||
uint64_t) hidden;
|
||||
int sys_sigprocmask(int, const struct sigset *, struct sigset *) hidden;
|
||||
int sys_sigsuspend(const struct sigset *, uint64_t) hidden;
|
||||
int sys_sigpending(struct sigset *, size_t) hidden;
|
||||
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;
|
||||
|
||||
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) hidden;
|
||||
int sys_sigqueue(int, int, const union sigval) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_fstat(int, struct stat *) hidden;
|
||||
int sys_fstatat(int, const char *, struct stat *, int) hidden;
|
||||
int sys_fstat_nt(int64_t, struct stat *) hidden;
|
||||
int sys_fstatat_nt(int, const char *, struct stat *, int) hidden;
|
||||
int sys_lstat_nt(const char *, struct stat *) hidden;
|
||||
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_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 *) hidden;
|
||||
void statfs2cosmo(struct statfs *, const union statfs_meta *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_sysinfo(struct sysinfo *) hidden;
|
||||
int sys_sysinfo_nt(struct sysinfo *) hidden;
|
||||
int sys_sysinfo(struct sysinfo *) _Hide;
|
||||
int sys_sysinfo_nt(struct sysinfo *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -6,24 +6,24 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
int __sys_clock_nanosleep(int, int, const struct timespec *, struct timespec *) hidden;
|
||||
int __sys_utimensat(int, const char *, const struct timespec[2], int) hidden;
|
||||
int __utimens(int, const char *, const struct timespec[2], int) hidden;
|
||||
int sys_clock_getres(int, struct timespec *) hidden;
|
||||
int sys_clock_gettime(int, struct timespec *) hidden;
|
||||
int sys_clock_gettime_nt(int, struct timespec *) hidden;
|
||||
int sys_clock_gettime_xnu(int, struct timespec *) hidden;
|
||||
int sys_clock_nanosleep_nt(int, int, const struct timespec *, struct timespec *) hidden;
|
||||
int sys_clock_nanosleep_openbsd(int, int, const struct timespec *, struct timespec *) hidden;
|
||||
int sys_clock_nanosleep_xnu(int, int, const struct timespec *, struct timespec *) hidden;
|
||||
int sys_futimens(int, const struct timespec[2]) hidden;
|
||||
int sys_nanosleep(const struct timespec *, struct timespec *) hidden;
|
||||
int sys_nanosleep_nt(const struct timespec *, struct timespec *) hidden;
|
||||
int sys_nanosleep_xnu(const struct timespec *, struct timespec *) hidden;
|
||||
int sys_sem_timedwait(int64_t, const struct timespec *) hidden;
|
||||
int sys_utimensat(int, const char *, const struct timespec[2], int) hidden;
|
||||
int sys_utimensat_nt(int, const char *, const struct timespec[2], int) hidden;
|
||||
int sys_utimensat_xnu(int, const char *, const struct timespec[2], int) hidden;
|
||||
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_gettime(int, struct timespec *) _Hide;
|
||||
int sys_clock_gettime_nt(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;
|
||||
|
||||
const char *DescribeTimespec(char[45], int, const struct timespec *);
|
||||
#define DescribeTimespec(rc, ts) DescribeTimespec(alloca(45), rc, ts)
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
axdx_t sys_gettimeofday(struct timeval *, struct timezone *, void *) hidden;
|
||||
int sys_futimes(int, const struct timeval *) hidden;
|
||||
int sys_futimesat(int, const char *, const struct timeval *) hidden;
|
||||
int sys_lutimes(const char *, const struct timeval *) hidden;
|
||||
int sys_utimes(const char *, const struct timeval *) hidden;
|
||||
axdx_t sys_gettimeofday_xnu(struct timeval *, struct timezone *, void *) hidden;
|
||||
axdx_t sys_gettimeofday_nt(struct timeval *, struct timezone *, void *) hidden;
|
||||
int sys_utimes_nt(const char *, const struct timeval[2]) hidden;
|
||||
axdx_t sys_gettimeofday(struct timeval *, struct timezone *, void *) _Hide;
|
||||
int sys_futimes(int, const struct timeval *) _Hide;
|
||||
int sys_futimesat(int, const char *, 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_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_metal(struct timeval *, struct timezone *, void *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
void _ntcontext2linux(struct ucontext *, const struct NtContext *) hidden;
|
||||
void _ntlinux2context(struct NtContext *, const ucontext_t *) hidden;
|
||||
void _ntcontext2linux(struct ucontext *, const struct NtContext *) _Hide;
|
||||
void _ntlinux2context(struct NtContext *, const ucontext_t *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int ioctl_tiocgwinsz_nt(struct Fd *, struct winsize *) hidden;
|
||||
int ioctl_tiocgwinsz_nt(struct Fd *, struct winsize *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -3,40 +3,40 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool32 sys_isatty_nt(int) hidden;
|
||||
char *sys_getcwd_nt(char *, size_t) hidden;
|
||||
int sys_chdir_nt(const char *) hidden;
|
||||
int sys_close_epoll_nt(int) hidden;
|
||||
int sys_dup_nt(int, int, int, int) hidden;
|
||||
int sys_execve_nt(const char *, char *const[], char *const[]) hidden;
|
||||
int sys_faccessat_nt(int, const char *, int, uint32_t) hidden;
|
||||
int sys_fadvise_nt(int, uint64_t, uint64_t, int) hidden;
|
||||
int sys_fchdir_nt(int) hidden;
|
||||
int sys_fchmodat_nt(int, const char *, uint32_t, int) hidden;
|
||||
int sys_fcntl_nt(int, int, uintptr_t) hidden;
|
||||
int sys_fdatasync_nt(int) hidden;
|
||||
int sys_flock_nt(int, int) hidden;
|
||||
int sys_fork_nt(uint32_t) hidden;
|
||||
int sys_ftruncate_nt(int64_t, uint64_t) hidden;
|
||||
int sys_getloadavg_nt(double *, int) hidden;
|
||||
int sys_getppid_nt(void) hidden;
|
||||
int sys_getpriority_nt(int, unsigned) hidden;
|
||||
int sys_kill_nt(int, int) hidden;
|
||||
int sys_linkat_nt(int, const char *, int, const char *) hidden;
|
||||
int sys_madvise_nt(void *, size_t, int) hidden;
|
||||
int sys_mkdirat_nt(int, const char *, uint32_t) hidden;
|
||||
int sys_msync_nt(char *, size_t, int) hidden;
|
||||
int sys_open_nt(int, const char *, uint32_t, int32_t) dontdiscard hidden;
|
||||
int sys_pipe_nt(int[hasatleast 2], unsigned) hidden;
|
||||
int sys_renameat_nt(int, const char *, int, const char *) hidden;
|
||||
int sys_sched_yield_nt(void) hidden;
|
||||
int sys_setpriority_nt(int, unsigned, int) hidden;
|
||||
int sys_symlinkat_nt(const char *, int, const char *) hidden;
|
||||
int sys_sync_nt(void) hidden;
|
||||
int sys_truncate_nt(const char *, uint64_t) hidden;
|
||||
int sys_unlinkat_nt(int, const char *, int) hidden;
|
||||
int64_t sys_lseek_nt(int, int64_t, int) hidden;
|
||||
ssize_t sys_readlinkat_nt(int, const char *, char *, size_t) hidden;
|
||||
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;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -10,133 +10,133 @@ COSMOPOLITAN_C_START_
|
|||
│ cosmopolitan § syscalls » system five » structless synthetic jump slots ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
axdx_t __sys_fork(void) hidden;
|
||||
axdx_t __sys_pipe(i32[hasatleast 2], i32) hidden;
|
||||
axdx_t sys_getpid(void) hidden;
|
||||
char *sys_getcwd(char *, u64) hidden;
|
||||
char *sys_getcwd_xnu(char *, u64) hidden;
|
||||
i32 __sys_dup3(i32, i32, i32) hidden;
|
||||
i32 __sys_execve(const char *, char *const[], char *const[]) hidden;
|
||||
i32 __sys_fcntl(i32, i32, ...) hidden;
|
||||
i32 __sys_fcntl_cp(i32, i32, ...) hidden;
|
||||
i32 __sys_fstat(i32, void *) hidden;
|
||||
i32 __sys_fstatat(i32, const char *, void *, i32) hidden;
|
||||
i32 __sys_gettid(i64 *) hidden;
|
||||
i32 __sys_munmap(void *, u64) hidden;
|
||||
i32 __sys_openat(i32, const char *, i32, u32) hidden;
|
||||
i32 __sys_openat_nc(i32, const char *, i32, u32) hidden;
|
||||
i32 __sys_pipe2(i32[hasatleast 2], u32) hidden;
|
||||
i32 sys_arch_prctl(i32, i64) hidden;
|
||||
i32 sys_chdir(const char *) hidden;
|
||||
i32 sys_chroot(const char *) hidden;
|
||||
i32 sys_close(i32) hidden;
|
||||
i32 sys_close_range(u32, u32, u32) hidden;
|
||||
i32 sys_closefrom(i32) hidden;
|
||||
i32 sys_creat(const char *, u32) hidden;
|
||||
i32 sys_dup(i32) hidden;
|
||||
i32 sys_dup2(i32, i32) hidden;
|
||||
i32 sys_dup3(i32, i32, i32) hidden;
|
||||
i32 sys_execve(const char *, char *const[], char *const[]) hidden;
|
||||
i32 sys_faccessat(i32, const char *, i32, u32) hidden;
|
||||
i32 sys_faccessat2(i32, const char *, i32, u32) hidden;
|
||||
i32 sys_fadvise(i32, i64, i64, i32) hidden;
|
||||
i32 sys_fchdir(i32) hidden;
|
||||
i32 sys_fchmod(i32, u32) hidden;
|
||||
i32 sys_fchmodat(i32, const char *, u32, u32) hidden;
|
||||
i32 sys_fchown(i64, u32, u32) hidden;
|
||||
i32 sys_fchownat(i32, const char *, u32, u32, u32) hidden;
|
||||
i32 sys_fcntl(i32, i32, u64, i32 (*)(i32, i32, ...)) hidden;
|
||||
i32 sys_fdatasync(i32) hidden;
|
||||
i32 sys_flock(i32, i32) hidden;
|
||||
i32 sys_fork(void) hidden;
|
||||
i32 sys_fsync(i32) hidden;
|
||||
i32 sys_ftruncate(i32, i64, i64) hidden;
|
||||
i32 sys_getcontext(void *) hidden;
|
||||
i32 sys_getpgid(i32) hidden;
|
||||
i32 sys_getpgrp(void) hidden;
|
||||
i32 sys_getppid(void) hidden;
|
||||
i32 sys_getpriority(i32, u32) hidden;
|
||||
i32 sys_getresgid(u32 *, u32 *, u32 *) hidden;
|
||||
i32 sys_getresuid(u32 *, u32 *, u32 *) hidden;
|
||||
i32 sys_getsid(i32) hidden;
|
||||
i32 sys_gettid(void) hidden;
|
||||
i32 sys_ioctl(i32, u64, ...) hidden;
|
||||
i32 sys_ioctl_cp(i32, u64, ...) hidden;
|
||||
i32 sys_issetugid(void) hidden;
|
||||
i32 sys_kill(i32, i32, i32) hidden;
|
||||
i32 sys_linkat(i32, const char *, i32, const char *, i32) hidden;
|
||||
i32 sys_madvise(void *, size_t, i32) hidden;
|
||||
i32 sys_memfd_create(const char *, u32) hidden;
|
||||
i32 sys_mincore(void *, u64, unsigned char *) hidden;
|
||||
i32 sys_mkdirat(i32, const char *, u32) hidden;
|
||||
i32 sys_mkfifo(const char *, u32) hidden;
|
||||
i32 sys_mknod(const char *, u32, u64) hidden;
|
||||
i32 sys_mprotect(void *, u64, i32) hidden;
|
||||
i32 sys_msync(void *, u64, i32) hidden;
|
||||
i32 sys_munmap(void *, u64) hidden;
|
||||
i32 sys_open(const char *, i32, u32) hidden;
|
||||
i32 sys_openat(i32, const char *, i32, u32) hidden;
|
||||
i32 sys_pause(void) hidden;
|
||||
i32 sys_pipe(i32[hasatleast 2]) hidden;
|
||||
i32 sys_pipe2(i32[hasatleast 2], u32) hidden;
|
||||
i32 sys_pivot_root(const char *, const char *) hidden;
|
||||
i32 sys_pledge(const char *, const char *) hidden;
|
||||
i32 sys_posix_openpt(i32) hidden;
|
||||
i32 sys_renameat(i32, const char *, i32, const char *) hidden;
|
||||
i32 sys_sem_close(i64) hidden;
|
||||
i32 sys_sem_destroy(i64) hidden;
|
||||
i32 sys_sem_getvalue(i64, u32 *) hidden;
|
||||
i32 sys_sem_init(u32, i64 *) hidden;
|
||||
i32 sys_sem_open(const char *, int, u32, i64 *) hidden;
|
||||
i32 sys_sem_post(i64) hidden;
|
||||
i32 sys_sem_trywait(i64) hidden;
|
||||
i32 sys_sem_unlink(const char *) hidden;
|
||||
i32 sys_sem_wait(i64) hidden;
|
||||
i32 sys_setfsgid(i32) hidden;
|
||||
i32 sys_setfsuid(i32) hidden;
|
||||
i32 sys_setgid(i32) hidden;
|
||||
i32 sys_setpgid(i32, i32) hidden;
|
||||
i32 sys_setpriority(i32, u32, i32) hidden;
|
||||
i32 sys_setregid(u32, u32) hidden;
|
||||
i32 sys_setresgid(u32, u32, u32) hidden;
|
||||
i32 sys_setresuid(u32, u32, u32) hidden;
|
||||
i32 sys_setreuid(u32, u32) hidden;
|
||||
i32 sys_setsid(void) hidden;
|
||||
i32 sys_setuid(i32) hidden;
|
||||
i32 sys_sigaction(i32, const void *, void *, i64, i64) hidden;
|
||||
i32 sys_sigaltstack(const void *, void *) hidden;
|
||||
i32 sys_symlinkat(const char *, i32, const char *) hidden;
|
||||
i32 sys_sync(void) hidden;
|
||||
i32 sys_sync_file_range(i32, i64, i64, u32) hidden;
|
||||
i32 sys_syslog(i32, char *, i32) hidden;
|
||||
i32 sys_tgkill(i32, i32, i32) hidden;
|
||||
i32 sys_tkill(i32, i32, void *) hidden;
|
||||
i32 sys_truncate(const char *, u64, u64) hidden;
|
||||
i32 sys_uname(void *) hidden;
|
||||
i32 sys_unlink(const char *) hidden;
|
||||
i32 sys_unlinkat(i32, const char *, i32) hidden;
|
||||
i32 sys_unmount(const char *, i32) hidden;
|
||||
i32 sys_unveil(const char *, const char *) hidden;
|
||||
i64 __sys_ptrace(i32, i32, i64, long *) hidden;
|
||||
i64 sys_copy_file_range(i32, long *, i32, long *, u64, u32) hidden;
|
||||
i64 sys_getrandom(void *, u64, u32) hidden;
|
||||
i64 sys_lseek(i32, i64, i64, i64) hidden;
|
||||
i64 sys_pread(i32, void *, u64, i64, i64) hidden;
|
||||
i64 sys_pwrite(i32, const void *, u64, i64, i64) hidden;
|
||||
i64 sys_read(i32, void *, u64) hidden;
|
||||
i64 sys_readlink(const char *, char *, u64) hidden;
|
||||
i64 sys_readlinkat(i32, const char *, char *, u64) hidden;
|
||||
i64 sys_sendfile(i32, i32, i64 *, u64) hidden;
|
||||
i64 sys_splice(i32, i64 *, i32, i64 *, u64, u32) hidden;
|
||||
i64 sys_write(i32, const void *, u64) hidden;
|
||||
u32 sys_getegid(void) hidden;
|
||||
u32 sys_geteuid(void) hidden;
|
||||
u32 sys_getgid(void) hidden;
|
||||
u32 sys_getuid(void) hidden;
|
||||
u32 sys_umask(u32) hidden;
|
||||
void *__sys_mmap(void *, u64, u32, u32, i64, i64, i64) hidden;
|
||||
void *sys_mremap(void *, u64, u64, i32, void *) hidden;
|
||||
void sys_exit(i32) hidden;
|
||||
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_creat(const char *, u32) _Hide;
|
||||
i32 sys_dup(i32) _Hide;
|
||||
i32 sys_dup2(i32, i32) _Hide;
|
||||
i32 sys_dup3(i32, i32, i32) _Hide;
|
||||
i32 sys_execve(const char *, char *const[], char *const[]) _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_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_getpgrp(void) _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_mprotect(void *, u64, i32) _Hide;
|
||||
i32 sys_msync(void *, u64, i32) _Hide;
|
||||
i32 sys_munmap(void *, u64) _Hide;
|
||||
i32 sys_open(const char *, i32, u32) _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_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_readlink(const char *, char *, 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;
|
||||
void *__sys_mmap(void *, u64, u32, u32, i64, i64, i64) _Hide;
|
||||
void *sys_mremap(void *, u64, u64, i32, void *) _Hide;
|
||||
void sys_exit(i32) _Hide;
|
||||
|
||||
#undef i32
|
||||
#undef i64
|
||||
|
|
|
@ -3,25 +3,25 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
bool isdirectory_nt(const char *) hidden;
|
||||
bool isregularfile_nt(const char *) hidden;
|
||||
bool issymlink_nt(const char *) hidden;
|
||||
bool32 ntsetprivilege(int64_t, const char16_t *, uint32_t) hidden;
|
||||
char16_t *CreatePipeName(char16_t *) hidden;
|
||||
int __mkntpath(const char *, char16_t[hasatleast PATH_MAX]) hidden;
|
||||
int __mkntpath2(const char *, char16_t[hasatleast PATH_MAX], int) hidden;
|
||||
int __mkntpathat(int, const char *, int, char16_t[hasatleast PATH_MAX]) hidden;
|
||||
int __sample_pids(int[hasatleast 64], int64_t[hasatleast 64], bool) hidden;
|
||||
int ntaccesscheck(const char16_t *, uint32_t) paramsnonnull() hidden;
|
||||
int sys_pause_nt(void) hidden;
|
||||
int64_t __fix_enotdir(int64_t, char16_t *) hidden;
|
||||
int64_t __fix_enotdir3(int64_t, char16_t *, char16_t *) hidden;
|
||||
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;
|
||||
int64_t __winerr(void) nocallback privileged;
|
||||
int64_t ntreturn(uint32_t);
|
||||
void *GetProcAddressModule(const char *, const char *) hidden;
|
||||
void WinMainForked(void) hidden;
|
||||
void _check_sigalrm(void) hidden;
|
||||
void _check_sigchld(void) hidden;
|
||||
void *GetProcAddressModule(const char *, const char *) _Hide;
|
||||
void WinMainForked(void) _Hide;
|
||||
void _check_sigalrm(void) _Hide;
|
||||
void _check_sigchld(void) _Hide;
|
||||
|
||||
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) hidden;
|
||||
bool __is_linux_2_6_23(void) _Hide;
|
||||
bool32 sys_isatty_metal(int);
|
||||
int __fixupnewfd(int, int) hidden;
|
||||
int __fixupnewfd(int, int) _Hide;
|
||||
int __notziposat(int, const char *);
|
||||
int __tkill(int, int, void *) hidden;
|
||||
int _fork(uint32_t) hidden;
|
||||
int _isptmaster(int) hidden;
|
||||
int _ptsname(int, char *, size_t) hidden;
|
||||
int getdomainname_linux(char *, size_t) hidden;
|
||||
int gethostname_bsd(char *, size_t, int) hidden;
|
||||
int gethostname_linux(char *, size_t) hidden;
|
||||
int gethostname_nt(char *, size_t, int) hidden;
|
||||
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 sys_msyscall(void *, size_t);
|
||||
long sys_bogus(void);
|
||||
ssize_t __getrandom(void *, size_t, unsigned) hidden;
|
||||
void *__vdsosym(const char *, const char *) hidden;
|
||||
void __onfork(void) hidden;
|
||||
void __restore_rt() hidden;
|
||||
void __restore_rt_netbsd(void) hidden;
|
||||
void cosmo2flock(uintptr_t) hidden;
|
||||
void flock2cosmo(uintptr_t) hidden;
|
||||
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;
|
||||
|
||||
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 *) hidden;
|
||||
int sys_wait4_nt(int, int *, int, struct rusage *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -7,7 +7,7 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
unsigned __wincrash_nt(struct NtExceptionPointers *);
|
||||
struct NtOverlapped *_offset2overlap(int64_t, int64_t,
|
||||
struct NtOverlapped *) hidden;
|
||||
struct NtOverlapped *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -109,7 +109,7 @@ static int __fmt_atoi(const char **str) {
|
|||
* @asyncsignalsafe if floating point isn't used
|
||||
* @vforksafe if floating point isn't used
|
||||
*/
|
||||
hidden int __fmt(void *fn, void *arg, const char *format, va_list va) {
|
||||
_Hide int __fmt(void *fn, void *arg, const char *format, va_list va) {
|
||||
long ld;
|
||||
void *p;
|
||||
unsigned u;
|
||||
|
|
|
@ -26,7 +26,7 @@ int sscanf(const char *, const char *, ...) scanfesque(2);
|
|||
int vsscanf(const char *, const char *, va_list);
|
||||
int vcscanf(int (*)(void *), int (*)(int, void *), void *, const char *,
|
||||
va_list);
|
||||
int __fmt(void *, void *, const char *, va_list) hidden;
|
||||
int __fmt(void *, void *, const char *, va_list) _Hide;
|
||||
char *itoa(int, char *, int) compatfn;
|
||||
char *fcvt(double, int, int *, int *);
|
||||
char *ecvt(double, int, int *, int *);
|
||||
|
|
|
@ -15,13 +15,13 @@ COSMOPOLITAN_C_START_
|
|||
} while (0)
|
||||
|
||||
int __fmt_pad(int (*)(const char *, void *, size_t), void *,
|
||||
unsigned long) hidden;
|
||||
unsigned long) _Hide;
|
||||
int __fmt_stoa(int (*)(const char *, void *, size_t), void *, void *,
|
||||
unsigned long, unsigned long, unsigned long, unsigned char,
|
||||
unsigned char) hidden;
|
||||
unsigned char) _Hide;
|
||||
int __fmt_ntoa(int (*)(const char *, void *, size_t), void *, va_list,
|
||||
unsigned char, unsigned long, unsigned long, unsigned long,
|
||||
unsigned char, const char *) hidden;
|
||||
unsigned char, const char *) _Hide;
|
||||
int __fmt_dtoa(int (*)(const char *, void *, size_t), void *, int, int, int,
|
||||
int, int, bool, char, unsigned char, const char *, va_list);
|
||||
|
||||
|
|
|
@ -16,16 +16,16 @@ struct MagnumStr {
|
|||
int x, s;
|
||||
};
|
||||
|
||||
hidden extern const struct MagnumStr kClockNames[];
|
||||
hidden extern const struct MagnumStr kErrnoDocs[];
|
||||
hidden extern const struct MagnumStr kErrnoNames[];
|
||||
hidden extern const struct MagnumStr kFcntlCmds[];
|
||||
hidden extern const struct MagnumStr kIpOptnames[];
|
||||
hidden extern const struct MagnumStr kOpenFlags[];
|
||||
hidden extern const struct MagnumStr kRlimitNames[];
|
||||
hidden extern const struct MagnumStr kSignalNames[];
|
||||
hidden extern const struct MagnumStr kSockOptnames[];
|
||||
hidden extern const struct MagnumStr kTcpOptnames[];
|
||||
_Hide extern const struct MagnumStr kClockNames[];
|
||||
_Hide extern const struct MagnumStr kErrnoDocs[];
|
||||
_Hide extern const struct MagnumStr kErrnoNames[];
|
||||
_Hide extern const struct MagnumStr kFcntlCmds[];
|
||||
_Hide extern const struct MagnumStr kIpOptnames[];
|
||||
_Hide extern const struct MagnumStr kOpenFlags[];
|
||||
_Hide extern const struct MagnumStr kRlimitNames[];
|
||||
_Hide extern const struct MagnumStr kSignalNames[];
|
||||
_Hide extern const struct MagnumStr kSockOptnames[];
|
||||
_Hide extern const struct MagnumStr kTcpOptnames[];
|
||||
|
||||
char *GetMagnumStr(const struct MagnumStr *, int);
|
||||
char *DescribeMagnum(char *, const struct MagnumStr *, const char *, int);
|
||||
|
|
|
@ -188,12 +188,12 @@ typedef struct {
|
|||
#define strftimeesque(n)
|
||||
#endif
|
||||
|
||||
#ifndef hidden
|
||||
#ifndef _Hide
|
||||
#if !defined(__STRICT_ANSI__) && \
|
||||
(__has_attribute(__visibility__) || defined(__GNUC__)) && !defined(_WIN32)
|
||||
#define hidden __attribute__((__visibility__("hidden")))
|
||||
#define _Hide __attribute__((__visibility__("hidden")))
|
||||
#else
|
||||
#define hidden
|
||||
#define _Hide
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ struct Env {
|
|||
int i;
|
||||
};
|
||||
|
||||
struct Env _getenv(char **, const char *) hidden;
|
||||
struct Env _getenv(char **, const char *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/nt/struct/securityattributes.h"
|
||||
|
||||
hidden const struct NtSecurityAttributes kNtIsInheritable = {
|
||||
_Hide const struct NtSecurityAttributes kNtIsInheritable = {
|
||||
sizeof(struct NtSecurityAttributes),
|
||||
NULL,
|
||||
true,
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
#include "libc/thread/tls2.h"
|
||||
#include "libc/vga/vga.internal.h"
|
||||
|
||||
extern hidden struct SymbolTable *__symtab;
|
||||
extern _Hide struct SymbolTable *__symtab;
|
||||
|
||||
privileged static inline char *kadvance(char *p, char *e, long n) {
|
||||
intptr_t t = (intptr_t)p;
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/log/gdb.h"
|
||||
|
||||
volatile int g_gdbsync hidden;
|
||||
volatile int g_gdbsync _Hide;
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden bool __nocolor;
|
||||
extern hidden int kCrashSigs[8];
|
||||
extern hidden bool _wantcrashreports;
|
||||
extern hidden bool g_isrunningundermake;
|
||||
extern _Hide bool __nocolor;
|
||||
extern _Hide int kCrashSigs[8];
|
||||
extern _Hide bool _wantcrashreports;
|
||||
extern _Hide bool g_isrunningundermake;
|
||||
|
||||
void __start_fatal(const char *, int) hidden;
|
||||
void __start_fatal(const char *, int) _Hide;
|
||||
void __oncrash(int, struct siginfo *, struct ucontext *) relegated;
|
||||
void __restore_tty(void);
|
||||
void RestoreDefaultCrashSignalHandlers(void);
|
||||
|
|
|
@ -9,7 +9,7 @@ struct CritbitNode {
|
|||
unsigned otherbits;
|
||||
};
|
||||
|
||||
int PutEnvImpl(char *, bool) hidden;
|
||||
int PutEnvImpl(char *, bool) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -9,9 +9,9 @@ void crc32init(uint32_t[hasatleast 256], uint32_t);
|
|||
uint32_t crc32a(uint32_t, const void *, size_t);
|
||||
uint32_t crc32c(uint32_t, const void *, size_t);
|
||||
uint32_t crc32_z(uint32_t, const void *, size_t);
|
||||
uint32_t crc32c_pure(uint32_t, const void *, size_t) strlenesque hidden;
|
||||
uint32_t crc32c_sse42(uint32_t, const void *, size_t) strlenesque hidden;
|
||||
uint32_t crc32_pclmul(uint32_t, const void *, size_t) hidden;
|
||||
uint32_t crc32c_pure(uint32_t, const void *, size_t) strlenesque _Hide;
|
||||
uint32_t crc32c_sse42(uint32_t, const void *, size_t) strlenesque _Hide;
|
||||
uint32_t crc32_pclmul(uint32_t, const void *, size_t) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -13,11 +13,11 @@ struct RlDecode {
|
|||
uint8_t byte;
|
||||
};
|
||||
|
||||
void rldecode(void *dest, const struct RlDecode *) hidden;
|
||||
void rldecode2(void *dest, const struct RlDecode *) hidden;
|
||||
const uint8_t *lz4check(const void *data) hidden;
|
||||
void *lz4cpy(void *dest, const void *blockdata, size_t blocksize) hidden;
|
||||
void *lz4decode(void *dest, const void *src) hidden;
|
||||
void rldecode(void *dest, const struct RlDecode *) _Hide;
|
||||
void rldecode2(void *dest, const struct RlDecode *) _Hide;
|
||||
const uint8_t *lz4check(const void *data) _Hide;
|
||||
void *lz4cpy(void *dest, const void *blockdata, size_t blocksize) _Hide;
|
||||
void *lz4decode(void *dest, const void *src) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "libc/sysv/consts/sig.h"
|
||||
|
||||
// kudos rich felker for the brilliant design
|
||||
hidden int __sigsetjmp_tail(sigjmp_buf jb, int rc) {
|
||||
_Hide int __sigsetjmp_tail(sigjmp_buf jb, int rc) {
|
||||
_Static_assert(
|
||||
sizeof(sigjmp_buf) == sizeof(jmp_buf) + 8 + 8 + sizeof(sigset_t),
|
||||
"please recompute sigjmp_buf w.r.t. sigset_t");
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
// TODO(jart): DELETE
|
||||
|
||||
hidden int MapFileRead(const char *filename, struct MappedFile *mf) {
|
||||
_Hide int MapFileRead(const char *filename, struct MappedFile *mf) {
|
||||
mf->addr = MAP_FAILED;
|
||||
if ((mf->fd = open(filename, O_RDONLY)) != -1 &&
|
||||
(mf->size = getfiledescriptorsize(mf->fd)) < INT_MAX &&
|
||||
|
@ -42,7 +42,7 @@ hidden int MapFileRead(const char *filename, struct MappedFile *mf) {
|
|||
}
|
||||
}
|
||||
|
||||
hidden int UnmapFile(struct MappedFile *mf) {
|
||||
_Hide int UnmapFile(struct MappedFile *mf) {
|
||||
int rc;
|
||||
rc = 0;
|
||||
if (mf->addr && mf->addr != MAP_FAILED) {
|
||||
|
|
|
@ -9,8 +9,8 @@ struct MappedFile {
|
|||
size_t size;
|
||||
};
|
||||
|
||||
int MapFileRead(const char *, struct MappedFile *) hidden;
|
||||
int UnmapFile(struct MappedFile *) hidden;
|
||||
int MapFileRead(const char *, struct MappedFile *) _Hide;
|
||||
int UnmapFile(struct MappedFile *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "third_party/zlib/puff.h"
|
||||
|
||||
static pthread_spinlock_t g_lock;
|
||||
hidden struct SymbolTable *__symtab; // for kprintf
|
||||
_Hide struct SymbolTable *__symtab; // for kprintf
|
||||
|
||||
/**
|
||||
* Looks for `.symtab` in zip central directory.
|
||||
|
|
|
@ -28,21 +28,21 @@ extern unsigned char _tbss_offset[];
|
|||
extern unsigned char _tls_size[];
|
||||
extern unsigned char _tls_content[];
|
||||
|
||||
void _init(void) hidden;
|
||||
void _init(void) _Hide;
|
||||
void __morph_tls(void);
|
||||
void __enable_tls(void);
|
||||
void __enable_threads(void) hidden;
|
||||
void *__cxa_finalize(void *) hidden;
|
||||
void cosmo(int, char **, char **, long (*)[2]) hidden wontreturn;
|
||||
void __enable_threads(void) _Hide;
|
||||
void *__cxa_finalize(void *) _Hide;
|
||||
void cosmo(int, char **, char **, long (*)[2]) _Hide wontreturn;
|
||||
void __stack_chk_fail(void) wontreturn relegated;
|
||||
void __stack_chk_fail_local(void) wontreturn relegated hidden;
|
||||
void _jmpstack(void *, void *, ...) hidden wontreturn;
|
||||
long _setstack(void *, void *, ...) hidden;
|
||||
void __stack_chk_fail_local(void) wontreturn relegated _Hide;
|
||||
void _jmpstack(void *, void *, ...) _Hide wontreturn;
|
||||
long _setstack(void *, void *, ...) _Hide;
|
||||
int GetDosArgv(const char16_t *, char *, size_t, char **, size_t);
|
||||
Elf64_Ehdr *MapElfRead(const char *, struct MappedFile *) hidden;
|
||||
Elf64_Ehdr *MapElfRead(const char *, struct MappedFile *) _Hide;
|
||||
int GetDosEnviron(const char16_t *, char *, size_t, char **, size_t);
|
||||
bool __intercept_flag(int *, char *[], const char *);
|
||||
int sys_mprotect_nt(void *, size_t, int) hidden;
|
||||
int sys_mprotect_nt(void *, size_t, int) _Hide;
|
||||
int __inflate(void *, size_t, const void *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "libc/runtime/ezmap.internal.h"
|
||||
#include "libc/runtime/internal.h"
|
||||
|
||||
hidden Elf64_Ehdr *MapElfRead(const char *filename, struct MappedFile *mf) {
|
||||
_Hide Elf64_Ehdr *MapElfRead(const char *filename, struct MappedFile *mf) {
|
||||
if (MapFileRead(filename, mf) != -1 && IsElf64Binary(mf->addr, mf->size)) {
|
||||
return mf->addr;
|
||||
} else {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* This only supports %d and %s. It'll will work even if .rodata hasn't
|
||||
* been loaded into memory yet.
|
||||
*/
|
||||
hidden textreal void(MetalPrintf)(const char *fmt, ...) {
|
||||
_Hide textreal void(MetalPrintf)(const char *fmt, ...) {
|
||||
int i;
|
||||
char c;
|
||||
unsigned u;
|
||||
|
|
|
@ -46,62 +46,62 @@ struct SockFd {
|
|||
struct NtOverlapped *inout_lpOverlapped);
|
||||
};
|
||||
|
||||
errno_t __dos2errno(uint32_t) hidden;
|
||||
errno_t __dos2errno(uint32_t) _Hide;
|
||||
|
||||
int32_t __sys_accept(int32_t, void *, uint32_t *, int) dontdiscard hidden;
|
||||
int32_t __sys_accept4(int32_t, void *, uint32_t *, int) dontdiscard hidden;
|
||||
int32_t __sys_bind(int32_t, const void *, uint32_t) hidden;
|
||||
int32_t __sys_connect(int32_t, const void *, uint32_t) hidden;
|
||||
int32_t __sys_getpeername(int32_t, void *, uint32_t *) hidden;
|
||||
int32_t __sys_getsockname(int32_t, void *, uint32_t *) hidden;
|
||||
int32_t __sys_socket(int32_t, int32_t, int32_t) hidden;
|
||||
int32_t __sys_socketpair(int32_t, int32_t, int32_t, int32_t[2]) hidden;
|
||||
int32_t __sys_accept(int32_t, void *, uint32_t *, int) dontdiscard _Hide;
|
||||
int32_t __sys_accept4(int32_t, void *, uint32_t *, int) dontdiscard _Hide;
|
||||
int32_t __sys_bind(int32_t, const void *, uint32_t) _Hide;
|
||||
int32_t __sys_connect(int32_t, const void *, uint32_t) _Hide;
|
||||
int32_t __sys_getpeername(int32_t, void *, uint32_t *) _Hide;
|
||||
int32_t __sys_getsockname(int32_t, void *, uint32_t *) _Hide;
|
||||
int32_t __sys_socket(int32_t, int32_t, int32_t) _Hide;
|
||||
int32_t __sys_socketpair(int32_t, int32_t, int32_t, int32_t[2]) _Hide;
|
||||
|
||||
int32_t sys_accept4(int32_t, void *, uint32_t *, int) dontdiscard hidden;
|
||||
int32_t sys_accept(int32_t, void *, uint32_t *) hidden;
|
||||
int32_t sys_bind(int32_t, const void *, uint32_t) hidden;
|
||||
int32_t sys_connect(int32_t, const void *, uint32_t) hidden;
|
||||
int32_t sys_getsockopt(int32_t, int32_t, int32_t, void *, uint32_t *) hidden;
|
||||
int32_t sys_listen(int32_t, int32_t) hidden;
|
||||
int32_t sys_getsockname(int32_t, void *, uint32_t *) hidden;
|
||||
int32_t sys_getpeername(int32_t, void *, uint32_t *) hidden;
|
||||
int32_t sys_shutdown(int32_t, int32_t) hidden;
|
||||
int32_t sys_socket(int32_t, int32_t, int32_t) hidden;
|
||||
int32_t sys_socketpair(int32_t, int32_t, int32_t, int32_t[2]) hidden;
|
||||
ssize_t sys_recvfrom(int, void *, size_t, int, void *, uint32_t *) hidden;
|
||||
int32_t sys_accept4(int32_t, void *, uint32_t *, int) dontdiscard _Hide;
|
||||
int32_t sys_accept(int32_t, void *, uint32_t *) _Hide;
|
||||
int32_t sys_bind(int32_t, const void *, uint32_t) _Hide;
|
||||
int32_t sys_connect(int32_t, const void *, uint32_t) _Hide;
|
||||
int32_t sys_getsockopt(int32_t, int32_t, int32_t, void *, uint32_t *) _Hide;
|
||||
int32_t sys_listen(int32_t, int32_t) _Hide;
|
||||
int32_t sys_getsockname(int32_t, void *, uint32_t *) _Hide;
|
||||
int32_t sys_getpeername(int32_t, void *, uint32_t *) _Hide;
|
||||
int32_t sys_shutdown(int32_t, int32_t) _Hide;
|
||||
int32_t sys_socket(int32_t, int32_t, int32_t) _Hide;
|
||||
int32_t sys_socketpair(int32_t, int32_t, int32_t, int32_t[2]) _Hide;
|
||||
ssize_t sys_recvfrom(int, void *, size_t, int, void *, uint32_t *) _Hide;
|
||||
ssize_t sys_sendto(int, const void *, size_t, int, const void *,
|
||||
uint32_t) hidden;
|
||||
uint32_t) _Hide;
|
||||
int32_t sys_select(int32_t, fd_set *, fd_set *, fd_set *,
|
||||
struct timeval *) hidden;
|
||||
struct timeval *) _Hide;
|
||||
int sys_pselect(int, fd_set *, fd_set *, fd_set *, struct timespec *,
|
||||
const void *) hidden;
|
||||
int sys_setsockopt(int, int, int, const void *, uint32_t) hidden;
|
||||
int32_t sys_epoll_create(int32_t) hidden;
|
||||
int32_t sys_epoll_ctl(int32_t, int32_t, int32_t, void *) hidden;
|
||||
int32_t sys_epoll_wait(int32_t, void *, int32_t, int32_t) hidden;
|
||||
const void *) _Hide;
|
||||
int sys_setsockopt(int, int, int, const void *, uint32_t) _Hide;
|
||||
int32_t sys_epoll_create(int32_t) _Hide;
|
||||
int32_t sys_epoll_ctl(int32_t, int32_t, int32_t, void *) _Hide;
|
||||
int32_t sys_epoll_wait(int32_t, void *, int32_t, int32_t) _Hide;
|
||||
|
||||
int sys_socket_nt(int, int, int) hidden;
|
||||
int sys_socket_nt(int, int, int) _Hide;
|
||||
|
||||
/*
|
||||
int sys_socketpair_nt_stream(int, int, int, int[2]) hidden;
|
||||
int sys_socketpair_nt_dgram(int, int, int, int[2]) hidden;
|
||||
int sys_socketpair_nt_stream(int, int, int, int[2]) _Hide;
|
||||
int sys_socketpair_nt_dgram(int, int, int, int[2]) _Hide;
|
||||
*/
|
||||
int sys_socketpair_nt(int, int, int, int[2]) hidden;
|
||||
int sys_socketpair_nt(int, int, int, int[2]) _Hide;
|
||||
int sys_select_nt(int, fd_set *, fd_set *, fd_set *, struct timeval *,
|
||||
const sigset_t *) hidden;
|
||||
const sigset_t *) _Hide;
|
||||
|
||||
size_t __iovec2nt(struct NtIovec[hasatleast 16], const struct iovec *,
|
||||
size_t) hidden;
|
||||
size_t) _Hide;
|
||||
|
||||
void WinSockInit(void) hidden;
|
||||
int64_t __winsockerr(void) nocallback hidden;
|
||||
int __fixupnewsockfd(int, int) hidden;
|
||||
void WinSockInit(void) _Hide;
|
||||
int64_t __winsockerr(void) nocallback _Hide;
|
||||
int __fixupnewsockfd(int, int) _Hide;
|
||||
int __wsablock(int64_t, struct NtOverlapped *, uint32_t *, bool,
|
||||
uint32_t) hidden;
|
||||
int64_t __winsockblock(int64_t, unsigned, int64_t, uint32_t) hidden;
|
||||
struct SockFd *_dupsockfd(struct SockFd *) hidden;
|
||||
int64_t GetNtBaseSocket(int64_t) hidden;
|
||||
int sys_close_epoll(int) hidden;
|
||||
uint32_t) _Hide;
|
||||
int64_t __winsockblock(int64_t, unsigned, int64_t, uint32_t) _Hide;
|
||||
struct SockFd *_dupsockfd(struct SockFd *) _Hide;
|
||||
int64_t GetNtBaseSocket(int64_t) _Hide;
|
||||
int sys_close_epoll(int) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* Berkeley Socket wrappers are linked. The latest version of Winsock
|
||||
* was introduced alongside x64, so this should never fail.
|
||||
*/
|
||||
hidden struct NtWsaData kNtWsaData;
|
||||
_Hide struct NtWsaData kNtWsaData;
|
||||
|
||||
static textwindows void WinSockCleanup(void) {
|
||||
int i, rc;
|
||||
|
|
|
@ -5,11 +5,11 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
int sys_sendfile_xnu(int32_t infd, int32_t outfd, int64_t offset,
|
||||
int64_t *out_opt_sbytes, const void *opt_hdtr,
|
||||
int32_t flags) hidden;
|
||||
int32_t flags) _Hide;
|
||||
|
||||
int sys_sendfile_freebsd(int32_t infd, int32_t outfd, int64_t offset,
|
||||
size_t nbytes, const void *opt_hdtr,
|
||||
int64_t *out_opt_sbytes, int32_t flags) hidden;
|
||||
int64_t *out_opt_sbytes, int32_t flags) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -14,8 +14,8 @@ struct msghdr_bsd {
|
|||
uint32_t msg_flags; /* « different type */
|
||||
};
|
||||
|
||||
ssize_t sys_sendmsg(int, const struct msghdr *, int) hidden;
|
||||
ssize_t sys_recvmsg(int, struct msghdr *, int) hidden;
|
||||
ssize_t sys_sendmsg(int, const struct msghdr *, int) _Hide;
|
||||
ssize_t sys_recvmsg(int, struct msghdr *, int) _Hide;
|
||||
bool __asan_is_valid_msghdr(const struct msghdr *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int32_t sys_poll(struct pollfd *, uint64_t, signed) hidden;
|
||||
int32_t sys_poll(struct pollfd *, uint64_t, signed) _Hide;
|
||||
int sys_ppoll(struct pollfd *, size_t, const struct timespec *,
|
||||
const sigset_t *, size_t);
|
||||
int sys_poll_metal(struct pollfd *, size_t, unsigned);
|
||||
int sys_poll_nt(struct pollfd *, uint64_t, uint64_t *, const sigset_t *) hidden;
|
||||
int sys_poll_nt(struct pollfd *, uint64_t, uint64_t *, const sigset_t *) _Hide;
|
||||
|
||||
const char *DescribePollFds(char[300], ssize_t, struct pollfd *, size_t);
|
||||
#define DescribePollFds(x, y, z) DescribePollFds(alloca(300), x, y, z)
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_accept_nt(struct Fd *, void *, uint32_t *, int) hidden;
|
||||
int sys_accept_nt(struct Fd *, void *, uint32_t *, int) _Hide;
|
||||
int sys_bind_nt(struct Fd *, const void *, uint32_t);
|
||||
int sys_closesocket_nt(struct Fd *) hidden;
|
||||
int sys_connect_nt(struct Fd *, const void *, uint32_t) hidden;
|
||||
int sys_getpeername_nt(struct Fd *, void *, uint32_t *) hidden;
|
||||
int sys_getsockname_nt(struct Fd *, void *, uint32_t *) hidden;
|
||||
int sys_getsockopt_nt(struct Fd *, int, int, void *, uint32_t *) hidden;
|
||||
int sys_listen_nt(struct Fd *, int) hidden;
|
||||
int sys_setsockopt_nt(struct Fd *, int, int, const void *, uint32_t) hidden;
|
||||
int sys_shutdown_nt(struct Fd *, int) hidden;
|
||||
ssize_t sys_recv_nt(struct Fd *, const struct iovec *, size_t, uint32_t) hidden;
|
||||
int sys_closesocket_nt(struct Fd *) _Hide;
|
||||
int sys_connect_nt(struct Fd *, const void *, uint32_t) _Hide;
|
||||
int sys_getpeername_nt(struct Fd *, void *, uint32_t *) _Hide;
|
||||
int sys_getsockname_nt(struct Fd *, void *, uint32_t *) _Hide;
|
||||
int sys_getsockopt_nt(struct Fd *, int, int, void *, uint32_t *) _Hide;
|
||||
int sys_listen_nt(struct Fd *, int) _Hide;
|
||||
int sys_setsockopt_nt(struct Fd *, int, int, const void *, uint32_t) _Hide;
|
||||
int sys_shutdown_nt(struct Fd *, int) _Hide;
|
||||
ssize_t sys_recv_nt(struct Fd *, const struct iovec *, size_t, uint32_t) _Hide;
|
||||
ssize_t sys_recvfrom_nt(struct Fd *, const struct iovec *, size_t, uint32_t,
|
||||
void *, uint32_t *) hidden;
|
||||
void *, uint32_t *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -17,8 +17,8 @@ struct StdioFlush {
|
|||
FILE *handles_initmem[8];
|
||||
};
|
||||
|
||||
hidden extern struct StdioFlush __fflush;
|
||||
hidden extern pthread_mutex_t __fflush_lock_obj;
|
||||
_Hide extern struct StdioFlush __fflush;
|
||||
_Hide extern pthread_mutex_t __fflush_lock_obj;
|
||||
|
||||
void __fflush_lock(void);
|
||||
void __fflush_unlock(void);
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
hidden extern uint64_t g_rando;
|
||||
_Hide extern uint64_t g_rando;
|
||||
|
||||
int __fflush_impl(FILE *) hidden;
|
||||
int __fflush_register(FILE *) hidden;
|
||||
void __fflush_unregister(FILE *) hidden;
|
||||
bool __stdio_isok(FILE *) hidden;
|
||||
FILE *__stdio_alloc(void) hidden;
|
||||
void __stdio_free(FILE *) hidden;
|
||||
int __fflush_impl(FILE *) _Hide;
|
||||
int __fflush_register(FILE *) _Hide;
|
||||
void __fflush_unregister(FILE *) _Hide;
|
||||
bool __stdio_isok(FILE *) _Hide;
|
||||
FILE *__stdio_alloc(void) _Hide;
|
||||
void __stdio_free(FILE *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -18,5 +18,5 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/stdio/internal.h"
|
||||
|
||||
char g_stdoutbuf[BUFSIZ] hidden;
|
||||
char g_stderrbuf[BUFSIZ] hidden;
|
||||
char g_stdoutbuf[BUFSIZ] _Hide;
|
||||
char g_stderrbuf[BUFSIZ] _Hide;
|
||||
|
|
|
@ -26,7 +26,7 @@ STATIC_YOINK("_init_stderr");
|
|||
*/
|
||||
FILE *stderr;
|
||||
|
||||
hidden FILE __stderr;
|
||||
_Hide FILE __stderr;
|
||||
|
||||
static textstartup void __stderr_init() {
|
||||
__fflush_register(stderr);
|
||||
|
|
|
@ -26,7 +26,7 @@ STATIC_YOINK("_init_stdin");
|
|||
*/
|
||||
FILE *stdin;
|
||||
|
||||
hidden FILE __stdin;
|
||||
_Hide FILE __stdin;
|
||||
|
||||
static textstartup void __stdin_init() {
|
||||
__fflush_register(stdin);
|
||||
|
|
|
@ -29,7 +29,7 @@ STATIC_YOINK("_init_stdout");
|
|||
*/
|
||||
FILE *stdout;
|
||||
|
||||
hidden FILE __stdout;
|
||||
_Hide FILE __stdout;
|
||||
|
||||
static textstartup void __stdout_init() {
|
||||
struct FILE *sf;
|
||||
|
|
|
@ -8,10 +8,10 @@ struct StrList {
|
|||
char **p;
|
||||
};
|
||||
|
||||
void FreeStrList(struct StrList *) hidden;
|
||||
int AppendStrList(struct StrList *) hidden;
|
||||
void SortStrList(struct StrList *) hidden;
|
||||
int JoinStrList(struct StrList *, char **, uint64_t) hidden;
|
||||
void FreeStrList(struct StrList *) _Hide;
|
||||
int AppendStrList(struct StrList *) _Hide;
|
||||
void SortStrList(struct StrList *) _Hide;
|
||||
int JoinStrList(struct StrList *, char **, uint64_t) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -15,7 +15,7 @@ int mkstemp(char *);
|
|||
int mkstemps(char *, int);
|
||||
|
||||
int mkostempsmi(char *, int, unsigned, uint64_t *, int,
|
||||
int (*)(const char *, int, ...)) hidden dontdiscard;
|
||||
int (*)(const char *, int, ...)) _Hide dontdiscard;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
hidden extern const uint32_t kSha256Tab[64];
|
||||
_Hide extern const uint32_t kSha256Tab[64];
|
||||
|
||||
nodebuginfo forceinline bool32 ismoar(wint_t c) {
|
||||
return (c & 0300) == 0300;
|
||||
|
@ -15,12 +15,12 @@ nodebuginfo forceinline bool32 iscont(wint_t c) {
|
|||
return (c & 0300) == 0200;
|
||||
}
|
||||
|
||||
char *strstr_sse42(const char *, const char *) strlenesque hidden;
|
||||
char16_t *strstr16_sse42(const char16_t *, const char16_t *) strlenesque hidden;
|
||||
char *strstr_sse42(const char *, const char *) strlenesque _Hide;
|
||||
char16_t *strstr16_sse42(const char16_t *, const char16_t *) strlenesque _Hide;
|
||||
void *memmem_sse42(const void *, size_t, const void *,
|
||||
size_t) strlenesque hidden;
|
||||
size_t) strlenesque _Hide;
|
||||
void sha256_x86(uint32_t[hasatleast 8], const uint8_t[hasatleast 64],
|
||||
uint32_t) hidden;
|
||||
uint32_t) _Hide;
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* !ANSI */
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/time/time.h"
|
||||
|
||||
hidden const unsigned short kMonthYearDay[2][12] = {
|
||||
_Hide const unsigned short kMonthYearDay[2][12] = {
|
||||
{0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334},
|
||||
{0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335},
|
||||
};
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "libc/macros.internal.h"
|
||||
#include "libc/nexgen32e/x86info.h"
|
||||
|
||||
hidden const struct X86ProcessorModel kX86ProcessorModels[] = {
|
||||
_Hide const struct X86ProcessorModel kX86ProcessorModels[] = {
|
||||
/* <SORTED> */
|
||||
{0x060F, X86_MARCH_CORE2, X86_GRADE_CLIENT},
|
||||
{0x0616, X86_MARCH_CORE2, X86_GRADE_MOBILE},
|
||||
|
@ -79,4 +79,4 @@ hidden const struct X86ProcessorModel kX86ProcessorModels[] = {
|
|||
/* </SORTED> */
|
||||
};
|
||||
|
||||
hidden const size_t kX86ProcessorModelCount = ARRAYLEN(kX86ProcessorModels);
|
||||
_Hide const size_t kX86ProcessorModelCount = ARRAYLEN(kX86ProcessorModels);
|
||||
|
|
|
@ -82,24 +82,24 @@ struct PosixThread {
|
|||
typedef void (*atfork_f)(void);
|
||||
|
||||
extern struct PosixThread _pthread_main;
|
||||
extern _Atomic(pthread_key_dtor) _pthread_key_dtor[PTHREAD_KEYS_MAX] hidden;
|
||||
extern _Atomic(pthread_key_dtor) _pthread_key_dtor[PTHREAD_KEYS_MAX] _Hide;
|
||||
|
||||
int _pthread_atfork(atfork_f, atfork_f, atfork_f) hidden;
|
||||
int _pthread_reschedule(struct PosixThread *) hidden;
|
||||
int _pthread_setschedparam_freebsd(int, int, const struct sched_param *) hidden;
|
||||
int _pthread_wait(struct PosixThread *) hidden;
|
||||
void _pthread_free(struct PosixThread *) hidden;
|
||||
void _pthread_cleanup(struct PosixThread *) hidden;
|
||||
void _pthread_ungarbage(void) hidden;
|
||||
void _pthread_zombies_add(struct PosixThread *) hidden;
|
||||
void _pthread_zombies_purge(void) hidden;
|
||||
void _pthread_zombies_decimate(void) hidden;
|
||||
void _pthread_zombies_harvest(void) hidden;
|
||||
void _pthread_key_destruct(void) hidden;
|
||||
void _pthread_onfork_prepare(void) hidden;
|
||||
void _pthread_onfork_parent(void) hidden;
|
||||
void _pthread_onfork_child(void) hidden;
|
||||
int _pthread_cancel_sys(void) hidden;
|
||||
int _pthread_atfork(atfork_f, atfork_f, atfork_f) _Hide;
|
||||
int _pthread_reschedule(struct PosixThread *) _Hide;
|
||||
int _pthread_setschedparam_freebsd(int, int, const struct sched_param *) _Hide;
|
||||
int _pthread_wait(struct PosixThread *) _Hide;
|
||||
void _pthread_free(struct PosixThread *) _Hide;
|
||||
void _pthread_cleanup(struct PosixThread *) _Hide;
|
||||
void _pthread_ungarbage(void) _Hide;
|
||||
void _pthread_zombies_add(struct PosixThread *) _Hide;
|
||||
void _pthread_zombies_purge(void) _Hide;
|
||||
void _pthread_zombies_decimate(void) _Hide;
|
||||
void _pthread_zombies_harvest(void) _Hide;
|
||||
void _pthread_key_destruct(void) _Hide;
|
||||
void _pthread_onfork_prepare(void) _Hide;
|
||||
void _pthread_onfork_parent(void) _Hide;
|
||||
void _pthread_onfork_child(void) _Hide;
|
||||
int _pthread_cancel_sys(void) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -11,9 +11,9 @@ struct spawn {
|
|||
struct CosmoTib *tib;
|
||||
};
|
||||
|
||||
int _spawn(int (*)(void *, int), void *, struct spawn *) hidden;
|
||||
int _join(struct spawn *) hidden;
|
||||
char *_mktls(struct CosmoTib **) hidden;
|
||||
int _spawn(int (*)(void *, int), void *, struct spawn *) _Hide;
|
||||
int _join(struct spawn *) _Hide;
|
||||
char *_mktls(struct CosmoTib **) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
errno_t _wait0(const atomic_int *) hidden;
|
||||
errno_t _wait0(const atomic_int *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int sys_utime(const char *, const struct utimbuf *) hidden;
|
||||
int sys_utime(const char *, const struct utimbuf *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
hidden extern const char kWeekdayNameShort[7][4];
|
||||
hidden extern const char kWeekdayName[7][10];
|
||||
hidden extern const char kMonthNameShort[12][4];
|
||||
hidden extern const char kMonthName[12][10];
|
||||
hidden extern const unsigned short kMonthYearDay[2][12];
|
||||
_Hide extern const char kWeekdayNameShort[7][4];
|
||||
_Hide extern const char kWeekdayName[7][10];
|
||||
_Hide extern const char kMonthNameShort[12][4];
|
||||
_Hide extern const char kMonthName[12][10];
|
||||
_Hide extern const unsigned short kMonthYearDay[2][12];
|
||||
|
||||
extern char *tzname[2];
|
||||
extern long timezone;
|
||||
|
|
|
@ -40,8 +40,8 @@ COSMOPOLITAN_C_START_
|
|||
(d) = asfloat(w); \
|
||||
} while (0)
|
||||
|
||||
_Complex double __ldexp_cexp(_Complex double, int) hidden;
|
||||
_Complex float __ldexp_cexpf(_Complex float, int) hidden;
|
||||
_Complex double __ldexp_cexp(_Complex double, int) _Hide;
|
||||
_Complex float __ldexp_cexpf(_Complex float, int) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct exp2f_data {
|
||||
extern _Hide const struct exp2f_data {
|
||||
uint64_t tab[1 << EXP2F_TABLE_BITS];
|
||||
double shift_scaled;
|
||||
double poly[EXP2F_POLY_ORDER];
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct exp_data {
|
||||
extern _Hide const struct exp_data {
|
||||
double invln2N;
|
||||
double shift;
|
||||
double negln2hiN;
|
||||
|
|
|
@ -51,16 +51,16 @@ static inline float fp_barrierf(float x) {
|
|||
return y;
|
||||
}
|
||||
|
||||
double __math_divzero(uint32_t) hidden;
|
||||
double __math_invalid(double) hidden;
|
||||
double __math_oflow(uint32_t) hidden;
|
||||
double __math_uflow(uint32_t) hidden;
|
||||
double __math_xflow(uint32_t, double) hidden;
|
||||
float __math_divzerof(uint32_t) hidden;
|
||||
float __math_invalidf(float) hidden;
|
||||
float __math_oflowf(uint32_t) hidden;
|
||||
float __math_uflowf(uint32_t) hidden;
|
||||
float __math_xflowf(uint32_t, float) hidden;
|
||||
double __math_divzero(uint32_t) _Hide;
|
||||
double __math_invalid(double) _Hide;
|
||||
double __math_oflow(uint32_t) _Hide;
|
||||
double __math_uflow(uint32_t) _Hide;
|
||||
double __math_xflow(uint32_t, double) _Hide;
|
||||
float __math_divzerof(uint32_t) _Hide;
|
||||
float __math_invalidf(float) _Hide;
|
||||
float __math_oflowf(uint32_t) _Hide;
|
||||
float __math_uflowf(uint32_t) _Hide;
|
||||
float __math_xflowf(uint32_t, float) _Hide;
|
||||
|
||||
#define FORCE_EVAL(x) \
|
||||
do { \
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
double __cos(double, double) hidden;
|
||||
double __sin(double, double, int) hidden;
|
||||
double __tan(double, double, int) hidden;
|
||||
float __cosdf(double) hidden;
|
||||
float __sindf(double) hidden;
|
||||
float __tandf(double, int) hidden;
|
||||
int __rem_pio2(double, double *) hidden;
|
||||
int __rem_pio2_large(double *, double *, int, int, int) hidden;
|
||||
int __rem_pio2f(float, double *) hidden;
|
||||
double __cos(double, double) _Hide;
|
||||
double __sin(double, double, int) _Hide;
|
||||
double __tan(double, double, int) _Hide;
|
||||
float __cosdf(double) _Hide;
|
||||
float __sindf(double) _Hide;
|
||||
float __tandf(double, int) _Hide;
|
||||
int __rem_pio2(double, double *) _Hide;
|
||||
int __rem_pio2_large(double *, double *, int, int, int) _Hide;
|
||||
int __rem_pio2f(float, double *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct log2_data {
|
||||
extern _Hide const struct log2_data {
|
||||
double invln2hi;
|
||||
double invln2lo;
|
||||
double poly[LOG2_POLY_ORDER - 1];
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct log2f_data {
|
||||
extern _Hide const struct log2f_data {
|
||||
struct {
|
||||
double invc, logc;
|
||||
} tab[1 << LOG2F_TABLE_BITS];
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct log_data {
|
||||
extern _Hide const struct log_data {
|
||||
double ln2hi;
|
||||
double ln2lo;
|
||||
double poly[LOG_POLY_ORDER - 1]; /* First coefficient is 1. */
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct pow_log_data {
|
||||
extern _Hide const struct pow_log_data {
|
||||
double ln2hi;
|
||||
double ln2lo;
|
||||
double poly[POW_LOG_POLY_ORDER - 1]; /* First coefficient is 1. */
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern hidden const struct powf_log2_data {
|
||||
extern _Hide const struct powf_log2_data {
|
||||
struct {
|
||||
double invc, logc;
|
||||
} tab[1 << POWF_LOG2_TABLE_BITS];
|
||||
|
|
|
@ -29,25 +29,25 @@ struct Zipos {
|
|||
struct ZiposHandle *freelist;
|
||||
};
|
||||
|
||||
void __zipos_lock(void) hidden;
|
||||
void __zipos_unlock(void) hidden;
|
||||
int __zipos_close(int) hidden;
|
||||
struct Zipos *__zipos_get(void) pureconst hidden;
|
||||
void __zipos_free(struct Zipos *, struct ZiposHandle *) hidden;
|
||||
ssize_t __zipos_parseuri(const char *, struct ZiposUri *) hidden;
|
||||
void __zipos_lock(void) _Hide;
|
||||
void __zipos_unlock(void) _Hide;
|
||||
int __zipos_close(int) _Hide;
|
||||
struct Zipos *__zipos_get(void) pureconst _Hide;
|
||||
void __zipos_free(struct Zipos *, struct ZiposHandle *) _Hide;
|
||||
ssize_t __zipos_parseuri(const char *, struct ZiposUri *) _Hide;
|
||||
ssize_t __zipos_find(struct Zipos *, const struct ZiposUri *);
|
||||
int __zipos_open(const struct ZiposUri *, unsigned, int) hidden;
|
||||
int __zipos_access(const struct ZiposUri *, int) hidden;
|
||||
int __zipos_stat(const struct ZiposUri *, struct stat *) hidden;
|
||||
int __zipos_fstat(const struct ZiposHandle *, struct stat *) hidden;
|
||||
int __zipos_stat_impl(struct Zipos *, size_t, struct stat *) hidden;
|
||||
int __zipos_open(const struct ZiposUri *, unsigned, int) _Hide;
|
||||
int __zipos_access(const struct ZiposUri *, int) _Hide;
|
||||
int __zipos_stat(const struct ZiposUri *, struct stat *) _Hide;
|
||||
int __zipos_fstat(const struct ZiposHandle *, struct stat *) _Hide;
|
||||
int __zipos_stat_impl(struct Zipos *, size_t, struct stat *) _Hide;
|
||||
ssize_t __zipos_read(struct ZiposHandle *, const struct iovec *, size_t,
|
||||
ssize_t) hidden;
|
||||
ssize_t) _Hide;
|
||||
ssize_t __zipos_write(struct ZiposHandle *, const struct iovec *, size_t,
|
||||
ssize_t) hidden;
|
||||
int64_t __zipos_lseek(struct ZiposHandle *, int64_t, unsigned) hidden;
|
||||
int __zipos_fcntl(int, int, uintptr_t) hidden;
|
||||
int __zipos_notat(int, const char *) hidden;
|
||||
ssize_t) _Hide;
|
||||
int64_t __zipos_lseek(struct ZiposHandle *, int64_t, unsigned) _Hide;
|
||||
int __zipos_fcntl(int, int, uintptr_t) _Hide;
|
||||
int __zipos_notat(int, const char *) _Hide;
|
||||
|
||||
#ifdef _NOPL0
|
||||
#define __zipos_lock() _NOPL0("__threadcalls", __zipos_lock)
|
||||
|
|
|
@ -21,16 +21,16 @@
|
|||
#include "libc/intrin/bits.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
unsigned windex_k8(short *, size_t) hidden;
|
||||
unsigned windex_avx2(short *, size_t) hidden;
|
||||
unsigned windex_sse4(short *, size_t) hidden;
|
||||
unsigned windex_k8(short *, size_t) _Hide;
|
||||
unsigned windex_avx2(short *, size_t) _Hide;
|
||||
unsigned windex_sse4(short *, size_t) _Hide;
|
||||
|
||||
const short kW[64] forcealign(32) = {
|
||||
8281, 3883, 1365, 1786, 9006, 3681, 5563, 8013, 5787, 9063, 2923,
|
||||
|
|
4
third_party/dlmalloc/dlmalloc.h
vendored
4
third_party/dlmalloc/dlmalloc.h
vendored
|
@ -505,8 +505,8 @@ void mspace_inspect_all(mspace msp,
|
|||
void (*handler)(void*, void*, size_t, void*),
|
||||
void* arg);
|
||||
|
||||
void dlmalloc_atfork(void) hidden;
|
||||
void dlmalloc_abort(void) hidden;
|
||||
_Hide void dlmalloc_atfork(void);
|
||||
_Hide void dlmalloc_abort(void);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
10
third_party/musl/crypt.internal.h
vendored
10
third_party/musl/crypt.internal.h
vendored
|
@ -4,11 +4,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
hidden char *__crypt_des(const char *, const char *, char *);
|
||||
hidden char *__crypt_md5(const char *, const char *, char *);
|
||||
hidden char *__crypt_blowfish(const char *, const char *, char *);
|
||||
hidden char *__crypt_sha256(const char *, const char *, char *);
|
||||
hidden char *__crypt_sha512(const char *, const char *, char *);
|
||||
_Hide char *__crypt_des(const char *, const char *, char *);
|
||||
_Hide char *__crypt_md5(const char *, const char *, char *);
|
||||
_Hide char *__crypt_blowfish(const char *, const char *, char *);
|
||||
_Hide char *__crypt_sha256(const char *, const char *, char *);
|
||||
_Hide char *__crypt_sha512(const char *, const char *, char *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
4
third_party/musl/crypt_des.internal.h
vendored
4
third_party/musl/crypt_des.internal.h
vendored
|
@ -9,8 +9,8 @@ struct expanded_key {
|
|||
uint32_t l[16], r[16];
|
||||
};
|
||||
|
||||
hidden void __des_setkey(const unsigned char *, struct expanded_key *);
|
||||
hidden void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
|
||||
_Hide void __des_setkey(const unsigned char *, struct expanded_key *);
|
||||
_Hide void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
|
||||
uint32_t, uint32_t, const struct expanded_key *);
|
||||
|
||||
#endif
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue