mirror of https://github.com/WebAssembly/wasi-libc
Browse Source
See the WHATSNEW file for details. The biggest change in musl is the switch to 64-bit time_t for 32-bit targets, however WASI libc was already using 64-bit time_t. The main change affecting WASI is an update to Unicode 12.1.0.pull/152/head
Dan Gohman
5 years ago
362 changed files with 3309 additions and 1764 deletions
@ -0,0 +1 @@ |
|||
Ada Worcester <oss@ada.pikhq.com> <josiahw@gmail.com> |
@ -1 +1 @@ |
|||
1.1.24 |
|||
1.2.0 |
|||
|
@ -1,5 +0,0 @@ |
|||
#if __AARCH64EB__ |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
|||
#else |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
|||
#endif |
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 64 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffffffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -1,33 +0,0 @@ |
|||
#include <endian.h> |
|||
|
|||
struct msghdr { |
|||
void *msg_name; |
|||
socklen_t msg_namelen; |
|||
struct iovec *msg_iov; |
|||
#if __BYTE_ORDER == __BIG_ENDIAN |
|||
int __pad1, msg_iovlen; |
|||
#else |
|||
int msg_iovlen, __pad1; |
|||
#endif |
|||
void *msg_control; |
|||
#if __BYTE_ORDER == __BIG_ENDIAN |
|||
int __pad2; |
|||
socklen_t msg_controllen; |
|||
#else |
|||
socklen_t msg_controllen; |
|||
int __pad2; |
|||
#endif |
|||
int msg_flags; |
|||
}; |
|||
|
|||
struct cmsghdr { |
|||
#if __BYTE_ORDER == __BIG_ENDIAN |
|||
int __pad1; |
|||
socklen_t cmsg_len; |
|||
#else |
|||
socklen_t cmsg_len; |
|||
int __pad1; |
|||
#endif |
|||
int cmsg_level; |
|||
int cmsg_type; |
|||
}; |
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1,5 +0,0 @@ |
|||
#if __ARMEB__ |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
|||
#else |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
|||
#endif |
@ -1 +1 @@ |
|||
#define IPC_STAT 2 |
|||
#define IPC_STAT 0x102 |
|||
|
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 32 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -1,15 +1,18 @@ |
|||
struct msqid_ds { |
|||
struct ipc_perm msg_perm; |
|||
time_t msg_stime; |
|||
int __unused1; |
|||
time_t msg_rtime; |
|||
int __unused2; |
|||
time_t msg_ctime; |
|||
int __unused3; |
|||
unsigned long __msg_stime_lo; |
|||
unsigned long __msg_stime_hi; |
|||
unsigned long __msg_rtime_lo; |
|||
unsigned long __msg_rtime_hi; |
|||
unsigned long __msg_ctime_lo; |
|||
unsigned long __msg_ctime_hi; |
|||
unsigned long msg_cbytes; |
|||
msgqnum_t msg_qnum; |
|||
msglen_t msg_qbytes; |
|||
pid_t msg_lspid; |
|||
pid_t msg_lrpid; |
|||
unsigned long __unused[2]; |
|||
time_t msg_stime; |
|||
time_t msg_rtime; |
|||
time_t msg_ctime; |
|||
}; |
|||
|
@ -0,0 +1,11 @@ |
|||
#define _DIRENT_HAVE_D_RECLEN |
|||
#define _DIRENT_HAVE_D_OFF |
|||
#define _DIRENT_HAVE_D_TYPE |
|||
|
|||
struct dirent { |
|||
ino_t d_ino; |
|||
off_t d_off; |
|||
unsigned short d_reclen; |
|||
unsigned char d_type; |
|||
char d_name[256]; |
|||
}; |
@ -1,15 +0,0 @@ |
|||
struct msghdr { |
|||
void *msg_name; |
|||
socklen_t msg_namelen; |
|||
struct iovec *msg_iov; |
|||
int msg_iovlen; |
|||
void *msg_control; |
|||
socklen_t msg_controllen; |
|||
int msg_flags; |
|||
}; |
|||
|
|||
struct cmsghdr { |
|||
socklen_t cmsg_len; |
|||
int cmsg_level; |
|||
int cmsg_type; |
|||
}; |
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1 +0,0 @@ |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
@ -1 +1 @@ |
|||
#define IPC_STAT 2 |
|||
#define IPC_STAT 0x102 |
|||
|
@ -1,15 +1,18 @@ |
|||
struct msqid_ds { |
|||
struct ipc_perm msg_perm; |
|||
time_t msg_stime; |
|||
int __unused1; |
|||
time_t msg_rtime; |
|||
int __unused2; |
|||
time_t msg_ctime; |
|||
int __unused3; |
|||
unsigned long __msg_stime_lo; |
|||
unsigned long __msg_stime_hi; |
|||
unsigned long __msg_rtime_lo; |
|||
unsigned long __msg_rtime_hi; |
|||
unsigned long __msg_ctime_lo; |
|||
unsigned long __msg_ctime_hi; |
|||
unsigned long msg_cbytes; |
|||
msgqnum_t msg_qnum; |
|||
msglen_t msg_qbytes; |
|||
pid_t msg_lspid; |
|||
pid_t msg_lrpid; |
|||
unsigned long __unused[2]; |
|||
time_t msg_stime; |
|||
time_t msg_rtime; |
|||
time_t msg_ctime; |
|||
}; |
|||
|
@ -1,11 +1,13 @@ |
|||
struct semid_ds { |
|||
struct ipc_perm sem_perm; |
|||
time_t sem_otime; |
|||
long __unused1; |
|||
time_t sem_ctime; |
|||
long __unused2; |
|||
unsigned long __sem_otime_lo; |
|||
unsigned long __sem_otime_hi; |
|||
unsigned long __sem_ctime_lo; |
|||
unsigned long __sem_ctime_hi; |
|||
unsigned short sem_nsems; |
|||
char __sem_nsems_pad[sizeof(long)-sizeof(short)]; |
|||
long __unused3; |
|||
long __unused4; |
|||
time_t sem_otime; |
|||
time_t sem_ctime; |
|||
}; |
|||
|
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1 +0,0 @@ |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
@ -1 +1 @@ |
|||
#define IPC_STAT 2 |
|||
#define IPC_STAT 0x102 |
|||
|
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 32 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -1,15 +1,18 @@ |
|||
struct msqid_ds { |
|||
struct ipc_perm msg_perm; |
|||
time_t msg_stime; |
|||
int __unused1; |
|||
time_t msg_rtime; |
|||
int __unused2; |
|||
time_t msg_ctime; |
|||
int __unused3; |
|||
unsigned long __msg_stime_lo; |
|||
unsigned long __msg_stime_hi; |
|||
unsigned long __msg_rtime_lo; |
|||
unsigned long __msg_rtime_hi; |
|||
unsigned long __msg_ctime_lo; |
|||
unsigned long __msg_ctime_hi; |
|||
unsigned long msg_cbytes; |
|||
msgqnum_t msg_qnum; |
|||
msglen_t msg_qbytes; |
|||
pid_t msg_lspid; |
|||
pid_t msg_lrpid; |
|||
unsigned long __unused[2]; |
|||
time_t msg_stime; |
|||
time_t msg_rtime; |
|||
time_t msg_ctime; |
|||
}; |
|||
|
@ -1,11 +1,13 @@ |
|||
struct semid_ds { |
|||
struct ipc_perm sem_perm; |
|||
time_t sem_otime; |
|||
long __unused1; |
|||
time_t sem_ctime; |
|||
long __unused2; |
|||
unsigned long __sem_otime_lo; |
|||
unsigned long __sem_otime_hi; |
|||
unsigned long __sem_ctime_lo; |
|||
unsigned long __sem_ctime_hi; |
|||
char __sem_nsems_pad[sizeof(long)-sizeof(short)]; |
|||
unsigned short sem_nsems; |
|||
long __unused3; |
|||
long __unused4; |
|||
time_t sem_otime; |
|||
time_t sem_ctime; |
|||
}; |
|||
|
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1,5 +0,0 @@ |
|||
#if __MICROBLAZEEL__ |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
|||
#else |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
|||
#endif |
@ -1 +1 @@ |
|||
#define IPC_STAT 2 |
|||
#define IPC_STAT 0x102 |
|||
|
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 32 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -1,15 +1,18 @@ |
|||
struct msqid_ds { |
|||
struct ipc_perm msg_perm; |
|||
time_t msg_stime; |
|||
int __unused1; |
|||
time_t msg_rtime; |
|||
int __unused2; |
|||
time_t msg_ctime; |
|||
int __unused3; |
|||
unsigned long __msg_stime_lo; |
|||
unsigned long __msg_stime_hi; |
|||
unsigned long __msg_rtime_lo; |
|||
unsigned long __msg_rtime_hi; |
|||
unsigned long __msg_ctime_lo; |
|||
unsigned long __msg_ctime_hi; |
|||
unsigned long msg_cbytes; |
|||
msgqnum_t msg_qnum; |
|||
msglen_t msg_qbytes; |
|||
pid_t msg_lspid; |
|||
pid_t msg_lrpid; |
|||
unsigned long __unused[2]; |
|||
time_t msg_stime; |
|||
time_t msg_rtime; |
|||
time_t msg_ctime; |
|||
}; |
|||
|
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1,5 +0,0 @@ |
|||
#if _MIPSEL || __MIPSEL || __MIPSEL__ |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
|||
#else |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
|||
#endif |
@ -1,3 +1,14 @@ |
|||
#define HWCAP_MIPS_R6 (1 << 0) |
|||
#define HWCAP_MIPS_MSA (1 << 1) |
|||
#define HWCAP_MIPS_CRC32 (1 << 2) |
|||
#define HWCAP_MIPS_MIPS16 (1 << 3) |
|||
#define HWCAP_MIPS_MDMX (1 << 4) |
|||
#define HWCAP_MIPS_MIPS3D (1 << 5) |
|||
#define HWCAP_MIPS_SMARTMIPS (1 << 6) |
|||
#define HWCAP_MIPS_DSP (1 << 7) |
|||
#define HWCAP_MIPS_DSP2 (1 << 8) |
|||
#define HWCAP_MIPS_DSP3 (1 << 9) |
|||
#define HWCAP_MIPS_MIPS16E2 (1 << 10) |
|||
#define HWCAP_LOONGSON_MMI (1 << 11) |
|||
#define HWCAP_LOONGSON_EXT (1 << 12) |
|||
#define HWCAP_LOONGSON_EXT2 (1 << 13) |
|||
|
@ -1 +1 @@ |
|||
#define IPC_STAT 2 |
|||
#define IPC_STAT 0x102 |
|||
|
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 32 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -1,5 +0,0 @@ |
|||
#if _MIPSEL || __MIPSEL || __MIPSEL__ |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
|||
#else |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
|||
#endif |
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 64 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffffffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1,5 +0,0 @@ |
|||
#if _MIPSEL || __MIPSEL || __MIPSEL__ |
|||
#define __BYTE_ORDER __LITTLE_ENDIAN |
|||
#else |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
|||
#endif |
@ -1 +1 @@ |
|||
#define IPC_STAT 2 |
|||
#define IPC_STAT 0x102 |
|||
|
@ -1,7 +0,0 @@ |
|||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
|||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
|||
#define LONG_BIT 32 |
|||
#endif |
|||
|
|||
#define LONG_MAX 0x7fffffffL |
|||
#define LLONG_MAX 0x7fffffffffffffffLL |
@ -0,0 +1 @@ |
|||
COMPAT_SRC_DIRS = compat/time32 |
@ -1 +0,0 @@ |
|||
#define __BYTE_ORDER __BIG_ENDIAN |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue