mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Remove dollars from system call support symbols
This commit is contained in:
parent
a8d7195777
commit
a37960a3af
743 changed files with 1380 additions and 2016 deletions
|
@ -5,50 +5,53 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct stat_xnu {
|
||||
int32_t st_dev;
|
||||
uint16_t st_mode, st_nlink;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_uid, st_gid;
|
||||
int32_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim, st_birthtim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags, st_gen;
|
||||
int32_t st_lspare;
|
||||
int64_t st_qspare[2];
|
||||
};
|
||||
|
||||
struct stat_freebsd {
|
||||
uint64_t st_dev, st_ino, st_nlink;
|
||||
uint16_t st_mode;
|
||||
int16_t st_padding0;
|
||||
uint32_t st_uid, st_gid;
|
||||
int32_t st_padding1;
|
||||
uint64_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim, st_birthtim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags;
|
||||
uint64_t st_gen;
|
||||
unsigned long st_spare[10];
|
||||
};
|
||||
|
||||
struct stat_openbsd {
|
||||
uint32_t st_mode;
|
||||
int32_t st_dev;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_nlink, st_uid, st_gid;
|
||||
int32_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags, st_gen;
|
||||
struct timespec __st_birthtim;
|
||||
};
|
||||
|
||||
union metastat {
|
||||
struct stat linux;
|
||||
|
||||
struct stat$xnu {
|
||||
int32_t st_dev;
|
||||
uint16_t st_mode, st_nlink;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_uid, st_gid;
|
||||
int32_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim, st_birthtim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags, st_gen;
|
||||
int32_t st_lspare;
|
||||
int64_t st_qspare[2];
|
||||
} xnu;
|
||||
|
||||
struct stat$freebsd {
|
||||
uint64_t st_dev, st_ino, st_nlink;
|
||||
uint16_t st_mode;
|
||||
int16_t st_padding0;
|
||||
uint32_t st_uid, st_gid;
|
||||
int32_t st_padding1;
|
||||
uint64_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim, st_birthtim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags;
|
||||
uint64_t st_gen;
|
||||
unsigned long st_spare[10];
|
||||
} freebsd;
|
||||
|
||||
struct stat$openbsd {
|
||||
uint32_t st_mode;
|
||||
int32_t st_dev;
|
||||
uint64_t st_ino;
|
||||
uint32_t st_nlink, st_uid, st_gid;
|
||||
int32_t st_rdev;
|
||||
struct timespec st_atim, st_mtim, st_ctim;
|
||||
int64_t st_size, st_blocks;
|
||||
int32_t st_blksize;
|
||||
uint32_t st_flags, st_gen;
|
||||
struct timespec __st_birthtim;
|
||||
} openbsd;
|
||||
struct stat_xnu xnu;
|
||||
struct stat_freebsd freebsd;
|
||||
struct stat_openbsd openbsd;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct termios$xnu {
|
||||
struct termios_xnu {
|
||||
uint64_t c_iflag;
|
||||
uint64_t c_oflag;
|
||||
uint64_t c_cflag;
|
||||
|
@ -15,7 +15,7 @@ struct termios$xnu {
|
|||
uint64_t c_ospeed;
|
||||
};
|
||||
|
||||
struct termios$bsd {
|
||||
struct termios_bsd {
|
||||
uint32_t c_iflag;
|
||||
uint32_t c_oflag;
|
||||
uint32_t c_cflag;
|
||||
|
@ -27,8 +27,8 @@ struct termios$bsd {
|
|||
|
||||
union metatermios {
|
||||
struct termios linux;
|
||||
struct termios$xnu xnu;
|
||||
struct termios$bsd bsd;
|
||||
struct termios_xnu xnu;
|
||||
struct termios_bsd bsd;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_FREEBSD_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct sigaction$freebsd {
|
||||
struct sigset_freebsd {
|
||||
uint32_t sig[4];
|
||||
};
|
||||
|
||||
struct sigaction_freebsd {
|
||||
intptr_t sa_handler;
|
||||
uint32_t sa_flags;
|
||||
struct sigset$freebsd {
|
||||
uint32_t sig[4];
|
||||
} sa_mask;
|
||||
struct sigset_freebsd sa_mask;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_LINUX_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct sigaction$linux {
|
||||
struct sigset_linux {
|
||||
uint32_t sig[2];
|
||||
};
|
||||
|
||||
struct sigaction_linux {
|
||||
intptr_t sa_handler;
|
||||
uint64_t sa_flags;
|
||||
void (*sa_restorer)(void);
|
||||
struct sigset$linux {
|
||||
uint32_t sig[2];
|
||||
} sa_mask;
|
||||
struct sigset_linux sa_mask;
|
||||
};
|
||||
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_SIGACTION_OPENBSD_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
struct sigaction$openbsd {
|
||||
struct sigset_openbsd {
|
||||
uint32_t sig[1];
|
||||
};
|
||||
|
||||
struct sigaction_openbsd {
|
||||
intptr_t sa_handler;
|
||||
struct sigset$openbsd {
|
||||
uint32_t sig[1];
|
||||
} sa_mask;
|
||||
struct sigset_openbsd sa_mask;
|
||||
int32_t sa_flags;
|
||||
};
|
||||
|
||||
|
|
|
@ -5,21 +5,21 @@
|
|||
struct __darwin_ucontext;
|
||||
struct __darwin_siginfo;
|
||||
|
||||
struct sigset$xnu {
|
||||
struct sigset_xnu {
|
||||
uint32_t sig[1];
|
||||
};
|
||||
|
||||
struct sigaction$xnu_in {
|
||||
struct sigaction_xnu_in {
|
||||
intptr_t sa_handler;
|
||||
void (*sa_restorer)(void *, int, int, const struct __darwin_siginfo *,
|
||||
const struct __darwin_ucontext *);
|
||||
struct sigset$xnu sa_mask;
|
||||
struct sigset_xnu sa_mask;
|
||||
int32_t sa_flags;
|
||||
};
|
||||
|
||||
struct sigaction$xnu_out {
|
||||
struct sigaction_xnu_out {
|
||||
intptr_t sa_handler;
|
||||
struct sigset$xnu sa_mask;
|
||||
struct sigset_xnu sa_mask;
|
||||
int32_t sa_flags;
|
||||
};
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ struct user_regs_struct {
|
|||
uint64_t gs;
|
||||
};
|
||||
|
||||
struct useregs_struct$freebsd {
|
||||
struct useregs_struct_freebsd {
|
||||
int64_t r15;
|
||||
int64_t r14;
|
||||
int64_t r13;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue