| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
2. Compare socket(2) return code to -1, not <= 0.
Obtained from: OpenBSD rev. 1.9
|
| |
|
|
|
|
|
|
|
|
| |
- 0 should have been -1 in previous commit (just to stay consistent),
- Spell null pointers as NULL, not 0,
- Fixed the comment about pr_usesysctl to not confuse it with boolean.
Pointed by: bde
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
included twice by lprint.c, which included both finger.h and extern.h.
finger.h, in turn, includes extern.h. The redundant include of extern.h
was removed from lprint.c, as part of this change, but the include guards
were added anyway out of spite.
|
| |
|
| |
|
|
|
|
| |
necessary.
|
|
|
|
|
|
|
| |
ENOENT, because that means we do not have PIM in the kernel.
Submitted by: hmp
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed a nearby bug. The "play it safe" code in dosysctl() was unsafe
because it overran the buffer by 1 if sysctl() filled all of the buffer.
Fixed a nearby style bug in output. Not just 1, but 2 extra newlines
were printed at the end by "vmstat -m" and "vmstat -z". Don't print
any newlines explicitly. This depends on 2 of the many formatting
bugs in the corresponding sysctls. First, the sysctls return an extra
newline at the end of the strings. This also messes up output from
sysctl(8). Second, the sysctls return an extra newline at the beginning
of the strings. This is good for separating the 2 tables output by
"vmstat -mz" and for starting the header on a new line in plain sysctl
output, but gives a bogus extra newline at the beginning for "vm -[m | z]"
and "sysctl -n [kern.malloc | vm.zone]".
Fixed some nearby style bugs in the source code:
- the same line that misspelled 0 as NULL also spelled NULL as 0.
- the size was doubled twice in the realloc loop.
- the "play it safe" comment was misleading. Terminating the buffer
is bogus because dosysctl() is only meant to work with sysctls that
return strings and the terminator is part of a string. However, the
kern.malloc sysctl has more than style bugs. It also doesn't return
a string. Termination is needed to work around this bug.
|
|
|
|
|
|
|
|
|
| |
of using deprecated header.
Approved by: dwhite, simon(mentor)
Reviewed by: mlaier
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
PR: bin/63781
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the .for loop:
- Replaced four global variables in parse.c with one.
- Made Parse_FromString() accept the "lineno" as an argument.
- Fixed line numbering when there are escaped newlines in the
body of the .for loop.
Adopted from: NetBSD
|
| |
|
|
|
|
|
|
| |
the variable name to undef).
Submitted by: Cyrille Lefevre
|
|
|
|
|
|
|
|
|
| |
1) Avoid shadowing index.
2) Constness.
3) Missing prototype for ifcmd.
4) Missing include of string.h.
5) Avoid shadowing error function.
6) ANSI definition for main.
|
|
|
|
|
|
|
|
| |
1) Constness, unusedness and size_tness.
2) Don't clobber the value returned by hid_report_size in the daemon case.
3) Don't misspell "sizeof buf" as 100.
4) Don't run off the end of a buffer if the pid is about a google.
5) Avoid shadowing the usage function.
|
|
|
|
| |
Submitted by: Cyrille Lefevre
|
| |
|
|
|
|
|
|
|
|
|
|
| |
being reported by /usr/bin/printf.
This bug has been around for 22 months... either nobody uses printf
with floating-point values, or people are forgetting to check their
return codes.
Approved by: rwatson (mentor)
|
|
|
|
| |
Submitted by: ru
|
| |
|
|
|
|
| |
particular implementation is based on the Solaris logins(1) man page.
|
|
|
|
| |
Might fix PR bin/63769.
|
|
|
|
|
|
|
|
| |
the same, no man page changes required.
PR: bin/48313
Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Reviewed by: joe@
|
|
|
|
|
|
| |
Approved by: simon(mentor)
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
PR: docs/63370
|
|
|
|
|
|
| |
PR: docs/63677
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
| |
(message save as first recipient) options for standards
conformance.
Submitted by: Wartan Hachaturow <wart@tepkom.ru> (with some changes)
PR: standards/61934
|
| |
|
|
|
|
|
|
| |
and tab lossage).
Garbage-collected NEED_LIBNAMES.
|
|
|
|
|
|
|
|
|
|
| |
1: Document -follow under COMPATIBILITY.
2: Update an example to be a little more 'safe'.
3: Use '/' in place of '.' for an example; similar to other manual pages.
PR: 40196 (1), 39532 (2, 3)
Submitted by: Marc Silver <marcs@draenor.org> (2 and 3)
Discussed with: des (1)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
business trying to impersonate su(1), and it does not need to be setuid
to function properly when invoked by getty(8) or telnetd(8).
|
| |
|
| |
|
|
|
|
|
|
| |
<netinet/tcp_var.h>'s prerequisites. Prerequistes should not grow for
userland headers, and <netinet/tcp_var.h> is unfortunately still needed
in userland.
|
|
|
|
| |
Approved by: rwatson (mentor)
|
|
|
|
| |
Approved by: arved (mentor)
|
|
|
|
| |
Use WARNS?= instead of WARNS=.
|