mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-23 19:10:30 +00:00
Clean up some code
- Use good ELF technique in cosmo_dlopen() - Make strerror() conform more to other libc impls - Introduce __clear_cache() and use it in cosmo_dlopen() - Remove libc/fmt/fmt.h header (trying to kill off LIBC_FMT)
This commit is contained in:
parent
7010a8081e
commit
68c7c9c1e0
244 changed files with 378 additions and 588 deletions
1
third_party/xxhash/cli/xsum_os_specific.c
vendored
1
third_party/xxhash/cli/xsum_os_specific.c
vendored
|
@ -91,7 +91,6 @@
|
|||
#include "libc/nt/winsock.h" /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/cli/xsum_os_specific.h
vendored
1
third_party/xxhash/cli/xsum_os_specific.h
vendored
|
@ -30,7 +30,6 @@
|
|||
#include "third_party/xxhash/cli/xsum_config.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/tests/bench/benchfn.c
vendored
1
third_party/xxhash/tests/bench/benchfn.c
vendored
|
@ -56,7 +56,6 @@
|
|||
#if defined(DEBUG) && (DEBUG >= 1)
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/tests/bench/bhDisplay.c
vendored
1
third_party/xxhash/tests/bench/bhDisplay.c
vendored
|
@ -45,7 +45,6 @@
|
|||
#include "third_party/musl/rand48.h" /* rand */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/tests/bench/main.c
vendored
1
third_party/xxhash/tests/bench/main.c
vendored
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
2
third_party/xxhash/tests/bench/timefn.c
vendored
2
third_party/xxhash/tests/bench/timefn.c
vendored
|
@ -38,7 +38,6 @@
|
|||
#include "third_party/musl/rand48.h" /* abort */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
@ -125,7 +124,6 @@ PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd)
|
|||
#include "third_party/musl/rand48.h" /* abort */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/tests/collisions/main.c
vendored
1
third_party/xxhash/tests/collisions/main.c
vendored
|
@ -65,7 +65,6 @@
|
|||
#include "libc/str/str.h" /* memset */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
|
@ -63,7 +63,6 @@ extern "C" {
|
|||
#include "libc/nt/winsock.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#define _CRT_SECURE_NO_WARNINGS /* Silence warnings on MSVC */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/tests/multiInclude.c
vendored
1
third_party/xxhash/tests/multiInclude.c
vendored
|
@ -28,7 +28,6 @@
|
|||
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
1
third_party/xxhash/xxh_x86dispatch.c
vendored
1
third_party/xxhash/xxh_x86dispatch.c
vendored
|
@ -200,7 +200,6 @@ extern "C" {
|
|||
/* debug logging */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
2
third_party/xxhash/xxhash.h
vendored
2
third_party/xxhash/xxhash.h
vendored
|
@ -144,7 +144,6 @@
|
|||
* @code{.c}
|
||||
* #include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
@ -1360,7 +1359,6 @@ XXH_PUBLIC_API XXH_PUREF XXH128_hash_t XXH128(XXH_NOESCAPE const void* data, siz
|
|||
* @code{.c}
|
||||
* #include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/temp.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue