summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/head r274961 through r276301.dim2014-12-2720-83/+123
|\
| * mdoc: sort SEE ALSO.joel2014-12-2612-27/+27
| |
| * mandoc -Tlocale is now the default, no need to enforce it anymorebapt2014-12-251-1/+1
| |
| * Update mandoc to 1.13.2bapt2014-12-251-6/+7
| |
| * patch: Bring in xstrdup and use it when appropriate.pfg2014-12-254-18/+35
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * Sync with NetBSD, mainly address NetBSD bug #43355:delphij2014-12-182-31/+53
| | | | | | | | | | | | | | | | Fix valid_format() to be more careful about allowing only valid printf formats. Obtained from: NetBSD MFC after: 2 weeks
* | Merge ^/head r275759 through r275911.dim2014-12-183-8/+14
|\ \ | |/
| * Adjust printf format specifiers for dev_t and ino_t in user space.gleb2014-12-172-7/+10
| | | | | | | | | | | | ino_t and dev_t are about to become uint64_t. Reviewed by: kib, mckusick
| * sed: Bounds check the file path used in the 'w' command.pfg2014-12-161-1/+4
| | | | | | | | | | | | | | | | 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
* | Merge ^/head r275715 through r275748.dim2014-12-132-5/+6
|\ \ | |/
| * The size of the first level reference count table is given in terms of themarcel2014-12-122-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge ^/head r275478 through r275622.dim2014-12-085-84/+315
|\ \ | |/
| * patch(1): avoid line number overflowspfg2014-12-082-34/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Small space changespfg2014-12-071-8/+11
| | | | | | | | | | | | | | Mostly to keep in sync with OpenBSD and update the TAG. Obtained from: OpenBSD MFC after: 5 days
| * Prefer setvbuf() to setlinebuf().pfg2014-12-071-3/+3
| | | | | | | | | | | | | | On FreeBSD's libc setlinebuf is a wrapper to setvbuf anyways. Obtained from: OpenBSD MFC after: 5 days
| * Merge fixes from OpenBSD.pfg2014-12-061-38/+40
| | | | | | | | | | | | | | | | 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
| * Update OpenBSD CVS revision for our r255232.pfg2014-12-051-1/+1
| | | | | | | | | | | | This is a no-op to make it easier to track changes from OpenBSD MFC after: 3 days
| * Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as thetrasz2014-12-052-1/+189
| | | | | | | | | | | | | | former is obsolete. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* | Merge ^/head r275387 through r275477.dim2014-12-044-28/+16
|\ \ | |/
| * Update to mandoc cvs version as of 20141201bapt2014-12-024-28/+16
| | | | | | | | | | | | - 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))
* | Merge ^/head r274961 through r275386.dim2014-12-026-1/+101
|\ \ | |/
| * Build infrastructure for elftoolchain toolsemaste2014-12-016-1/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge from projects/sendfile:glebius2014-11-305-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge ^/head r275262 through r275363.dim2014-12-015-14/+16
| |
* | Merge ^/head r274961 through r275261.dim2014-11-291-1/+1
|\ \ | |/
| * MF projects/building-blocks r275198:ngie2014-11-291-1/+1
| | | | | | | | Use ${.TARGET} instead of hardcoding the name in the dump build rule
* | Merge ^/head r275118 through r275209.dim2014-11-281-3/+3
|\ \ | |/
| * Init array field in the proper place.kevlo2014-11-271-3/+3
| | | | | | | | Obtained from: OpenBSD
| * Convert svn to LIBADD reduce overlinkingbapt2014-11-259-61/+27
| |
* | Update build for LLDB snapshot at upstream rev 216948emaste2014-11-261-3/+9
| | | | | | | | Sponsored by: DARPA, AFRL
* | After some horrible wrestling with Subversion's worthless mergedim2014-11-269-61/+27
| | | | | | | | | | | | | | | | 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.
* | r274961 through r275075dim2014-11-25101-273/+134
|\ \ | |/
| * Readd protect(2) removed by mistakebapt2014-11-251-0/+1
| | | | | | | | Reported by: emaste
| * Convert to usr.bin/ to LIBADDbapt2014-11-25100-268/+131
| | | | | | | | Reduce overlinking
| * Forgot to convert demandoc along with mandocbapt2014-11-241-3/+2
| |
| * Convert mandoc to LIBADDbapt2014-11-241-3/+1
| | | | | | | | While here remove the ugly LDMANDOC
* | Update llvm and clang binary Makefiles.dim2014-11-2415-53/+169
|/
* Limit descriptors and enter capability mode.brueffer2014-11-241-0/+18
| | | | | | | Differential: D1009 Reviewed by: jonathan, pjd MFC after: 2 weeks Relnotes: yes
* Workaround help2man defficiency that prevents mandoc from renderingbapt2014-11-231-3/+2
|
* Install mdoc(7) and man(7) from mdoc instead of the one from groffbapt2014-11-231-1/+1
|
* Regenerate the manpage in mdoc(7) format using pod2mdocbapt2014-11-231-433/+280
| | | | Now mandoc can render the manpage properly
* Misc mdoc fixes:joel2014-11-231-16/+14
| | | | | | | | - Remove superfluous paragraph macros. - Remove/fix empty or incorrect macros. - Sort sections into conventional order. - Terminate quoted strings properly. - Remove EOL whitespace.
* Fix commentsbapt2014-11-231-2/+4
|
* Fix typobapt2014-11-231-1/+1
|
* Change man(1) to use mandoc to render manpagesbapt2014-11-231-4/+44
| | | | | | | 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
* Lower warnings to fix build with gccbapt2014-11-221-0/+2
|
* Lower warning to allow building with gccbapt2014-11-221-0/+2
|
* Add the demandoc utility from the mandoc projectbapt2014-11-222-0/+11
| | | | | This is a modern version of the deroff utility, useful for example to do spellchecking on manpages
* Add the preconv utility from mandoc projectbapt2014-11-222-0/+8
| | | | it recodes multibyte UNIX manual files into mandoc(1)
* Rework mandoc Makefile to ease maintainancebapt2014-11-221-5/+20
| | | | | Add compat_reallocarray into libmandoc given other mandoc components will use it.
OpenPOWER on IntegriCloud