serenity/Userland/Libraries
Jelle Raaijmakers 10e8b99038 LibC: Make getopt modify argv again
A POSIX-compatibility fix was introduced in 64740a0214 to make the
compilation of the `diffutils` port work, which expected a
`char* const* argv` signature.

And indeed, the POSIX spec does not mention permutation of `argv`:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html

However, most implementations do modify `argv` as evidenced by
documentation such as:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic
    /LSB-Core-generic/libutil-getopt-3.html

  "The function prototype was aligned with POSIX 1003.1-2008 (ISO/IEC
   9945-2009) despite the fact that it modifies argv, and the library
   maintainers are unwilling to change this."

Change the behavior back to permutate `argc` to allow for the following
command line argument order to work again:

  unzip ./file.zip -o target-dir

Without this change, `./file.zip` in the example above would have been
ignored completely.
2021-06-13 17:05:03 +01:00
..
LibArchive
LibAudio LibAudio: Add support for WAVE_FORMAT_EXTENSIBLE 2021-06-09 22:58:44 +04:30
LibC LibC: Make getopt modify argv again 2021-06-13 17:05:03 +01:00
LibCards LibCards: Draw card stack background when the entire stack is moving 2021-06-04 23:48:25 +02:00
LibChess
LibCompress
LibCore AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibCoreDump
LibCpp AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibCrypt
LibCrypto LibCrypto: Add hash methods to {Signed, Unsigned}BigInteger 2021-06-09 11:48:04 +01:00
LibDebug AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibDesktop
LibDiff
LibDl LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
LibELF LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
LibGemini
LibGfx LibGUI+HackStudio: Make gutter a first class element 2021-06-13 12:33:15 +01:00
LibGL LibGL: Implement very basic version of glGetFloatv 2021-06-09 10:49:38 +02:00
LibGUI LibGUI+HackStudio: Make gutter a first class element 2021-06-13 12:33:15 +01:00
LibHTTP LibHTTP: Add HTTP Basic Authentication header generation and parsing 2021-06-11 11:37:15 +02:00
LibImageDecoderClient
LibIMAP LibIMAP: Support for remaining IMAP commands 2021-06-11 23:58:28 +04:30
LibIPC
LibJS LibJS: Rewrite Array.prototype.slice to be spec compliant 2021-06-13 16:21:34 +01:00
LibKeyboard LibKeyboard: Use correct filename in debug message 2021-06-06 00:21:12 +01:00
LibLine LibLine: Actually remove the two levels of deferred_invoke 2021-06-07 02:22:40 +04:30
LibM LibM: Implement nearbyint, nearbyintl and nearbyintf 2021-06-08 17:29:57 +02:00
LibMarkdown LibMarkdown: Wrap non-inline code blocks in <pre> 2021-06-09 18:06:54 +01:00
LibPCIDB
LibPDF LibPDF: Convert to east-const to comply with the recent style changes 2021-06-12 22:45:01 +04:30
LibProtocol LibProtocol: Use URL class in RequestClient::start_request argument 2021-06-06 16:00:11 +02:00
LibPthread
LibRegex AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibSanitizer
LibSQL LibSQL: Limit the number of nested subqueries 2021-06-08 19:08:13 +02:00
LibSymbolication
LibSyntax LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
LibSystem
LibTest LibJS: Add all of the WeakMap.prototype methods (delete, get, has, set) 2021-06-12 10:44:28 +01:00
LibTextCodec
LibThreading
LibTLS Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&> 2021-06-08 19:14:24 +02:00
LibTTF
LibVideo LibVideo/VP9: Add Decoder and begin parsing uncompressed header data 2021-06-12 22:48:28 +04:30
LibVT LibVT: Implement DECIC/DECDC 2021-06-10 17:18:02 +02:00
LibWasm AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
LibWeb LibJS: Store and maintain an "execution generation" counter 2021-06-12 18:39:23 +01:00
LibWebSocket AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
LibX86 AK+LibX86: Generalize u128/256 to AK::UFixedBigInt 2021-06-11 18:14:11 +04:30
CMakeLists.txt LibIMAP: Add a new IMAP client and support NOOP 2021-06-11 23:58:28 +04:30