mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-18 00:20:30 +00:00
Make improvements
- Invent openatemp() API - Invent O_UNLINK open flag - Introduce getenv_secure() API - Remove `git pull` from cosmocc - Fix utimes() when path is NULL - Fix mktemp() to never return NULL - Fix utimensat() UTIME_OMIT on XNU - Improve utimensat() code for RHEL5 - Turn `argv[0]` C:/ to /C/ on Windows - Introduce tmpnam() and tmpnam_r() APIs - Fix more const issues with internal APIs - Permit utimes() on WIN32 in O_RDONLY mode - Fix fdopendir() to check fd is a directory - Fix recent crash regression in landlock make - Fix futimens(AT_FDCWD, NULL) to return EBADF - Use workaround so `make -j` doesn't fork bomb - Rename dontdiscard to __wur (just like glibc) - Fix st_size for WIN32 symlinks containing UTF-8 - Introduce stdio ext APIs needed by GNU coreutils - Fix lstat() on WIN32 for symlinks to directories - Move some constants from normalize.inc to limits.h - Fix segv with memchr() and memcmp() overlapping page - Implement POSIX fflush() behavior for reader streams - Implement AT_SYMLINK_NOFOLLOW for utimensat() on WIN32 - Don't change read-only status of existing files on WIN32 - Correctly handle `0x[^[:xdigit:]]` case in strtol() functions
This commit is contained in:
parent
8596e83cce
commit
f531acc8f9
297 changed files with 1920 additions and 1681 deletions
2
third_party/xxhash/cli/xsum_bench.c
vendored
2
third_party/xxhash/cli/xsum_bench.c
vendored
|
@ -46,7 +46,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
|
2
third_party/xxhash/cli/xsum_os_specific.c
vendored
2
third_party/xxhash/cli/xsum_os_specific.c
vendored
|
@ -94,7 +94,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* FILE */
|
||||
static __inline int XSUM_IS_CONSOLE(FILE* stdStream)
|
||||
{
|
||||
|
|
2
third_party/xxhash/cli/xsum_os_specific.h
vendored
2
third_party/xxhash/cli/xsum_os_specific.h
vendored
|
@ -33,7 +33,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
|
||||
|
|
2
third_party/xxhash/cli/xsum_sanity_check.c
vendored
2
third_party/xxhash/cli/xsum_sanity_check.c
vendored
|
@ -41,7 +41,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
|
2
third_party/xxhash/cli/xxhsum.c
vendored
2
third_party/xxhash/cli/xxhsum.c
vendored
|
@ -56,7 +56,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
|
2
third_party/xxhash/tests/bench/benchHash.c
vendored
2
third_party/xxhash/tests/bench/benchHash.c
vendored
|
@ -37,7 +37,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
|
4
third_party/xxhash/tests/bench/benchfn.c
vendored
4
third_party/xxhash/tests/bench/benchfn.c
vendored
|
@ -24,7 +24,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
@ -59,7 +59,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* fprintf */
|
||||
# define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
|
||||
# define DEBUGOUTPUT(...) { if (DEBUG) DISPLAY(__VA_ARGS__); }
|
||||
|
|
4
third_party/xxhash/tests/bench/bhDisplay.c
vendored
4
third_party/xxhash/tests/bench/bhDisplay.c
vendored
|
@ -38,7 +38,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
@ -48,7 +48,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* printf */
|
||||
#include "libc/assert.h"
|
||||
|
||||
|
|
2
third_party/xxhash/tests/bench/main.c
vendored
2
third_party/xxhash/tests/bench/main.c
vendored
|
@ -32,7 +32,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* printf */
|
||||
#include "libc/limits.h"
|
||||
#include "libc/sysv/consts/_posix.h"
|
||||
|
|
8
third_party/xxhash/tests/bench/timefn.c
vendored
8
third_party/xxhash/tests/bench/timefn.c
vendored
|
@ -31,7 +31,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
@ -41,7 +41,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* perror */
|
||||
|
||||
UTIL_time_t UTIL_getTime(void) { UTIL_time_t x; QueryPerformanceCounter(&x); return x; }
|
||||
|
@ -117,7 +117,7 @@ PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd)
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.internal.h"
|
||||
|
@ -128,7 +128,7 @@ PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd)
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* perror */
|
||||
|
||||
UTIL_time_t UTIL_getTime(void)
|
||||
|
|
4
third_party/xxhash/tests/collisions/main.c
vendored
4
third_party/xxhash/tests/collisions/main.c
vendored
|
@ -55,7 +55,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
@ -68,7 +68,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* printf, fflush */
|
||||
|
||||
#undef NDEBUG /* ensure assert is _not_ disabled */
|
||||
|
|
2
third_party/xxhash/tests/collisions/pool.c
vendored
2
third_party/xxhash/tests/collisions/pool.c
vendored
|
@ -22,7 +22,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
|
2
third_party/xxhash/tests/collisions/sort.cc
vendored
2
third_party/xxhash/tests/collisions/sort.cc
vendored
|
@ -51,7 +51,7 @@ void sort64(uint64_t* table, size_t size)
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
|
|
|
@ -66,7 +66,7 @@ extern "C" {
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
/* mutex */
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
/* Use a Japanese filename, something that can't be cheated with ANSI.
|
||||
|
|
2
third_party/xxhash/tests/multiInclude.c
vendored
2
third_party/xxhash/tests/multiInclude.c
vendored
|
@ -31,7 +31,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* printf */
|
||||
|
||||
/* Normal include, gives access to public symbols */
|
||||
|
|
2
third_party/xxhash/xxh_x86dispatch.c
vendored
2
third_party/xxhash/xxh_x86dispatch.c
vendored
|
@ -203,7 +203,7 @@ extern "C" {
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
# define XXH_debugPrint(str) { fprintf(stderr, "DEBUG: xxHash dispatch: %s \n", str); fflush(NULL); }
|
||||
#else
|
||||
|
|
8
third_party/xxhash/xxhash.h
vendored
8
third_party/xxhash/xxhash.h
vendored
|
@ -147,7 +147,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
* #include "libc/assert.h"
|
||||
* #include "third_party/xxhash/xxhash.h"
|
||||
|
@ -1363,7 +1363,7 @@ XXH_PUBLIC_API XXH_PUREF XXH128_hash_t XXH128(XXH_NOESCAPE const void* data, siz
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
* #include "libc/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
|
@ -1375,7 +1375,7 @@ XXH_PUBLIC_API XXH_PUREF XXH128_hash_t XXH128(XXH_NOESCAPE const void* data, siz
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.internal.h"
|
||||
|
@ -1825,7 +1825,7 @@ static void XXH_free(void* p) { (void)p; }
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.internal.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue