| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r314659:
usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible
This simplifies make logic/output
r314676:
Fix build after r314656
Some of the changes I introduced to use .ALLSRC were correct in spirit,
but incorrect in reality -- in particular, ../Makefile.inc hadn't been
pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value
of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk
explicitly so we can be certain that the values used as dependencies in
the targets are defined when the target recipe has been evaluated.
Reminder: thou shalt separate out separate functional changes before
committing them.
(YUGE) Pointyhat to: ngie
In collaboration with: bdrewery
|
|
|
|
|
|
|
|
|
|
| |
The "- 1" is there specifically to enable checking for NUL termination.
I should also admit the rest change was mostly cosmetic and the
overruns can't occur in practice: still I leave them to pacify
static analyzers.
Pointed out by: bde
|
|
|
|
|
|
|
| |
Prevent some theorical buffer overruns reported by Coverity.
Cleanup a use of gethostname() while here.
CID: 1006713, 1011166, 1011167, 1011168,
|
|
|
|
|
|
|
| |
Using arc4random simplifies the code by not having to worry about
seeds which ironically depend on the time.
CID: 1300004
|
| |
|
|
|
|
|
|
|
|
|
| |
NUL terminated. The source and destination buffers are the same
size and the source *should* be NUL terminated, but be paranoid.
Reported by: Coverity
CID: 1011274
MFC after: 1 week
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
|
| | |
|
| |\
| |/
|/| |
|
| |\ |
|
| | | |
|
| | | |
|
| |\ \ |
|
| | | | |
|
| | | | |
|
| |\ \ \ |
|
| | \ \ \ | |
| | \ \ \ | |
| |\ \ \ \ \ |
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | | |
Requested by: Simon Gerraty <sjg@juniper.net>
|
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
Reduce overlinking
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | | |
Reviewed by: jilles
CR: https://reviews.freebsd.org/D611
|
| |_|/
|/| | |
|
| |/
|/| |
|
| |
| |
| |
| | |
Obtained from: DragonFly
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
This structure is not part of POSIX. According to POSIX, gettimeofday()
has the following prototype:
int gettimeofday(struct timeval *restrict tp, void *restrict tzp);
Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is
not used). Remove dead error handling code. Also use NULL for a
nul-pointer instead of integer 0.
While there, change all pieces of code that only use tv_sec to use
time(3), as this provides less overhead.
|
|
|
|
|
|
|
| |
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
| |
Pointy hat to: dim
MFC after: 1 week
|
|
|
|
|
|
|
| |
64-bit, so better cast time_t to intmax_t, and use the appropriate
printf format strings.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
- Cast time_t's to long, and print them with %ld.
- Print ptrdiff_t's with %td.
- Print ssize_t's and size_t's with %zd and %zu.
- Print int32_t's with %d.
Also, replace some int variables with the more appropriate size_t.
MFC after: 1 week
|
|
|
|
| |
We don't need this array in timed.c -- only readmsg.c.
|
|
|
|
|
|
|
| |
While it will not fail in normal circumstances, better safe than
sorry.
MFC after: 3 days
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
|
| |
|
|
|
|
|
|
| |
error out early.
Found by: clang static analyzer
|
| |
|
| |
|
|
|
|
| |
Submitted by: Pawel Worach <pawel.worach@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
variable in an int to avoid casting to an unsigned value which causes
the comparison with -1 to fail.
PR: 123807
Submitted by: Matthew Luckie
Reviewed by: keramida@
MFC after: 1 week
|
|
|
|
| |
Spotted by: brueffer
|
|
|
|
|
|
| |
PR: docs/115445
Submitted by: "Julian Stacey" <jhs at berklix dot org>
MFC After: 3 days
|
| |
|
|
|
|
| |
Obtained from: Slava Semushin via NetBSD
|
| |
|
| |
|
|
|
|
|
| |
PR: 62346
Submitted by: Gavin Atkinson (gavin at ury.york.ac.uk)
|
|
|
|
| |
margv[] when an input line contains 20 or more space-separated words.
|
| |
|
| |
|