summaryrefslogtreecommitdiff
path: root/Libraries/LibC/getopt.h
AgeCommit message (Collapse)Author
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling
2020-09-27LibC: Include cdefs.h in getopt.hLuke
Required for __BEGIN_DECLS
2020-09-06LibC: Don't include things required for getopt_long in unistd.hItamar
Previously, we were including the whole of <getopt.h> in <unistd.h>. However according to the posix <unistd.h> doesn't have to contain everything we had in <getopt.h>. This fixes some symbol collisions that broke the git port.
2020-05-30LibC: Rewrite getopt()Sergey Bugaev
Fixes https://github.com/SerenityOS/serenity/issues/91
2020-05-28LibC: run clang-format on getopt.h to remove tab charactersEmanuele Torre
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-09-06LibC: Borrow a slightly more functional getopt()Andreas Kling
We were already borrowing a getopt() from the BSD family until the day we write our own. This patch borrows a slightly more modern one so we also get getopt_long(). Fixes #190. See also #91 for the desire to eventually NIH our own getopt()..
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.