Commit Graph

3 Commits

Author SHA1 Message Date
Peter Wang
5a259546af Modify getopt implementation to compile outside of musl.
getopt/getopt.c:
    Delete uses of weak_alias macro.

    Rename __optreset to optreset.

    Delete error message localisation.

    Forgo locking when printing error messages.

getopt/getopt.h:
    Declare __getopt_msg prototype.

getopt/getopt_long.c:
    Rename __optreset to optreset.
2019-06-10 13:29:33 +10:00
Peter Wang
ef3505fdc9 Add copyright notice to musl getopt files.
getopt/getopt.c:
getopt/getopt.h:
getopt/getopt_long.c:
    As above.
2019-06-10 13:29:33 +10:00
Peter Wang
618ad889b6 Import getopt implementation from musl v1.1.22
getopt/getopt.c:
getopt/getopt.h:
getopt/getopt_long.c:
    New files.
2019-06-10 13:29:33 +10:00