Switch public headers to getopt_long() entirely

Cosmopolitan's getopt() is now redefined as __getopt().
This commit is contained in:
Justine Tunney 2023-07-02 19:57:43 -07:00
parent 0c630d95b5
commit fe044e22cc
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
137 changed files with 148 additions and 179 deletions

View file

@ -19,7 +19,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/zlib/zlib.h" #include "third_party/zlib/zlib.h"
#define CHUNK 32768 #define CHUNK 32768

View file

@ -14,7 +14,7 @@
#include "libc/x/x.h" #include "libc/x/x.h"
#include "net/http/escape.h" #include "net/http/escape.h"
#include "net/http/http.h" #include "net/http/http.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/stb/stb_image.h" #include "third_party/stb/stb_image.h"
#define USAGE \ #define USAGE \

View file

@ -29,7 +29,7 @@
#include "libc/sysv/consts/grnd.h" #include "libc/sysv/consts/grnd.h"
#include "libc/sysv/consts/sig.h" #include "libc/sysv/consts/sig.h"
#include "libc/testlib/hyperion.h" #include "libc/testlib/hyperion.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define B 4096 #define B 4096

View file

@ -16,7 +16,7 @@
#include "libc/x/xasprintf.h" #include "libc/x/xasprintf.h"
#include "net/http/escape.h" #include "net/http/escape.h"
#include "net/http/http.h" #include "net/http/http.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/stb/stb_image.h" #include "third_party/stb/stb_image.h"
#define USAGE \ #define USAGE \

View file

@ -25,7 +25,7 @@
#include "libc/sysv/consts/so.h" #include "libc/sysv/consts/so.h"
#include "libc/sysv/consts/sock.h" #include "libc/sysv/consts/sock.h"
#include "libc/sysv/consts/sol.h" #include "libc/sysv/consts/sol.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
/** /**
* @fileoverview netcat clone * @fileoverview netcat clone

View file

@ -44,7 +44,6 @@
#include "libc/x/xsigaction.h" #include "libc/x/xsigaction.h"
#include "libc/zip.internal.h" #include "libc/zip.internal.h"
#include "libc/zipos/zipos.internal.h" #include "libc/zipos/zipos.internal.h"
#include "third_party/getopt/getopt.h"
#include "third_party/libcxx/vector" #include "third_party/libcxx/vector"
#include "tool/viz/lib/knobs.h" #include "tool/viz/lib/knobs.h"

View file

@ -52,7 +52,7 @@
#include "libc/sysv/consts/s.h" #include "libc/sysv/consts/s.h"
#include "libc/sysv/consts/termios.h" #include "libc/sysv/consts/termios.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
// clang-format off // clang-format off
/** /**

View file

@ -18,7 +18,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/time/struct/tm.h" #include "libc/time/struct/tm.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/passwd.h" #include "third_party/musl/passwd.h"
/** /**

View file

@ -42,7 +42,7 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/poll.h" #include "libc/sysv/consts/poll.h"
#include "libc/sysv/consts/sock.h" #include "libc/sysv/consts/sock.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
// clang-format off // clang-format off
asm(".ident\t\"\\n\\n\ asm(".ident\t\"\\n\\n\

View file

@ -40,22 +40,23 @@ __tailcontext:
movaps 0x60(%rax),%xmm14 movaps 0x60(%rax),%xmm14
movaps 0x70(%rax),%xmm15 movaps 0x70(%rax),%xmm15
mov 40(%rdi),%r8 lea 80(%rdi),%rax
mov 48(%rdi),%r9 mov -40(%rax),%r8
mov 56(%rdi),%r10 mov -32(%rax),%r9
mov 64(%rdi),%r11 mov -24(%rax),%r10
mov 72(%rdi),%r12 mov -16(%rax),%r11
mov 80(%rdi),%r13 mov -8(%rax),%r12
mov 88(%rdi),%r14 mov 0(%rax),%r13
mov 96(%rdi),%r15 mov 8(%rax),%r14
mov 112(%rdi),%rsi mov 16(%rax),%r15
mov 120(%rdi),%rbp mov 32(%rax),%rsi
mov 128(%rdi),%rbx mov 40(%rax),%rbp
mov 136(%rdi),%rdx mov 48(%rax),%rbx
mov 152(%rdi),%rcx mov 56(%rax),%rdx
mov 160(%rdi),%rsp mov 72(%rax),%rcx
push 168(%rdi) mov 80(%rax),%rsp
mov 104(%rdi),%rdi push 88(%rax)
mov 24(%rax),%rdi
xor %eax,%eax xor %eax,%eax
ret ret

View file

@ -43,7 +43,7 @@ typedef struct Elf64_Rel {
* *
* Each relocation type specifies a mathematical formula that's used * Each relocation type specifies a mathematical formula that's used
* to compute the appropriate value for the fixed-up object code. If * to compute the appropriate value for the fixed-up object code. If
* if needs an addend, then this struct doesn't have one, but it can * it needs an addend, then this struct doesn't have one, but it can
* still be embedded by the compiler in the location to be modified. * still be embedded by the compiler in the location to be modified.
*/ */
Elf64_Xword r_info; Elf64_Xword r_info;

View file

@ -1,5 +1,4 @@
#ifndef _GETOPT_H #ifndef _GETOPT_H
#define _GETOPT_H #define _GETOPT_H
#include "third_party/getopt/getopt.h"
#include "third_party/getopt/long.h" #include "third_party/getopt/long.h"
#endif /* _GETOPT_H */ #endif /* _GETOPT_H */

View file

@ -13,7 +13,7 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/long.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#endif /* _STDLIB_H */ #endif /* _STDLIB_H */

View file

@ -10,7 +10,7 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/long.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" #include "third_party/musl/lockf.h"
#endif /* _UNISTD_H */ #endif /* _UNISTD_H */

View file

@ -60,9 +60,8 @@
? __ckd_##op##ll((__ckd_dword *)(res), (x), (y)) \ ? __ckd_##op##ll((__ckd_dword *)(res), (x), (y)) \
: __ckd_trap())) : __ckd_trap()))
__funline int __ckd_trap(void) { __funline wontreturn int __ckd_trap(void) {
volatile int __x = 0; *(volatile int *)0 = 0;
return 1 / __x;
} }
/* /*

View file

@ -56,7 +56,7 @@
#include "libc/sysv/consts/sig.h" #include "libc/sysv/consts/sig.h"
#include "libc/testlib/testlib.h" #include "libc/testlib/testlib.h"
#include "third_party/dlmalloc/dlmalloc.h" #include "third_party/dlmalloc/dlmalloc.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define USAGE \ #define USAGE \
" [FLAGS]\n\ " [FLAGS]\n\

View file

@ -47,7 +47,7 @@
#include "libc/time/struct/tm.h" #include "libc/time/struct/tm.h"
#include "net/http/http.h" #include "net/http/http.h"
#include "net/http/ip.h" #include "net/http/ip.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/passwd.h" #include "third_party/musl/passwd.h"
#define LOG(FMT, ...) \ #define LOG(FMT, ...) \

View file

@ -79,7 +79,7 @@
#include "net/http/ip.h" #include "net/http/ip.h"
#include "net/http/tokenbucket.h" #include "net/http/tokenbucket.h"
#include "net/http/url.h" #include "net/http/url.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/nsync/counter.h" #include "third_party/nsync/counter.h"
#include "third_party/nsync/cv.h" #include "third_party/nsync/cv.h"
#include "third_party/nsync/mu.h" #include "third_party/nsync/mu.h"

View file

@ -45,7 +45,7 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* to declare close (), ftruncate (), truncate () */ #include "third_party/musl/lockf.h" /* to declare close (), ftruncate (), truncate () */
#endif #endif

View file

@ -28,7 +28,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -30,7 +30,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* to declare malloc () */ #include "third_party/musl/rand48.h" /* to declare malloc () */
#endif #endif

View file

@ -31,7 +31,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* to define size_t */ #include "third_party/musl/rand48.h" /* to define size_t */
#endif #endif

View file

@ -47,7 +47,7 @@
#include "libc/sysv/consts/fileno.h" #include "libc/sysv/consts/fileno.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/finger/finger.h" #include "third_party/finger/finger.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/passwd.h" #include "third_party/musl/passwd.h"
// clang-format off // clang-format off

View file

@ -34,6 +34,7 @@
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/runtime/runtime.h" #include "libc/runtime/runtime.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "third_party/getopt/getopt.internal.h"
asm(".ident\t\"\\n\ asm(".ident\t\"\\n\
getopt (BSD-3)\\n\ getopt (BSD-3)\\n\

View file

@ -1,14 +0,0 @@
#ifndef COSMOPOLITAN_THIRD_PARTY_GETOPT_GETOPT_H_
#define COSMOPOLITAN_THIRD_PARTY_GETOPT_GETOPT_H_
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern char *optarg;
extern int optind, opterr, optopt, optreset;
int getopt(int, char *const[], const char *) paramsnonnull();
int getsubopt(char **, char *const *, char **) paramsnonnull();
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_THIRD_PARTY_GETOPT_GETOPT_H_ */

25
third_party/getopt/getopt.internal.h vendored Normal file
View file

@ -0,0 +1,25 @@
#ifndef COSMOPOLITAN_GETOPT_H_
#define COSMOPOLITAN_GETOPT_H_
#ifdef COSMOPOLITAN_GETOPT_LONG_H_
#error "don't mix getopt_long() with cosmo's getopt()"
#endif
#define optarg __optarg
#define optind __optind
#define opterr __opterr
#define optopt __optopt
#define optreset __optreset
#define getopt __getopt
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern char *optarg;
extern int optind, opterr, optopt, optreset;
int getopt(int, char *const[], const char *) paramsnonnull();
int getsubopt(char **, char *const *, char **) paramsnonnull();
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_GETOPT_H_ */

View file

@ -29,7 +29,7 @@
SUCH DAMAGE. SUCH DAMAGE.
*/ */
#include "libc/str/str.h" #include "libc/str/str.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
// clang-format off // clang-format off
/* /*

View file

@ -1,5 +1,8 @@
#ifndef COSMOPOLITAN_THIRD_PARTY_GETOPT_LONG_H_ #ifndef COSMOPOLITAN_GETOPT_LONG_H_
#define COSMOPOLITAN_THIRD_PARTY_GETOPT_LONG_H_ #define COSMOPOLITAN_GETOPT_LONG_H_
#ifdef COSMOPOLITAN_GETOPT_H_
#error "don't mix getopt_long() with cosmo's getopt()"
#endif
#define no_argument 0 #define no_argument 0
#define required_argument 1 #define required_argument 1
@ -15,10 +18,14 @@ struct option {
int val; int val;
}; };
extern char *optarg;
extern int optind, opterr, optopt, optreset;
int getopt(int, char *const *, const char *);
int getopt_long(int, char *const *, const char *, const struct option *, int *); int getopt_long(int, char *const *, const char *, const struct option *, int *);
int getopt_long_only(int, char *const *, const char *, const struct option *, int getopt_long_only(int, char *const *, const char *, const struct option *,
int *); int *);
COSMOPOLITAN_C_END_ COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_THIRD_PARTY_GETOPT_LONG_H_ */ #endif /* COSMOPOLITAN_GETOPT_LONG_H_ */

View file

@ -45,7 +45,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -44,7 +44,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -48,7 +48,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#include "libc/assert.h" #include "libc/assert.h"

View file

@ -47,7 +47,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#include "libc/assert.h" #include "libc/assert.h"

View file

@ -91,7 +91,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -45,7 +45,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#ifndef _MSC_VER #ifndef _MSC_VER
@ -59,7 +58,7 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" #include "third_party/musl/lockf.h"
#include "libc/str/locale.h" #include "libc/str/locale.h"

View file

@ -51,7 +51,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -49,7 +49,6 @@
#include "libc/sysv/consts/fileno.h" #include "libc/sysv/consts/fileno.h"
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "third_party/getopt/getopt.h"
#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) || defined(__Fuchsia__) || defined(__wasi__) #endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) || defined(__Fuchsia__) || defined(__wasi__)
#if defined(_LIBCPP_WIN32API) #if defined(_LIBCPP_WIN32API)

View file

@ -25,22 +25,21 @@
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include "libc/mem/alg.h"
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
#include "libc/calls/weirdtypes.h" #include "libc/calls/weirdtypes.h"
#include "libc/fmt/conv.h" #include "libc/fmt/conv.h"
#include "libc/limits.h" #include "libc/limits.h"
#include "libc/literal.h" #include "libc/literal.h"
#include "libc/mem/alg.h"
#include "libc/mem/mem.h" #include "libc/mem/mem.h"
#include "libc/stdio/rand.h"
#include "libc/runtime/runtime.h" #include "libc/runtime/runtime.h"
#include "libc/stdio/rand.h"
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "libc/sysv/consts/fileno.h" #include "libc/sysv/consts/fileno.h"
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt_des.internal.h" #include "third_party/musl/crypt_des.internal.h"
asm(".ident\t\"\\n\\n\ asm(".ident\t\"\\n\\n\

View file

@ -29,7 +29,7 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "libc/x/xasprintf.h" #include "libc/x/xasprintf.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/python/Include/bytesobject.h" #include "third_party/python/Include/bytesobject.h"
#include "third_party/python/Include/compile.h" #include "third_party/python/Include/compile.h"
#include "third_party/python/Include/fileutils.h" #include "third_party/python/Include/fileutils.h"

View file

@ -36,7 +36,7 @@
#include "libc/time/time.h" #include "libc/time/time.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "libc/zip.internal.h" #include "libc/zip.internal.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/python/Include/abstract.h" #include "third_party/python/Include/abstract.h"
#include "third_party/python/Include/bytesobject.h" #include "third_party/python/Include/bytesobject.h"
#include "third_party/python/Include/code.h" #include "third_party/python/Include/code.h"

View file

@ -33,7 +33,7 @@
#include "libc/stdio/stdio.h" #include "libc/stdio/stdio.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/x/xasprintf.h" #include "libc/x/xasprintf.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/quickjs/cutils.h" #include "third_party/quickjs/cutils.h"
#include "third_party/quickjs/quickjs-libc.h" #include "third_party/quickjs/quickjs-libc.h"

View file

@ -27,7 +27,6 @@
#include "libc/sysv/consts/rlimit.h" #include "libc/sysv/consts/rlimit.h"
#include "libc/sysv/consts/rusage.h" #include "libc/sysv/consts/rusage.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/ggml/llama_util.h" #include "third_party/ggml/llama_util.h"
#include "third_party/libcxx/cerrno" #include "third_party/libcxx/cerrno"
#include "third_party/libcxx/climits" #include "third_party/libcxx/climits"

View file

@ -43,7 +43,6 @@
#include "libc/sysv/consts/sicode.h" #include "libc/sysv/consts/sicode.h"
#include "libc/sysv/consts/ss.h" #include "libc/sysv/consts/ss.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/libcxx/algorithm" #include "third_party/libcxx/algorithm"
#include "third_party/libcxx/cassert" #include "third_party/libcxx/cassert"
#include "third_party/libcxx/cinttypes" #include "third_party/libcxx/cinttypes"

View file

@ -43,7 +43,6 @@
#include "libc/sysv/consts/sicode.h" #include "libc/sysv/consts/sicode.h"
#include "libc/sysv/consts/ss.h" #include "libc/sysv/consts/ss.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/libcxx/cassert" #include "third_party/libcxx/cassert"
#include "third_party/libcxx/cinttypes" #include "third_party/libcxx/cinttypes"
#include "third_party/libcxx/cmath" #include "third_party/libcxx/cmath"

View file

@ -42,7 +42,7 @@
#include "libc/str/locale.h" #include "libc/str/locale.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/s.h" #include "libc/sysv/consts/s.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/sed/cmd.h" #include "third_party/sed/cmd.h"
#include "third_party/sed/defs.h" #include "third_party/sed/defs.h"
#include "third_party/sed/extern.h" #include "third_party/sed/extern.h"

2
third_party/tr/tr.c vendored
View file

@ -33,7 +33,7 @@
#include "libc/runtime/runtime.h" #include "libc/runtime/runtime.h"
#include "libc/stdio/stdio.h" #include "libc/stdio/stdio.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/tr/cmd.h" #include "third_party/tr/cmd.h"
#include "third_party/tr/extern.h" #include "third_party/tr/extern.h"
// clang-format off // clang-format off

View file

@ -49,7 +49,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/assert.h" #include "libc/assert.h"

View file

@ -89,7 +89,6 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* declares _POSIX_VERSION */ #include "third_party/musl/lockf.h" /* declares _POSIX_VERSION */
# if defined(_POSIX_VERSION) /* POSIX compliant */ # if defined(_POSIX_VERSION) /* POSIX compliant */

View file

@ -62,7 +62,6 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* isatty */ #include "third_party/musl/lockf.h" /* isatty */
# define XSUM_IS_CONSOLE(stdStream) isatty(fileno(stdStream)) # define XSUM_IS_CONSOLE(stdStream) isatty(fileno(stdStream))

View file

@ -44,7 +44,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* exit */ #include "third_party/musl/rand48.h" /* exit */
#include "libc/assert.h" #include "libc/assert.h"

View file

@ -59,7 +59,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, calloc, free, exit */ #include "third_party/musl/rand48.h" /* malloc, calloc, free, exit */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -40,7 +40,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" // malloc #include "third_party/musl/rand48.h" // malloc
#include "libc/assert.h" #include "libc/assert.h"

View file

@ -27,7 +27,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -41,7 +41,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* rand */ #include "third_party/musl/rand48.h" /* rand */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"

View file

@ -34,7 +34,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* abort */ #include "third_party/musl/rand48.h" /* abort */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
@ -121,7 +120,7 @@ PTime UTIL_getSpanTimeNano(UTIL_time_t clockStart, UTIL_time_t clockEnd)
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* abort */ #include "third_party/musl/rand48.h" /* abort */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"

View file

@ -58,7 +58,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free, qsort, exit */ #include "third_party/musl/rand48.h" /* malloc, free, qsort, exit */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -25,7 +25,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, calloc, free */ #include "third_party/musl/rand48.h" /* malloc, calloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -54,7 +54,6 @@ void sort64(uint64_t* table, size_t size)
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" // qsort #include "third_party/musl/rand48.h" // qsort

View file

@ -1377,7 +1377,7 @@ XXH_PUBLIC_API XXH_PUREF XXH128_hash_t XXH128(XXH_NOESCAPE const void* data, siz
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
* #include "libc/mem/alg.h" * #include "libc/mem/alg.h"
@ -1827,7 +1827,7 @@ static void XXH_free(void* p) { (void)p; }
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -246,7 +246,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#endif /* !NO_STDLIB_H */ #endif /* !NO_STDLIB_H */
@ -262,7 +261,6 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* usually defines _POSIX_VERSION */ #include "third_party/musl/lockf.h" /* usually defines _POSIX_VERSION */
#endif /* !NO_UNISTD_H */ #endif /* !NO_UNISTD_H */

View file

@ -49,7 +49,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"
#endif #endif

View file

@ -35,7 +35,6 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -42,7 +42,6 @@ extern "C" {
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* _byteswap_ulong */ #include "third_party/musl/rand48.h" /* _byteswap_ulong */
// MISSING #include <intrin.h> /* _byteswap_* */ // MISSING #include <intrin.h> /* _byteswap_* */

View file

@ -70,7 +70,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -58,7 +58,6 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" #include "third_party/musl/lockf.h"
#include "libc/calls/calls.h" #include "libc/calls/calls.h"

View file

@ -42,7 +42,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free, qsort */ #include "third_party/musl/rand48.h" /* malloc, free, qsort */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -33,7 +33,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free, qsort */ #include "third_party/musl/rand48.h" /* malloc, free, qsort */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -58,7 +58,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -32,7 +32,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free, qsort */ #include "third_party/musl/rand48.h" /* malloc, free, qsort */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -50,7 +50,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -27,7 +27,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -36,7 +36,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -29,7 +29,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"

View file

@ -38,7 +38,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -46,7 +46,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -30,7 +30,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, free */ #include "third_party/musl/rand48.h" /* malloc, free */
#include "libc/assert.h" #include "libc/assert.h"

View file

@ -94,7 +94,6 @@ extern "C" {
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" whenever target OS is not unix-like #include "third_party/musl/lockf.h" whenever target OS is not unix-like
* otherwise it will block preprocessing stage. * otherwise it will block preprocessing stage.
@ -108,7 +107,7 @@ extern "C" {
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" #include "third_party/musl/lockf.h"
*/ */
@ -131,7 +130,7 @@ extern "C" {
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* declares _POSIX_VERSION */ #include "third_party/musl/lockf.h" /* declares _POSIX_VERSION */
# if defined(_POSIX_VERSION) /* POSIX compliant */ # if defined(_POSIX_VERSION) /* POSIX compliant */
@ -182,7 +181,7 @@ extern "C" {
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* isatty */ #include "third_party/musl/lockf.h" /* isatty */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"

View file

@ -62,7 +62,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* abort */ #include "third_party/musl/rand48.h" /* abort */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
@ -127,7 +126,7 @@ UTIL_time_t UTIL_getTime(void)
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* abort */ #include "third_party/musl/rand48.h" /* abort */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
@ -175,7 +174,7 @@ UTIL_time_t UTIL_getTime(void)
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* abort */ #include "third_party/musl/rand48.h" /* abort */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"

View file

@ -31,7 +31,6 @@ extern "C" {
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* malloc, realloc, free */ #include "third_party/musl/rand48.h" /* malloc, realloc, free */
#include "libc/calls/calls.h" #include "libc/calls/calls.h"
@ -67,7 +66,7 @@ extern "C" {
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* chown, stat */ #include "third_party/musl/lockf.h" /* chown, stat */
# if PLATFORM_POSIX_VERSION < 200809L || !defined(st_mtime) # if PLATFORM_POSIX_VERSION < 200809L || !defined(st_mtime)

View file

@ -93,7 +93,6 @@ extern "C" {
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/lockf.h" /* sleep */ #include "third_party/musl/lockf.h" /* sleep */
# define UTIL_sleep(s) sleep(s) # define UTIL_sleep(s) sleep(s)

View file

@ -43,7 +43,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" /* getenv */ #include "third_party/musl/rand48.h" /* getenv */
#include "libc/mem/alg.h" #include "libc/mem/alg.h"

View file

@ -32,7 +32,6 @@
#include "libc/stdio/temp.h" #include "libc/stdio/temp.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h"
#include "third_party/musl/crypt.h" #include "third_party/musl/crypt.h"
#include "third_party/musl/rand48.h" #include "third_party/musl/rand48.h"

View file

@ -31,7 +31,7 @@
#include "libc/sysv/consts/msync.h" #include "libc/sysv/consts/msync.h"
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/prot.h" #include "libc/sysv/consts/prot.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/regex/regex.h" #include "third_party/regex/regex.h"
STATIC_YOINK("strerror_wr"); STATIC_YOINK("strerror_wr");

View file

@ -35,7 +35,7 @@
#include "libc/tinymath/emodl.h" #include "libc/tinymath/emodl.h"
#include "libc/x/xsigaction.h" #include "libc/x/xsigaction.h"
#include "third_party/gdtoa/gdtoa.h" #include "third_party/gdtoa/gdtoa.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define INT int128_t #define INT int128_t
#define FLOAT long double #define FLOAT long double

View file

@ -22,7 +22,7 @@
#include "libc/fmt/magnumstrs.internal.h" #include "libc/fmt/magnumstrs.internal.h"
#include "libc/runtime/runtime.h" #include "libc/runtime/runtime.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define USAGE \ #define USAGE \
" OCTAL DST...\n\ " OCTAL DST...\n\

View file

@ -64,7 +64,7 @@
#include "libc/sysv/consts/termios.h" #include "libc/sysv/consts/termios.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define MANUAL \ #define MANUAL \
"\ "\

View file

@ -35,7 +35,7 @@
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/sysv/consts/s.h" #include "libc/sysv/consts/s.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/ftw.h" #include "third_party/musl/ftw.h"
#define USAGE \ #define USAGE \

View file

@ -42,7 +42,7 @@
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/prot.h" #include "libc/sysv/consts/prot.h"
#include "libc/zip.internal.h" #include "libc/zip.internal.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
/** /**
* @fileoverview GCC Codegen Fixer-Upper. * @fileoverview GCC Codegen Fixer-Upper.

View file

@ -26,7 +26,7 @@
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/zlib/zlib.h" #include "third_party/zlib/zlib.h"
#define USAGE \ #define USAGE \

View file

@ -24,7 +24,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define USAGE \ #define USAGE \
" [FLAGS] OPERAND..\n\ " [FLAGS] OPERAND..\n\

View file

@ -32,7 +32,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/str/tab.internal.h" #include "libc/str/tab.internal.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
/** /**
* @fileoverview LZ4 content embedder. * @fileoverview LZ4 content embedder.

View file

@ -53,7 +53,7 @@
#include "libc/thread/wait0.internal.h" #include "libc/thread/wait0.internal.h"
#include "libc/time/time.h" #include "libc/time/time.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "tool/build/lib/getargs.h" #include "tool/build/lib/getargs.h"
/** /**

View file

@ -16,7 +16,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define USAGE \ #define USAGE \
" [-p] [-m MODE] DIR...\n\ " [-p] [-m MODE] DIR...\n\

View file

@ -31,7 +31,7 @@
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "libc/sysv/consts/s.h" #include "libc/sysv/consts/s.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/musl/ftw.h" #include "third_party/musl/ftw.h"
#define USAGE \ #define USAGE \

View file

@ -24,7 +24,7 @@
#include "libc/str/str.h" #include "libc/str/str.h"
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
char buf[512]; char buf[512];

View file

@ -39,7 +39,7 @@
#include "libc/sysv/consts/map.h" #include "libc/sysv/consts/map.h"
#include "libc/sysv/consts/o.h" #include "libc/sysv/consts/o.h"
#include "libc/sysv/consts/prot.h" #include "libc/sysv/consts/prot.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/xed/x86.h" #include "third_party/xed/x86.h"
#include "tool/build/lib/getargs.h" #include "tool/build/lib/getargs.h"

View file

@ -60,7 +60,7 @@
#include "libc/sysv/consts/sched.h" #include "libc/sysv/consts/sched.h"
#include "libc/sysv/errfuns.h" #include "libc/sysv/errfuns.h"
#include "libc/x/x.h" #include "libc/x/x.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
// MANUALLY TESTED BY RUNNING // MANUALLY TESTED BY RUNNING
// //

View file

@ -38,7 +38,7 @@
#include "libc/x/xasprintf.h" #include "libc/x/xasprintf.h"
#include "libc/x/xgetline.h" #include "libc/x/xgetline.h"
#include "third_party/dlmalloc/dlmalloc.h" #include "third_party/dlmalloc/dlmalloc.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
/** /**
* @fileoverview Pythonic System Call Trace * @fileoverview Pythonic System Call Trace

View file

@ -28,7 +28,7 @@
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "libc/sysv/errfuns.h" #include "libc/sysv/errfuns.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define USAGE1 \ #define USAGE1 \
"NAME\n\ "NAME\n\

View file

@ -25,7 +25,7 @@
#include "libc/sysv/consts/ex.h" #include "libc/sysv/consts/ex.h"
#include "libc/sysv/consts/exit.h" #include "libc/sysv/consts/exit.h"
#include "libc/sysv/consts/ok.h" #include "libc/sysv/consts/ok.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#define USAGE \ #define USAGE \
" FILE...\n\ " FILE...\n\

View file

@ -56,7 +56,7 @@
#include "libc/x/x.h" #include "libc/x/x.h"
#include "libc/x/xasprintf.h" #include "libc/x/xasprintf.h"
#include "net/https/https.h" #include "net/https/https.h"
#include "third_party/getopt/getopt.h" #include "third_party/getopt/getopt.internal.h"
#include "third_party/mbedtls/ssl.h" #include "third_party/mbedtls/ssl.h"
#include "third_party/zlib/zlib.h" #include "third_party/zlib/zlib.h"
#include "tool/build/lib/eztls.h" #include "tool/build/lib/eztls.h"

Some files were not shown because too many files have changed in this diff Show more