Skip to content

Commit

Permalink
Remove some linux-specific musl headers (#17704)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbc100 authored Aug 24, 2022
1 parent d4cf40c commit 655ad88
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 1,074 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ See docs/process.md for more on how version tagging works.
wasm/JS interface. These function are no longer exported in all cases. If
your code directly calls these functions from JS, you can add them to
`-sEXPORTED_RUNTIME_METHODS`.
- Several linux-specific headers were removed from the emscripten sysroot. None
of the functionality in these headers was ever supported by emscripten. For
example `sys/soundcard.h` and `sys/ptrace.h`. (#17704)

3.1.19 - 08/17/2022
-------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include <signal.h>
#include <sys/mman.h>
#include <sys/param.h>
#if !SANITIZER_SOLARIS
#if !SANITIZER_SOLARIS && !SANITIZER_EMSCRIPTEN
#include <sys/ptrace.h>
#endif
#include <sys/resource.h>
Expand Down
21 changes: 4 additions & 17 deletions system/lib/libc/musl/arch/emscripten/bits/reg.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#undef __WORDSIZE
#ifdef __wasm64__
#define __WORDSIZE 64
#else
#define __WORDSIZE 32
#define EBX 0
#define ECX 1
#define EDX 2
#define ESI 3
#define EDI 4
#define EBP 5
#define EAX 6
#define DS 7
#define ES 8
#define FS 9
#define GS 10
#define ORIG_EAX 11
#define EIP 12
#define CS 13
#define EFL 14
#define UESP 15
#define SS 16
#endif
Empty file.
1 change: 0 additions & 1 deletion system/lib/libc/musl/arch/generic/bits/kd.h

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion system/lib/libc/musl/arch/generic/bits/soundcard.h

This file was deleted.

1 change: 0 additions & 1 deletion system/lib/libc/musl/arch/generic/bits/vt.h

This file was deleted.

17 changes: 0 additions & 17 deletions system/lib/libc/musl/include/sys/auxv.h

This file was deleted.

22 changes: 0 additions & 22 deletions system/lib/libc/musl/include/sys/cachectl.h

This file was deleted.

69 changes: 0 additions & 69 deletions system/lib/libc/musl/include/sys/epoll.h

This file was deleted.

26 changes: 0 additions & 26 deletions system/lib/libc/musl/include/sys/eventfd.h

This file was deleted.

111 changes: 0 additions & 111 deletions system/lib/libc/musl/include/sys/fanotify.h

This file was deleted.

20 changes: 0 additions & 20 deletions system/lib/libc/musl/include/sys/fsuid.h

This file was deleted.

58 changes: 0 additions & 58 deletions system/lib/libc/musl/include/sys/inotify.h

This file was deleted.

17 changes: 0 additions & 17 deletions system/lib/libc/musl/include/sys/io.h

This file was deleted.

1 change: 0 additions & 1 deletion system/lib/libc/musl/include/sys/kd.h

This file was deleted.

Loading

0 comments on commit 655ad88

Please sign in to comment.