| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
|
|
|
|
| |
Sponsored by: DARPA, NAI Labs
|
| |
|
|
|
|
|
|
|
|
| |
when trying to read from the stack.
PR: 37104
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
MFC after: 3 weeks
|
|
|
|
|
|
| |
PR: docs/37287
Submitted by: Tony Finch <dot@dotat.at>
MFC after: 3 days
|
|
|
|
| |
of a sentence.
|
|
|
|
|
|
| |
blank lines).
Not unapproved of by: markm
|
|
|
|
|
|
|
| |
Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going
to mix WARNS and NO_WERROR.
Submitted by: fenner
|
| |
|
| |
|
|
|
|
| |
Pointed out by: mike, des's tinderbox
|
|
|
|
| |
macro.
|
| |
|
|
|
|
|
|
|
| |
with regard to the traditional algorithm.
Suggested by: obrien
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
won't NUL terminate the string for us, and so we're liable to pick up trailing
garbage, possibly tons of it.
Pointed out by: obrien
MFC after: 3 days
|
|
|
|
|
|
|
| |
was causing output to be corrupted.
Pointed out by: obrien
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
| |
by using strcoll() instead of strcmp().
PR: 36270
Reviewed by: mike
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Cast sizeof() to (int), as it's being compared against an int, not a size_t.
If i is changed to a size_t, it means the logic must be slightly changed later
in the flow, where --i is checked to be >= 0. I am not sure I want to make a
logic change to account for clearing up a warning, when an aesthetic one will
keep from modifying the logic.
Other harmless casts, that I think I've made in the right directions.
Make gpbc() an inline function, rather than an obfuscated macro, make its
scratch space local, rather than global. The previous macro used a dirty
hack (logical AND in place of a conditional) which would lead GCC to throw
a fit (rightly so) as the logical check, as well as the incrementation of
a variable, were not used for anything.
const'ify a few places where gcc3 yells. xstrdup() some global consts in
places where we xstrdup() when not using consts, but tried to assign them
to non-consts before.
Don't use execv(2) if we don't have the kind of arguments it wants.
Reviewed by: asmodai obrien tjr
Submitted by: tjr (a gcc3 build log)
|
| |
|
|
|
|
| |
Submitted by: fenner
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge xargs(1) with that of xMach.
Bring in xargs(1) changes to add -L and -I as per the Single Unix Specification
version 3. Proper exit status numbers are implemented, and the manual page has
been updated to reflect reality.
The code has been ANSIfied, and a new file has been added to xargs(1) to do the
substring substitution as SUSv3 requires.
Traditional behaviour should not be affected, use of -J should be deprecated
in favor of the more portable -I (though -J has been left, for now).
Submitted by: me, tjr (the exit status stuff)
Obtained from: xMach
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
$FreeBSD$ identifiers, and fix initialisation to stderr to happen in a function
as stderr is not the same in CURRENT as in OpenBSD.
Reviewed by: obrien
|
| |
|
| |
|
|
|
|
| |
Noticed by: tjr
|
| |
|
| |
|
|
|
|
|
|
|
| |
- ifdefs around vendor sccsid were left reversed after switching to
__FBSDID().
- vertical whitespace after some of the non-FALLTHROUGH cases was lost.
- too much vertical whitespace before prototypes.
|
|
|
|
|
|
|
|
|
|
| |
- don't use unusual indentation for 39 lines of declarations when only 2
of the lines benefit from it.
- don't use __DECONST(). This was the one use of it in the tree, and it
was just wrong. It was used to hide the warning about tgetnum() having
the wrong prototype (missing a `const') due to libncurses being
misconfigured. libncurses has been fixed, so the original code now
compiles cleanly with WARNS=4.
|
|
|
|
|
|
|
| |
eliminates the usefulness of ${MAKEFILE}.
Obtained from: NetBSD
MFC after: 1 week
|
|
|
|
|
| |
LIBDIR is defined in bsd.own.mk but sys.mk no longer
includes bsd.own.mk as of revision 1.60.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
option (try to break at word bounaries) for SUSv3 conformance.
Partially based on the NetBSD version, with the following changes:
- style(9)
- break on <blank>s, not spaces, per POSIX (and GNU)
- when looking for last space on line, search backwards instead of
forwards; less comparisons needed this way.
- use LINE_MAX macro instead of a magic number and a comment saying it is
LINE_MAX.
PR: 36245
Reviewed by: mike
Obtained from: NetBSD (partially)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to be emitted as per the C preprocessor. It updates the manual page in
regards to standards accordingly.
PR: standards/36075
Submitted by: tjr
Reviewed by: mike
MFC after: 1 week
|
|
|
|
| |
Reviewed by: peter
|
| |
|
| |
|
| |
|
|
|
|
| |
Tested by: AXP gcc 3.1
|
|
|
|
| |
(This is apparently required in NetBSD).
|
| |
|