mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58: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
4
third_party/zstd/programs/benchfn.c
vendored
4
third_party/zstd/programs/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"
|
||||
|
@ -58,7 +58,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/zstd/programs/benchzstd.c
vendored
4
third_party/zstd/programs/benchzstd.c
vendored
|
@ -33,7 +33,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"
|
||||
|
@ -46,7 +46,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, fopen */
|
||||
#include "libc/errno.h"
|
||||
#include "libc/assert.h" /* assert */
|
||||
|
|
4
third_party/zstd/programs/datagen.c
vendored
4
third_party/zstd/programs/datagen.c
vendored
|
@ -26,7 +26,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"
|
||||
|
@ -36,7 +36,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, fwrite, fprintf */
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/mem/mem.h"
|
||||
|
|
4
third_party/zstd/programs/dibio.c
vendored
4
third_party/zstd/programs/dibio.c
vendored
|
@ -35,7 +35,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" /* fprintf, fopen, ftello64 */
|
||||
#include "libc/errno.h" /* errno */
|
||||
|
||||
|
|
4
third_party/zstd/programs/fileio.c
vendored
4
third_party/zstd/programs/fileio.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" /* fprintf, open, fdopen, fread, _fileno, stdin, stdout */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
|
@ -43,7 +43,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/zstd/programs/fileio_asyncio.c
vendored
4
third_party/zstd/programs/fileio_asyncio.c
vendored
|
@ -15,7 +15,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, open, fdopen, fread, _fileno, stdin, stdout */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
|
@ -27,7 +27,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/zstd/programs/platform.h
vendored
4
third_party/zstd/programs/platform.h
vendored
|
@ -189,7 +189,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" /* fileno */
|
||||
# define IS_CONSOLE(stdStream) isatty(fileno(stdStream))
|
||||
#elif defined(MSDOS) || defined(OS2)
|
||||
|
@ -221,7 +221,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" /* FILE */
|
||||
static __inline int IS_CONSOLE(FILE* stdStream) {
|
||||
DWORD dummy;
|
||||
|
|
12
third_party/zstd/programs/timefn.c
vendored
12
third_party/zstd/programs/timefn.c
vendored
|
@ -59,7 +59,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"
|
||||
|
@ -69,7 +69,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)
|
||||
|
@ -123,7 +123,7 @@ UTIL_time_t UTIL_getTime(void)
|
|||
#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"
|
||||
|
@ -134,7 +134,7 @@ UTIL_time_t UTIL_getTime(void)
|
|||
#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)
|
||||
|
@ -171,7 +171,7 @@ UTIL_time_t UTIL_getTime(void)
|
|||
#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"
|
||||
|
@ -182,7 +182,7 @@ UTIL_time_t UTIL_getTime(void)
|
|||
#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/zstd/programs/util.c
vendored
4
third_party/zstd/programs/util.c
vendored
|
@ -28,7 +28,7 @@ extern "C" {
|
|||
#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"
|
||||
|
@ -38,7 +38,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" /* fprintf */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
|
|
4
third_party/zstd/programs/zstdcli.c
vendored
4
third_party/zstd/programs/zstdcli.c
vendored
|
@ -40,7 +40,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"
|
||||
|
@ -53,7 +53,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(), stdin, stdout, stderr */
|
||||
#include "libc/errno.h" /* errno */
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
|
4
third_party/zstd/programs/zstdcli_trace.c
vendored
4
third_party/zstd/programs/zstdcli_trace.c
vendored
|
@ -17,7 +17,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/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
|
@ -29,7 +29,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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue