mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Switch public headers to getopt_long() entirely
Cosmopolitan's getopt() is now redefined as __getopt().
This commit is contained in:
parent
0c630d95b5
commit
fe044e22cc
137 changed files with 148 additions and 179 deletions
1
third_party/xxhash/cli/xsum_bench.c
vendored
1
third_party/xxhash/cli/xsum_bench.c
vendored
|
@ -49,7 +49,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* malloc, free */
|
||||
#include "libc/assert.h"
|
||||
|
|
1
third_party/xxhash/cli/xsum_config.h
vendored
1
third_party/xxhash/cli/xsum_config.h
vendored
|
@ -89,7 +89,6 @@
|
|||
#include "libc/sysv/consts/o.h"
|
||||
#include "libc/sysv/consts/ok.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/lockf.h" /* declares _POSIX_VERSION */
|
||||
# if defined(_POSIX_VERSION) /* POSIX compliant */
|
||||
|
|
1
third_party/xxhash/cli/xsum_os_specific.c
vendored
1
third_party/xxhash/cli/xsum_os_specific.c
vendored
|
@ -62,7 +62,6 @@
|
|||
#include "libc/sysv/consts/o.h"
|
||||
#include "libc/sysv/consts/ok.h"
|
||||
#include "libc/time/time.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/lockf.h" /* isatty */
|
||||
# define XSUM_IS_CONSOLE(stdStream) isatty(fileno(stdStream))
|
||||
|
|
1
third_party/xxhash/cli/xsum_sanity_check.c
vendored
1
third_party/xxhash/cli/xsum_sanity_check.c
vendored
|
@ -44,7 +44,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* exit */
|
||||
#include "libc/assert.h"
|
||||
|
|
1
third_party/xxhash/cli/xxhsum.c
vendored
1
third_party/xxhash/cli/xxhsum.c
vendored
|
@ -59,7 +59,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* malloc, calloc, free, exit */
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/xxhash/tests/bench/benchHash.c
vendored
1
third_party/xxhash/tests/bench/benchHash.c
vendored
|
@ -40,7 +40,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" // malloc
|
||||
#include "libc/assert.h"
|
||||
|
|
1
third_party/xxhash/tests/bench/benchfn.c
vendored
1
third_party/xxhash/tests/bench/benchfn.c
vendored
|
@ -27,7 +27,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* malloc, free */
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/xxhash/tests/bench/bhDisplay.c
vendored
1
third_party/xxhash/tests/bench/bhDisplay.c
vendored
|
@ -41,7 +41,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* rand */
|
||||
#include "libc/calls/calls.h"
|
||||
|
|
3
third_party/xxhash/tests/bench/timefn.c
vendored
3
third_party/xxhash/tests/bench/timefn.c
vendored
|
@ -34,7 +34,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* abort */
|
||||
#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/str/str.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/rand48.h" /* abort */
|
||||
#include "libc/calls/calls.h"
|
||||
|
|
1
third_party/xxhash/tests/collisions/main.c
vendored
1
third_party/xxhash/tests/collisions/main.c
vendored
|
@ -58,7 +58,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* malloc, free, qsort, exit */
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/xxhash/tests/collisions/pool.c
vendored
1
third_party/xxhash/tests/collisions/pool.c
vendored
|
@ -25,7 +25,6 @@
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" /* malloc, calloc, free */
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/xxhash/tests/collisions/sort.cc
vendored
1
third_party/xxhash/tests/collisions/sort.cc
vendored
|
@ -54,7 +54,6 @@ void sort64(uint64_t* table, size_t size)
|
|||
#include "libc/stdio/temp.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
#include "third_party/getopt/getopt.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/rand48.h" // qsort
|
||||
|
||||
|
|
4
third_party/xxhash/xxhash.h
vendored
4
third_party/xxhash/xxhash.h
vendored
|
@ -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/str/str.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/rand48.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/str/str.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/rand48.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue