|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
| #
4025b5b5 |
| 01-Nov-2023 |
Warner Losh <[email protected]> |
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Kee
libc: Purge unneeded cdefs.h
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
(cherry picked from commit 559a218c9b257775fb249b67945fe4a05b7a6b9f)
show more ...
|
| #
1d386b48 |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
| #
0348c8fc |
| 19-Jan-2021 |
Alex Richardson <[email protected]> |
getopt: Fix conversion from string-literal to non-const char *
Define a non-const static char EMSG[] = "" to avoid having to add __DECONST() to all uses of EMSG. Also make current_dash a const char
getopt: Fix conversion from string-literal to non-const char *
Define a non-const static char EMSG[] = "" to avoid having to add __DECONST() to all uses of EMSG. Also make current_dash a const char * to fix this warning.
show more ...
|
|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
| #
253b638e |
| 04-Jan-2019 |
Kyle Evans <[email protected]> |
getopt_long(3): fix case of malformed long opt
When presented with an arg string like '-l-', getopt_long will successfully parse out the 'l' short option, then proceed to match '--' against the firs
getopt_long(3): fix case of malformed long opt
When presented with an arg string like '-l-', getopt_long will successfully parse out the 'l' short option, then proceed to match '--' against the first longopts entry as it later does a strncmp with len=0. This latter bit is arguably another bug in itself, but presumably not a practical issue as all callers of parse_long_options are already doing the right thing (except this one pointed out).
An opt string like '-l-' should be considered malformed and throw a bad argument rather than behaving as if '--' were passed. It cannot possibly do what the invoker expects, and it's probably the result of a typo (ls -l- a) rather than any intent.
Reported by: Tony Overfield <[email protected]> Reviewed by: imp MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D18616
show more ...
|
|
Revision tags: release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0 |
|
| #
298207c3 |
| 22-Jun-2014 |
Andrey A. Chernov <[email protected]> |
Merge intermediate OpenBSD v1.25 changes (almost identical to ours) to reduce diff and bump OpenBSD patch level to v1.26.
MFC after: 2 weeks
|
| #
6aa22516 |
| 22-Jun-2014 |
Pedro F. Giffuni <[email protected]> |
getopt(3): recognize option:: as GNU extension for "optional options".
Also ANSIfy a function declaration.
While here update the OpenBSD patch level in getopt_long.c as we already have the correspo
getopt(3): recognize option:: as GNU extension for "optional options".
Also ANSIfy a function declaration.
While here update the OpenBSD patch level in getopt_long.c as we already have the corresponding change.
Obtained from: NetBSD MFC after: 2 weeks
show more ...
|
|
Revision tags: release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0 |
|
| #
1b74dc4a |
| 11-Jun-2012 |
Xin LI <[email protected]> |
Switch from 4-clause to 2-clause BSD license. (OpenBSD r1.22) No functional change.
Obtained from: NetBSD via OpenBSD
|
|
Revision tags: release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
| #
d3ff3b5f |
| 23-Sep-2006 |
Andrey A. Chernov <[email protected]> |
Keep compatible parts in sync with OpenBSD v1.21, add some comments. No functional changes.
|
| #
6843acf8 |
| 22-Sep-2006 |
Andrey A. Chernov <[email protected]> |
Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD v1.21 which just do that.
|
| #
f27c7b47 |
| 22-Sep-2006 |
Andrey A. Chernov <[email protected]> |
Be more GNU compatible: don't be greedy on the GNU "::" extension when arg separated by whitespace and POSIX_CORRECTLY is set. From POSIX point of view this is unclear situation, so minimal assumptio
Be more GNU compatible: don't be greedy on the GNU "::" extension when arg separated by whitespace and POSIX_CORRECTLY is set. From POSIX point of view this is unclear situation, so minimal assumption looks right.
show more ...
|
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
| #
42aeacc4 |
| 06-Jul-2004 |
Andrey A. Chernov <[email protected]> |
Keep it sync with OpenBSD: An optional argument cannot start with '-', even if permutation is disabled.
Obtained from: OpenBSD getopt_long.c v1.17
|
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
| #
f853699a |
| 01-Apr-2004 |
Andrey A. Chernov <[email protected]> |
Simplify one condition in prev. commit: short_too already assumes FLAG_LONGONLY
|
| #
ed4fbbd5 |
| 01-Apr-2004 |
Andrey A. Chernov <[email protected]> |
Fix parsing of ambiguous options, whole loop must be processed
|
| #
3700175b |
| 06-Mar-2004 |
Andrey A. Chernov <[email protected]> |
Make GNU-compatible following case: single '-' in command line and '-' (non-first) in options
|
| #
88485399 |
| 03-Mar-2004 |
Andrey A. Chernov <[email protected]> |
Make return code in noarg case GNU-compatible
|
| #
9f06a99e |
| 03-Mar-2004 |
Andrey A. Chernov <[email protected]> |
Be more GNU-compatible in diagnostics
|
| #
f2fd86b7 |
| 01-Mar-2004 |
Andrey A. Chernov <[email protected]> |
Improve GNU compatibility in several places, use internal GNU_COMPATIBLE define for it. Don't catch POSIXLY_CORRECT env. into static variable, it can be changed on the fly by program. Use P1003.2 sta
Improve GNU compatibility in several places, use internal GNU_COMPATIBLE define for it. Don't catch POSIXLY_CORRECT env. into static variable, it can be changed on the fly by program. Use P1003.2 standartized illoptchar[]
show more ...
|
| #
ee43cb7a |
| 01-Mar-2004 |
Andrey A. Chernov <[email protected]> |
Change "-"-started options when POSIX_CORRECTLY is set handling in favour of GNU instead of NetBSD, because configure's use us and expect GNU.
|
| #
829a229d |
| 24-Feb-2004 |
Andrey A. Chernov <[email protected]> |
Add getopt_long_only() from OpenBSD and other OpenBSD cleanups
PR: 63173 Submitted by: Marius Strobl <[email protected]>
|
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
| #
f3b62198 |
| 20-Feb-2004 |
Ruslan Ermilov <[email protected]> |
Unbreak the upgrade path from 4.9 after removal of GNU getopt and <gnuregex.h>.
|
|
Revision tags: release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
| #
e6fc380c |
| 16-Oct-2002 |
Alfred Perlstein <[email protected]> |
de-__P()
|
|
Revision tags: release/4.7.0_cvs |
|
| #
a35a7e76 |
| 29-Sep-2002 |
Eric Melville <[email protected]> |
Add getopt_long(3).
Obtained from: NetBSD Sponsored by: Apple
|