mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58: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/zstd/programs/benchfn.c
vendored
1
third_party/zstd/programs/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/zstd/programs/benchzstd.c
vendored
1
third_party/zstd/programs/benchzstd.c
vendored
|
@ -36,7 +36,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/zstd/programs/datagen.c
vendored
1
third_party/zstd/programs/datagen.c
vendored
|
@ -29,7 +29,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/calls/calls.h"
|
||||
|
|
1
third_party/zstd/programs/dibio.c
vendored
1
third_party/zstd/programs/dibio.c
vendored
|
@ -38,7 +38,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/zstd/programs/fileio.c
vendored
1
third_party/zstd/programs/fileio.c
vendored
|
@ -46,7 +46,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/zstd/programs/fileio_asyncio.c
vendored
1
third_party/zstd/programs/fileio_asyncio.c
vendored
|
@ -30,7 +30,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"
|
||||
|
|
7
third_party/zstd/programs/platform.h
vendored
7
third_party/zstd/programs/platform.h
vendored
|
@ -94,7 +94,6 @@ extern "C" {
|
|||
#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" whenever target OS is not unix-like
|
||||
* otherwise it will block preprocessing stage.
|
||||
|
@ -108,7 +107,7 @@ extern "C" {
|
|||
#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/getopt/getopt.internal.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/lockf.h"
|
||||
*/
|
||||
|
@ -131,7 +130,7 @@ extern "C" {
|
|||
#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/getopt/getopt.internal.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/lockf.h" /* declares _POSIX_VERSION */
|
||||
# if defined(_POSIX_VERSION) /* POSIX compliant */
|
||||
|
@ -182,7 +181,7 @@ extern "C" {
|
|||
#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/getopt/getopt.internal.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/lockf.h" /* isatty */
|
||||
#include "libc/calls/calls.h"
|
||||
|
|
5
third_party/zstd/programs/timefn.c
vendored
5
third_party/zstd/programs/timefn.c
vendored
|
@ -62,7 +62,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"
|
||||
|
@ -127,7 +126,7 @@ UTIL_time_t UTIL_getTime(void)
|
|||
#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"
|
||||
|
@ -175,7 +174,7 @@ UTIL_time_t UTIL_getTime(void)
|
|||
#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"
|
||||
|
|
3
third_party/zstd/programs/util.c
vendored
3
third_party/zstd/programs/util.c
vendored
|
@ -31,7 +31,6 @@ extern "C" {
|
|||
#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, realloc, free */
|
||||
#include "libc/calls/calls.h"
|
||||
|
@ -67,7 +66,7 @@ extern "C" {
|
|||
#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/getopt/getopt.internal.h"
|
||||
#include "third_party/musl/crypt.h"
|
||||
#include "third_party/musl/lockf.h" /* chown, stat */
|
||||
# if PLATFORM_POSIX_VERSION < 200809L || !defined(st_mtime)
|
||||
|
|
1
third_party/zstd/programs/util.h
vendored
1
third_party/zstd/programs/util.h
vendored
|
@ -93,7 +93,6 @@ extern "C" {
|
|||
#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" /* sleep */
|
||||
# define UTIL_sleep(s) sleep(s)
|
||||
|
|
1
third_party/zstd/programs/zstdcli.c
vendored
1
third_party/zstd/programs/zstdcli.c
vendored
|
@ -43,7 +43,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" /* getenv */
|
||||
#include "libc/mem/alg.h"
|
||||
|
|
1
third_party/zstd/programs/zstdcli_trace.c
vendored
1
third_party/zstd/programs/zstdcli_trace.c
vendored
|
@ -32,7 +32,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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue