| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in. In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).
Clean up some whitespaces while here
Obtained from: OpenBSD
MFC after: 2 weeks
|
| |
| |
| |
| |
| |
| |
| |
| | |
Fix valid_format() to be more careful about allowing only valid
printf formats.
Obtained from: NetBSD
MFC after: 2 weeks
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
ino_t and dev_t are about to become uint64_t.
Reviewed by: kib, mckusick
|
| |
| |
| |
| |
| |
| |
| |
| | |
Modified version of a diff from Sebastien Marie to prevent a crash found
with the afl fuzzer.
Obtained from: OpenBSD (CVS Rev. 1.37)
MFC after: 1 week
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
number of clusters it occupies. It's not the number of entries in the table,
as it is for the L1 cluster table.
For small images, the two are the same. With the unit tests based on small
images, this change has therefore no effect on the unit test. For larger
images (like the FreeBSD 10.1-RELEASE image), this gives a discrepancy that
actually shows up when running "qemu-img check".
Bump the version number of mkimg.
While here, fix a white-space bug.
MFC after: 1 week
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX
Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.
PR: 195436
Obtained from: OpenBSD (CVS pch.c rev 1.45, 1,46, common.h rev 1.28)
MFC after: 1 week
|
| |
| |
| |
| |
| |
| |
| | |
Mostly to keep in sync with OpenBSD and update the TAG.
Obtained from: OpenBSD
MFC after: 5 days
|
| |
| |
| |
| |
| |
| |
| | |
On FreeBSD's libc setlinebuf is a wrapper to setvbuf anyways.
Obtained from: OpenBSD
MFC after: 5 days
|
| |
| |
| |
| |
| |
| |
| |
| | |
Check fstat return value. Also, use off_t for file size and offsets.
Avoid iterating over end of string.
Obtained from: OpenBSD (CVS rev. 1.41, 1.43)
MFC after: 1 week
|
| |
| |
| |
| |
| |
| | |
This is a no-op to make it easier to track changes from OpenBSD
MFC after: 3 days
|
| |
| |
| |
| |
| |
| |
| | |
former is obsolete.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
- Compatiblity with existing manpages has been improved
- Now support ".so" directive with compressed manpages (which fixes a regression
we have since we have new man(1))
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Set WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain version
of the following tools:
* addr2line
* elfcopy (strip / mcs)
* nm
* size
* strings
Reviewed by: bapt (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1224
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
o Introduce a notion of "not ready" mbufs in socket buffers. These
mbufs are now being populated by some I/O in background and are
referenced outside. This forces following implications:
- An mbuf which is "not ready" can't be taken out of the buffer.
- An mbuf that is behind a "not ready" in the queue neither.
- If sockbet buffer is flushed, then "not ready" mbufs shouln't be
freed.
o In struct sockbuf the sb_cc field is split into sb_ccc and sb_acc.
The sb_ccc stands for ""claimed character count", or "committed
character count". And the sb_acc is "available character count".
Consumers of socket buffer API shouldn't already access them directly,
but use sbused() and sbavail() respectively.
o Not ready mbufs are marked with M_NOTREADY, and ready but blocked ones
with M_BLOCKED.
o New field sb_fnrdy points to the first not ready mbuf, to avoid linear
search.
o New function sbready() is provided to activate certain amount of mbufs
in a socket buffer.
A special note on SCTP:
SCTP has its own sockbufs. Unfortunately, FreeBSD stack doesn't yet
allow protocol specific sockbufs. Thus, SCTP does some hacks to make
itself compatible with FreeBSD: it manages sockbufs on its own, but keeps
sb_cc updated to inform the stack of amount of data in them. The new
notion of "not ready" data isn't supported by SCTP. Instead, only a
mechanical substitute is done: s/sb_cc/sb_ccc/.
A proper solution would be to take away struct sockbuf from struct
socket and allow protocols to implement their own socket buffers, like
SCTP already does. This was discussed with rrs@.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Use ${.TARGET} instead of hardcoding the name in the dump build rule
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Obtained from: OpenBSD
|
| | |
|
| |
| |
| |
| | |
Sponsored by: DARPA, AFRL
|
| |
| |
| |
| |
| |
| |
| |
| | |
implementation, merge ^/head r275078 through r275117.
Note that all the extraneous mergeinfo is there because Subversion
created it. I'll hopefully be able to remove it again when merging back
to head.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Reported by: emaste
|
| |
| |
| |
| | |
Reduce overlinking
|
| | |
|
| |
| |
| |
| | |
While here remove the ugly LDMANDOC
|
|/ |
|
|
|
|
|
|
|
| |
Differential: D1009
Reviewed by: jonathan, pjd
MFC after: 2 weeks
Relnotes: yes
|
| |
|
| |
|
|
|
|
| |
Now mandoc can render the manpage properly
|
|
|
|
|
|
|
|
| |
- Remove superfluous paragraph macros.
- Remove/fix empty or incorrect macros.
- Sort sections into conventional order.
- Terminate quoted strings properly.
- Remove EOL whitespace.
|
| |
|
| |
|
|
|
|
|
|
|
| |
man(1) now first test the manpage to run with mandoc to make sure it can be
rendered.
In case groff cannot be found (because base has been built WITHOUT_GROFF) it
recommands to install groff from the packages
|
| |
|
| |
|
|
|
|
|
| |
This is a modern version of the deroff utility, useful for example to do
spellchecking on manpages
|
|
|
|
| |
it recodes multibyte UNIX manual files into mandoc(1)
|
|
|
|
|
| |
Add compat_reallocarray into libmandoc given other mandoc components will use
it.
|