Skip to content

Commit f4fb5d7

Browse files
committed
Remove some linux-specific musl headers
We don't implement any of the functions declared in these headers, so there is not real use them, and I think it can be misleading to allow them to be included at compile time. See #17638
1 parent 37aa752 commit f4fb5d7

File tree

28 files changed

+6
-1072
lines changed

28 files changed

+6
-1072
lines changed

system/lib/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
#include <signal.h>
6060
#include <sys/mman.h>
6161
#include <sys/param.h>
62-
#if !SANITIZER_SOLARIS
62+
#if !SANITIZER_SOLARIS && !SANITIZER_EMSCRIPTEN
6363
#include <sys/ptrace.h>
6464
#endif
6565
#include <sys/resource.h>
Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
#undef __WORDSIZE
2+
#ifdef __wasm64__
3+
#define __WORDSIZE 64
4+
#else
25
#define __WORDSIZE 32
3-
#define EBX 0
4-
#define ECX 1
5-
#define EDX 2
6-
#define ESI 3
7-
#define EDI 4
8-
#define EBP 5
9-
#define EAX 6
10-
#define DS 7
11-
#define ES 8
12-
#define FS 9
13-
#define GS 10
14-
#define ORIG_EAX 11
15-
#define EIP 12
16-
#define CS 13
17-
#define EFL 14
18-
#define UESP 15
19-
#define SS 16
6+
#endif

system/lib/libc/musl/arch/generic/bits/kd.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

system/lib/libc/musl/arch/generic/bits/soundcard.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

system/lib/libc/musl/arch/generic/bits/vt.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

system/lib/libc/musl/include/sys/auxv.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

system/lib/libc/musl/include/sys/cachectl.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

system/lib/libc/musl/include/sys/epoll.h

Lines changed: 0 additions & 69 deletions
This file was deleted.

system/lib/libc/musl/include/sys/eventfd.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

system/lib/libc/musl/include/sys/fanotify.h

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)