mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-01 15:30:29 +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
1
third_party/argon2/argon2.h
vendored
1
third_party/argon2/argon2.h
vendored
|
@ -1,5 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_ARGON2_ARGON2_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_ARGON2_ARGON2_H_
|
||||
#include "libc/limits.h"
|
||||
#include "libc/literal.h"
|
||||
|
||||
#define ARGON2_NO_THREADS
|
||||
|
|
2
third_party/awk/awkgram.y
vendored
2
third_party/awk/awkgram.y
vendored
|
@ -27,7 +27,7 @@ THIS SOFTWARE.
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/lock.internal.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/awk/awk.h"
|
||||
|
|
2
third_party/chibicc/chibicc.h
vendored
2
third_party/chibicc/chibicc.h
vendored
|
@ -17,7 +17,7 @@
|
|||
#include "libc/nexgen32e/crc32.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/str/unicode.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
|
|
1
third_party/compiler_rt/int_lib.h
vendored
1
third_party/compiler_rt/int_lib.h
vendored
|
@ -57,6 +57,7 @@
|
|||
|
||||
#include "libc/literal.h"
|
||||
#include "libc/math.h"
|
||||
#include "libc/limits.h"
|
||||
|
||||
/* Include the commonly used internal type definitions. */
|
||||
#include "third_party/compiler_rt/int_types.h"
|
||||
|
|
2
third_party/ctags/args.h
vendored
2
third_party/ctags/args.h
vendored
|
@ -22,7 +22,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
/*
|
||||
|
|
2
third_party/ctags/eiffel.c
vendored
2
third_party/ctags/eiffel.c
vendored
|
@ -23,7 +23,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#endif
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
2
third_party/ctags/entry.h
vendored
2
third_party/ctags/entry.h
vendored
|
@ -22,7 +22,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
#include "third_party/ctags/vstring.h"
|
||||
|
|
2
third_party/ctags/flex.c
vendored
2
third_party/ctags/flex.c
vendored
|
@ -29,7 +29,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#endif
|
||||
|
||||
|
|
2
third_party/ctags/jscript.c
vendored
2
third_party/ctags/jscript.c
vendored
|
@ -28,7 +28,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#endif
|
||||
|
||||
|
|
2
third_party/ctags/main.h
vendored
2
third_party/ctags/main.h
vendored
|
@ -22,7 +22,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
#include "third_party/ctags/vstring.h"
|
||||
|
|
4
third_party/ctags/options.c
vendored
4
third_party/ctags/options.c
vendored
|
@ -24,7 +24,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
@ -38,7 +38,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#include "libc/str/str.h" /* to declare isspace () */
|
||||
|
||||
|
|
2
third_party/ctags/read.h
vendored
2
third_party/ctags/read.h
vendored
|
@ -28,7 +28,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
|
|
4
third_party/ctags/sort.c
vendored
4
third_party/ctags/sort.c
vendored
|
@ -26,7 +26,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
@ -41,7 +41,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
#include "third_party/ctags/debug.h"
|
||||
|
|
2
third_party/ctags/sql.c
vendored
2
third_party/ctags/sql.c
vendored
|
@ -24,7 +24,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#endif
|
||||
|
||||
|
|
2
third_party/ctags/tex.c
vendored
2
third_party/ctags/tex.c
vendored
|
@ -25,7 +25,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#endif
|
||||
|
||||
|
|
2
third_party/ctags/vim.c
vendored
2
third_party/ctags/vim.c
vendored
|
@ -27,7 +27,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#endif
|
||||
|
||||
|
|
2
third_party/ctags/vstring.h
vendored
2
third_party/ctags/vstring.h
vendored
|
@ -27,7 +27,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
3
third_party/finger/finger.c
vendored
3
third_party/finger/finger.c
vendored
|
@ -33,10 +33,12 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
#include "third_party/finger/finger.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/stat.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nt/struct/msg.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
@ -46,7 +48,6 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/fileno.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "third_party/finger/finger.h"
|
||||
#include "third_party/getopt/getopt.internal.h"
|
||||
#include "third_party/musl/passwd.h"
|
||||
// clang-format off
|
||||
|
|
2
third_party/hiredis/alloc.c
vendored
2
third_party/hiredis/alloc.c
vendored
|
@ -41,7 +41,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/hiredis/async.c
vendored
2
third_party/hiredis/async.c
vendored
|
@ -40,7 +40,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/hiredis/dict.c
vendored
2
third_party/hiredis/dict.c
vendored
|
@ -44,7 +44,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/hiredis/hiredis.c
vendored
2
third_party/hiredis/hiredis.c
vendored
|
@ -43,7 +43,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
4
third_party/hiredis/net.c
vendored
4
third_party/hiredis/net.c
vendored
|
@ -70,7 +70,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/sysv/consts/_posix.h"
|
||||
|
@ -87,7 +87,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/hiredis/read.c
vendored
2
third_party/hiredis/read.c
vendored
|
@ -41,7 +41,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/hiredis/read.h
vendored
2
third_party/hiredis/read.h
vendored
|
@ -38,7 +38,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h" /* for size_t */
|
||||
|
||||
#define REDIS_ERR -1
|
||||
|
|
6
third_party/hiredis/sds.c
vendored
6
third_party/hiredis/sds.c
vendored
|
@ -36,7 +36,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.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/stdio/dprintf.h"
|
||||
|
@ -47,7 +47,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
@ -1147,7 +1147,7 @@ void sds_free(void *ptr) { s_free(ptr); }
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
// MISSING #include "testhelp.h"
|
||||
// MISSING #include "limits.h"
|
||||
|
|
2
third_party/libcxx/stdio.h
vendored
2
third_party/libcxx/stdio.h
vendored
|
@ -104,7 +104,7 @@ void perror(const char* s);
|
|||
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
|
||||
|
|
6
third_party/linenoise/linenoise.h
vendored
6
third_party/linenoise/linenoise.h
vendored
|
@ -23,8 +23,8 @@ void linenoiseSetFreeHintsCallback(linenoiseFreeHintsCallback *);
|
|||
void linenoiseAddCompletion(linenoiseCompletions *, const char *);
|
||||
void linenoiseSetXlatCallback(linenoiseXlatCallback *);
|
||||
|
||||
char *linenoise(const char *) dontdiscard;
|
||||
char *linenoiseWithHistory(const char *, const char *) dontdiscard;
|
||||
char *linenoise(const char *) __wur;
|
||||
char *linenoiseWithHistory(const char *, const char *) __wur;
|
||||
int linenoiseHistoryAdd(const char *);
|
||||
int linenoiseHistorySave(const char *);
|
||||
int linenoiseHistoryLoad(const char *);
|
||||
|
@ -48,7 +48,7 @@ void linenoiseEnd(struct linenoiseState *);
|
|||
char *linenoiseGetLine(FILE *);
|
||||
struct winsize linenoiseGetTerminalSize(struct winsize, int, int);
|
||||
void linenoiseRefreshLine(struct linenoiseState *);
|
||||
char *linenoiseRaw(const char *, int, int) dontdiscard;
|
||||
char *linenoiseRaw(const char *, int, int) __wur;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
2
third_party/lua/cosmo.h
vendored
2
third_party/lua/cosmo.h
vendored
|
@ -23,7 +23,7 @@ struct Serializer {
|
|||
};
|
||||
|
||||
bool LuaHasMultipleItems(lua_State *);
|
||||
char *LuaFormatStack(lua_State *) dontdiscard;
|
||||
char *LuaFormatStack(lua_State *) __wur;
|
||||
int LuaCallWithTrace(lua_State *, int, int, lua_State *);
|
||||
int LuaEncodeJsonData(lua_State *, char **, int, struct EncoderConfig);
|
||||
int LuaEncodeLuaData(lua_State *, char **, int, struct EncoderConfig);
|
||||
|
|
2
third_party/lua/liolib.c
vendored
2
third_party/lua/liolib.c
vendored
|
@ -32,7 +32,7 @@
|
|||
#include "libc/errno.h"
|
||||
#include "libc/stdio/lock.internal.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/lua/lauxlib.h"
|
||||
#include "third_party/lua/lprefix.h"
|
||||
|
|
2
third_party/lua/loslib.c
vendored
2
third_party/lua/loslib.c
vendored
|
@ -31,7 +31,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "libc/time/struct/tm.h"
|
||||
|
|
2
third_party/lua/luaformatstack.c
vendored
2
third_party/lua/luaformatstack.c
vendored
|
@ -20,7 +20,7 @@
|
|||
#include "third_party/lua/cosmo.h"
|
||||
#include "third_party/lua/lauxlib.h"
|
||||
|
||||
dontdiscard char *LuaFormatStack(lua_State *L) {
|
||||
__wur char *LuaFormatStack(lua_State *L) {
|
||||
int i, top;
|
||||
char *b = 0;
|
||||
struct EncoderConfig conf = {
|
||||
|
|
2
third_party/make/job.c
vendored
2
third_party/make/job.c
vendored
|
@ -1935,7 +1935,7 @@ child_execute_job (struct childbase *child,
|
|||
ps = emptytonull (get_target_variable
|
||||
(STRING_SIZE_TUPLE (".PLEDGE"),
|
||||
c ? c->file : 0, 0));
|
||||
promises = ps ? xstrdup (promises) : 0;
|
||||
promises = ps ? xstrdup (ps) : 0;
|
||||
if (ParsePromises (promises, &ipromises))
|
||||
{
|
||||
OSS (error, NILF, "%s: invalid .PLEDGE string: %s",
|
||||
|
|
4
third_party/make/main.c
vendored
4
third_party/make/main.c
vendored
|
@ -979,6 +979,10 @@ main (int argc, char **argv, char **envp)
|
|||
unsigned int syncing = 0;
|
||||
int argv_slots;
|
||||
|
||||
// [jart] workaround to prevent make -j fork bomb
|
||||
default_load_average = __get_cpu_count();
|
||||
max_load_average = default_load_average;
|
||||
|
||||
/* Useful for attaching debuggers, etc. */
|
||||
SPIN ("main-entry");
|
||||
|
||||
|
|
2
third_party/make/makeint.inc
vendored
2
third_party/make/makeint.inc
vendored
|
@ -35,7 +35,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/stack.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/locale.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/f.h"
|
||||
|
|
2
third_party/mbedtls/formatclientciphers.c
vendored
2
third_party/mbedtls/formatclientciphers.c
vendored
|
@ -25,7 +25,7 @@
|
|||
* Returns string of joined list of first 𝑘 client preferred ciphers.
|
||||
* @return string that must be free'd, or null if none set
|
||||
*/
|
||||
dontdiscard char *FormatSslClientCiphers(const mbedtls_ssl_context *ssl) {
|
||||
__wur char *FormatSslClientCiphers(const mbedtls_ssl_context *ssl) {
|
||||
int i;
|
||||
char *b = 0;
|
||||
for (i = 0; i < ARRAYLEN(ssl->client_ciphers); ++i) {
|
||||
|
|
2
third_party/mbedtls/iana.h
vendored
2
third_party/mbedtls/iana.h
vendored
|
@ -8,7 +8,7 @@ bool IsCipherSuiteGood(uint16_t);
|
|||
const char *GetCipherSuiteName(uint16_t);
|
||||
const char *DescribeMbedtlsErrorCode(int);
|
||||
const char *GetAlertDescription(unsigned char);
|
||||
dontdiscard char *FormatSslClientCiphers(const mbedtls_ssl_context *);
|
||||
char *FormatSslClientCiphers(const mbedtls_ssl_context *) __wur;
|
||||
const char *DescribeSslClientHandshakeError(const mbedtls_ssl_context *, int);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
2
third_party/musl/crypt_sha256.c
vendored
2
third_party/musl/crypt_sha256.c
vendored
|
@ -36,7 +36,7 @@
|
|||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/musl/crypt_sha512.c
vendored
2
third_party/musl/crypt_sha512.c
vendored
|
@ -36,7 +36,7 @@
|
|||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/musl/encrypt.c
vendored
2
third_party/musl/encrypt.c
vendored
|
@ -34,7 +34,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "libc/sysv/consts/fileno.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
|
|
1
third_party/musl/pwd.c
vendored
1
third_party/musl/pwd.c
vendored
|
@ -29,6 +29,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/paths.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
|
1
third_party/musl/tempnam.c
vendored
1
third_party/musl/tempnam.c
vendored
|
@ -30,6 +30,7 @@
|
|||
#include "libc/calls/struct/stat.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/str/str.h"
|
||||
|
|
2
third_party/nsync/testing/testing.c
vendored
2
third_party/nsync/testing/testing.c
vendored
|
@ -22,7 +22,7 @@
|
|||
#include "libc/log/log.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/nsync/atomic.internal.h"
|
||||
#include "third_party/nsync/common.internal.h"
|
||||
|
|
1
third_party/python/Modules/bextra.c
vendored
1
third_party/python/Modules/bextra.c
vendored
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "third_party/python/Modules/bextra.h"
|
||||
#include "libc/limits.h"
|
||||
|
||||
unsigned BitFieldExtract(const unsigned *p, size_t i, char b) {
|
||||
unsigned k, r, w;
|
||||
|
|
10
third_party/quickjs/call.c
vendored
10
third_party/quickjs/call.c
vendored
|
@ -23,8 +23,8 @@
|
|||
* THE SOFTWARE.
|
||||
*/
|
||||
#include "libc/assert.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/mem/gc.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "third_party/quickjs/internal.h"
|
||||
|
||||
|
@ -1345,7 +1345,7 @@ exception:
|
|||
return -1;
|
||||
}
|
||||
|
||||
static dontdiscard int js_operator_instanceof(JSContext *ctx, JSValue *sp)
|
||||
static __wur int js_operator_instanceof(JSContext *ctx, JSValue *sp)
|
||||
{
|
||||
JSValue op1, op2;
|
||||
BOOL ret;
|
||||
|
@ -1360,7 +1360,7 @@ static dontdiscard int js_operator_instanceof(JSContext *ctx, JSValue *sp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static dontdiscard int js_operator_typeof(JSContext *ctx, JSValueConst op1)
|
||||
static __wur int js_operator_typeof(JSContext *ctx, JSValueConst op1)
|
||||
{
|
||||
JSAtom atom;
|
||||
uint32_t tag;
|
||||
|
@ -1416,7 +1416,7 @@ static dontdiscard int js_operator_typeof(JSContext *ctx, JSValueConst op1)
|
|||
return atom;
|
||||
}
|
||||
|
||||
static dontdiscard int js_operator_delete(JSContext *ctx, JSValue *sp)
|
||||
static __wur int js_operator_delete(JSContext *ctx, JSValue *sp)
|
||||
{
|
||||
JSValue op1, op2;
|
||||
JSAtom atom;
|
||||
|
@ -1436,7 +1436,7 @@ static dontdiscard int js_operator_delete(JSContext *ctx, JSValue *sp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static dontdiscard int js_has_unscopable(JSContext *ctx, JSValueConst obj, JSAtom atom)
|
||||
static __wur int js_has_unscopable(JSContext *ctx, JSValueConst obj, JSAtom atom)
|
||||
{
|
||||
JSValue arr, val;
|
||||
int ret;
|
||||
|
|
44
third_party/quickjs/internal.h
vendored
44
third_party/quickjs/internal.h
vendored
|
@ -413,7 +413,7 @@ typedef enum JSErrorEnum {
|
|||
#define JS_STACK_SIZE_MAX 65534
|
||||
#define JS_STRING_LEN_MAX ((1 << 30) - 1)
|
||||
|
||||
#define __exception dontdiscard
|
||||
#define __exception __wur
|
||||
|
||||
typedef struct JSShape JSShape;
|
||||
typedef struct JSString JSString;
|
||||
|
@ -1795,17 +1795,17 @@ JSValue js_promise_resolve(JSContext *, JSValueConst, int, JSValueConst *, int);
|
|||
JSValue js_string___GetSubstitution(JSContext *, JSValueConst, int, JSValueConst *);
|
||||
JSValue js_string_constructor(JSContext *, JSValueConst, int, JSValueConst *);
|
||||
JSValueConst JS_NewGlobalCConstructor(JSContext *, const char *, JSCFunction *, int, JSValueConst);
|
||||
int JS_CopyDataProperties(JSContext *, JSValueConst, JSValueConst, JSValueConst, BOOL) dontdiscard;
|
||||
int JS_CopyDataProperties(JSContext *, JSValueConst, JSValueConst, JSValueConst, BOOL) __wur;
|
||||
int JS_GetOwnPropertyInternal(JSContext *, JSPropertyDescriptor *, JSObject *, JSAtom);
|
||||
int JS_GetOwnPropertyNamesInternal(JSContext *, JSPropertyEnum **, uint32_t *, JSObject *, int) dontdiscard;
|
||||
int JS_GetOwnPropertyNamesInternal(JSContext *, JSPropertyEnum **, uint32_t *, JSObject *, int) __wur;
|
||||
int JS_SetObjectData(JSContext *, JSValueConst, JSValue);
|
||||
int JS_ToArrayLengthFree(JSContext *, uint32_t *, JSValue, BOOL) dontdiscard;
|
||||
int JS_ToArrayLengthFree(JSContext *, uint32_t *, JSValue, BOOL) __wur;
|
||||
int JS_ToInt32Clamp(JSContext *, int *, JSValueConst, int, int, int);
|
||||
int JS_ToInt64Sat(JSContext *, int64_t *, JSValueConst);
|
||||
int JS_ToLengthFree(JSContext *, int64_t *, JSValue) dontdiscard;
|
||||
int JS_ToLengthFree(JSContext *, int64_t *, JSValue) __wur;
|
||||
int JS_ToUint8ClampFree(JSContext *, int32_t *, JSValue);
|
||||
int __JS_ToFloat64Free(JSContext *, double *, JSValue) dontdiscard;
|
||||
int __js_poll_interrupts(JSContext *) dontdiscard;
|
||||
int __JS_ToFloat64Free(JSContext *, double *, JSValue) __wur;
|
||||
int __js_poll_interrupts(JSContext *) __wur;
|
||||
int add_closure_var(JSContext *, JSFunctionDef *, BOOL, BOOL, int, JSAtom, BOOL, BOOL, JSVarKindEnum);
|
||||
int add_scope_var(JSContext *, JSFunctionDef *, JSAtom, JSVarKindEnum);
|
||||
int add_var(JSContext *, JSFunctionDef *, JSAtom);
|
||||
|
@ -1821,27 +1821,27 @@ int find_lexical_decl(JSContext *, JSFunctionDef *, JSAtom, int, BOOL);
|
|||
int find_private_class_field(JSContext *, JSFunctionDef *, JSAtom, int);
|
||||
int find_var(JSContext *, JSFunctionDef *, JSAtom);
|
||||
int get_ovop_from_opcode(OPCodeEnum);
|
||||
int ident_realloc(JSContext *, char **, size_t *, char *) dontdiscard;
|
||||
int ident_realloc(JSContext *, char **, size_t *, char *) __wur;
|
||||
int init_class_range(JSRuntime *, JSClassShortDef const *, int, int);
|
||||
int js_add_slow(JSContext *, JSValue *) dontdiscard;
|
||||
int js_binary_arith_slow(JSContext *, JSValue *, OPCodeEnum) dontdiscard;
|
||||
int js_add_slow(JSContext *, JSValue *) __wur;
|
||||
int js_binary_arith_slow(JSContext *, JSValue *, OPCodeEnum) __wur;
|
||||
int js_binary_logic_slow(JSContext *, JSValue *, OPCodeEnum);
|
||||
int js_call_binary_op_fallback(JSContext *, JSValue *, JSValueConst, JSValueConst, OPCodeEnum, BOOL, int);
|
||||
int js_eq_slow(JSContext *, JSValue *, BOOL) dontdiscard;
|
||||
int js_for_of_start(JSContext *, JSValue *, BOOL) dontdiscard;
|
||||
int js_get_length32(JSContext *, uint32_t *, JSValueConst) dontdiscard;
|
||||
int js_get_length64(JSContext *, int64_t *, JSValueConst) dontdiscard;
|
||||
int js_eq_slow(JSContext *, JSValue *, BOOL) __wur;
|
||||
int js_for_of_start(JSContext *, JSValue *, BOOL) __wur;
|
||||
int js_get_length32(JSContext *, uint32_t *, JSValueConst) __wur;
|
||||
int js_get_length64(JSContext *, int64_t *, JSValueConst) __wur;
|
||||
int js_get_radix(JSContext *, JSValueConst);
|
||||
int js_not_slow(JSContext *, JSValue *);
|
||||
int js_obj_to_desc(JSContext *, JSPropertyDescriptor *, JSValueConst);
|
||||
int js_operator_in(JSContext *, JSValue *) dontdiscard;
|
||||
int js_parse_export(JSParseState *) dontdiscard;
|
||||
int js_operator_in(JSContext *, JSValue *) __wur;
|
||||
int js_parse_export(JSParseState *) __wur;
|
||||
int js_parse_string(JSParseState *, int, BOOL, const uint8_t *, JSToken *, const uint8_t **);
|
||||
int js_parse_template_part(JSParseState *, const uint8_t *) dontdiscard;
|
||||
int js_post_inc_slow(JSContext *, JSValue *, OPCodeEnum) dontdiscard;
|
||||
int js_parse_template_part(JSParseState *, const uint8_t *) __wur;
|
||||
int js_post_inc_slow(JSContext *, JSValue *, OPCodeEnum) __wur;
|
||||
int js_relational_slow(JSContext *, JSValue *, OPCodeEnum);
|
||||
int js_shr_slow(JSContext *, JSValue *);
|
||||
int js_unary_arith_slow(JSContext *, JSValue *, OPCodeEnum) dontdiscard;
|
||||
int js_unary_arith_slow(JSContext *, JSValue *, OPCodeEnum) __wur;
|
||||
int js_update_property_flags(JSContext *, JSObject *, JSShapeProperty **, int);
|
||||
int new_label(JSParseState *);
|
||||
int perform_promise_then(JSContext *, JSValueConst, JSValueConst *, JSValueConst *);
|
||||
|
@ -1882,9 +1882,9 @@ void js_autoinit_mark(JSRuntime *, JSProperty *, JS_MarkFunc *);
|
|||
void free_zero_refcount(JSRuntime *);
|
||||
|
||||
void free_token(JSParseState *, JSToken *);
|
||||
int next_token(JSParseState *) dontdiscard;
|
||||
int next_token(JSParseState *) __wur;
|
||||
int simple_next_token(const uint8_t **, BOOL);
|
||||
int js_parse_program(JSParseState *) dontdiscard;
|
||||
int js_parse_program(JSParseState *) __wur;
|
||||
|
||||
JSValue JS_IteratorGetCompleteValue(JSContext *, JSValueConst, BOOL *);
|
||||
JSValue js_create_iterator_result(JSContext *, JSValue, BOOL);
|
||||
|
@ -1915,7 +1915,7 @@ JSValue js_closure2(JSContext *, JSValue, JSFunctionBytecode *, JSVarRef **, JSS
|
|||
JSValue js_function_apply(JSContext *, JSValueConst, int, JSValueConst *, int);
|
||||
JSValue js_function_constructor(JSContext *, JSValueConst, int, JSValueConst *, int);
|
||||
JSVarRef *get_var_ref(JSContext *, JSStackFrame *, int, BOOL);
|
||||
int async_func_init(JSContext *, JSAsyncFunctionState *, JSValueConst, JSValueConst, int, JSValueConst *) dontdiscard;
|
||||
int async_func_init(JSContext *, JSAsyncFunctionState *, JSValueConst, JSValueConst, int, JSValueConst *) __wur;
|
||||
void async_func_free(JSRuntime *, JSAsyncFunctionState *);
|
||||
void async_func_mark(JSRuntime *, JSAsyncFunctionState *, JS_MarkFunc *);
|
||||
void js_async_generator_free(JSRuntime *, JSAsyncGeneratorData *);
|
||||
|
|
2
third_party/quickjs/quickjs-libc.c
vendored
2
third_party/quickjs/quickjs-libc.c
vendored
|
@ -41,7 +41,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/sysconf.h"
|
||||
#include "libc/sock/select.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/clock.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
|
|
4
third_party/sed/compile.c
vendored
4
third_party/sed/compile.c
vendored
|
@ -65,13 +65,13 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/lock.internal.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/gdtoa/gdtoa.h"
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
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"
|
||||
|
|
4
third_party/zip/tailor.h
vendored
4
third_party/zip/tailor.h
vendored
|
@ -225,7 +225,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
#ifndef NO_STDDEF_H
|
||||
|
@ -242,7 +242,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/zip/zip.c
vendored
2
third_party/zip/zip.c
vendored
|
@ -90,7 +90,7 @@
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
#ifdef UNICODE_TEST
|
||||
|
|
2
third_party/zip/zipcloak.c
vendored
2
third_party/zip/zipcloak.c
vendored
|
@ -45,7 +45,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/zip/zipfile.c
vendored
2
third_party/zip/zipfile.c
vendored
|
@ -32,7 +32,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.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/gdtoa/gdtoa.h"
|
||||
|
|
2
third_party/zlib/inflate.c
vendored
2
third_party/zlib/inflate.c
vendored
|
@ -332,7 +332,7 @@ struct inflate_state FAR *state;
|
|||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
||||
/*
|
||||
|
|
2
third_party/zlib/trees.c
vendored
2
third_party/zlib/trees.c
vendored
|
@ -10,7 +10,7 @@
|
|||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/stdio/lock.internal.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/zlib/deflate.internal.h"
|
||||
// clang-format off
|
||||
|
|
2
third_party/zstd/lib/common/mem.h
vendored
2
third_party/zstd/lib/common/mem.h
vendored
|
@ -39,7 +39,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"
|
||||
|
|
2
third_party/zstd/lib/common/xxhash.h
vendored
2
third_party/zstd/lib/common/xxhash.h
vendored
|
@ -440,7 +440,7 @@ XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t length, XXH32_hash_
|
|||
#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"
|
||||
* // MISSING #include <xxhash.h>
|
||||
* #define BUFFER_SIZE 256
|
||||
|
|
4
third_party/zstd/lib/common/zstd_deps.h
vendored
4
third_party/zstd/lib/common/zstd_deps.h
vendored
|
@ -67,7 +67,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"
|
||||
|
@ -118,7 +118,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"
|
||||
#define ZSTD_DEBUG_PRINT(...) fprintf(stderr, __VA_ARGS__)
|
||||
|
||||
|
|
|
@ -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"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
|
|
4
third_party/zstd/lib/dictBuilder/cover.c
vendored
4
third_party/zstd/lib/dictBuilder/cover.c
vendored
|
@ -27,7 +27,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 */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
|
@ -39,7 +39,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/lib/dictBuilder/cover.h
vendored
4
third_party/zstd/lib/dictBuilder/cover.h
vendored
|
@ -18,7 +18,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 */
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/termios.h"
|
||||
|
@ -30,7 +30,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"
|
||||
|
|
|
@ -43,7 +43,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"
|
||||
|
@ -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"
|
||||
|
|
4
third_party/zstd/lib/dictBuilder/fastcover.c
vendored
4
third_party/zstd/lib/dictBuilder/fastcover.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" /* fprintf */
|
||||
#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"
|
||||
|
|
4
third_party/zstd/lib/dictBuilder/zdict.c
vendored
4
third_party/zstd/lib/dictBuilder/zdict.c
vendored
|
@ -47,7 +47,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"
|
||||
|
@ -60,7 +60,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/calls/calls.h"
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
|
|
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