summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* kernel: use our nitems() macro when it is available through param.h.pfg2016-04-211-5/+5
| | | | | | No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current
* elftoolchain: Use ${SRCTOP} for the top of the FreeBSD treeemaste2016-04-217-7/+7
| | | | | | | | It's provided by sys.mk so there's no need to derive it from ${.CURDIR}. Suggested by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5998
* Bring a little more compability with GNU units 2.12eadler2016-04-212-14/+34
| | | | | | | | | | | - notionally support a 'history file' flag. This doesn't do much now, but is there to prevent scripts written against GNU units from breaking - correctly gracefully quit rather than exit (this will make it easier to support a history file in the future) - remove the "t" flag from fopen which was there to support windows. We have not supported windows since at the latest, the introduction of capsicum.
* Plug memory leaksbapt2016-04-202-0/+5
| | | | | Reported by: Coverity CID= 1338535, 1338536, 1338542, 1338569, 1338570
* Fix bad checking of the return of realloc(3)bapt2016-04-201-1/+1
| | | | | | Reported by: Coverity CID: 1007335 MFC after: 3 days
* Fix typo: actually test the return of strchr(3)bapt2016-04-201-1/+1
| | | | | | Reported by: Coverity CID: 1007335 MFC after: 3 days
* Partially revert the change on r298325 where there is anaraujo2016-04-201-1/+1
| | | | | | | (-1) casted to a pointer. Submitted by: pfg MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-201-2/+2
| | | | | | Small cosmetic change. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-203-10/+10
| | | | | | gethostbyname(3) will return NULL for error status. MFC after: 2 weeks.
* Fix build breakage introduced by r298253.delphij2016-04-191-1/+1
|
* Rename units.lib -> definitions.unitseadler2016-04-193-3/+167
| | | | | - this matches GNU units 2.12 add ISO country codes from units 2.12
* Remove pathnames.headler2016-04-192-34/+1
| | | | | - it only holds a single constant - it doesn't exist in the GNU variant
* Use NULL instead of 0 for pointers.araujo2016-04-192-4/+4
| | | | | | realloc will return NULL in case it cannot allocate memory. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-2/+2
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchainemaste2016-04-187-7/+7
| | | | | | | This produces a nicer path in debug info and build logs. MFC after: 1 week Sponsored by: The FreeBSD Foundation
* User NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | getservent(3) returns NULL on EOF or error. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | fopen(3) will return NULL in case it cannot open the STREAM. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-181-4/+4
| | | | | | realloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* Use NULL for pointers.araujo2016-04-181-1/+1
| | | | | | | strrchr(3) will return NULL if the character does not appears in the string. MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-183-7/+7
| | | | | | Also malloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* Use NULL instead of 0.araujo2016-04-181-3/+3
| | | | | | strtok(3) will return NULL when no more tokens remain. MFC after: 2 weeks.
* Note that mklocale(1) and colldef(1) are no longer usedbapt2016-04-172-2/+16
| | | | | | mklocale and colldef has been replaced by localedef, but they have to be kept until 10.2 is EOL for mklocale (it has been added to 10.3 as a bootstrap tools) and until 10.3 is EOL for colldef (it has never been added to bootstrap tools)
* Use the nitems() macrobapt2016-04-171-2/+4
|
* mail: Don't truncate mtime of mailbox to microseconds.jilles2016-04-171-9/+9
|
* Fix a mandoc -Tlint warningbapt2016-04-161-1/+1
|
* Directly set the O_CLOEXEC flags via the open(2) attributesbapt2016-04-161-6/+3
| | | | MFC after: 1 week
* MFHgjb2016-04-1620-46/+50
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-1516-44/+44
| |
| * META_MODE: Don't rebuild build-tools targets during normal build.bdrewery2016-04-144-2/+6
| | | | | | | | | | | | | | | | | | This avoids 'build command changed' due to CFLAGS/CC changes during the normal build. Without this the build-tools targets end up rebuilding for the *target* rather than keeping the native versions built in build-tools. Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-04-135-380/+696
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * fmt(1): for pointers use NULL instead of 0pfg2016-04-131-4/+3
| | | | | | | | While here clean excessive not lint comment indentation.
| * fmt(1): reformat with indent(1).pfg2016-04-131-380/+497
| | | | | | | | | | | | | | Failed attempt to get nearer to style(9) and the format from the original OpenBSD code. At least it should be readable now. No functional change.
| * Add a small tool, resizewin(1), to query terminal for window sizecem2016-04-134-0/+200
| | | | | | | | | | | | | | Submitted by: Daniel O'Connor Reviewed by: kan, wblock, cem Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4438
* | MFHgjb2016-04-115-8/+67
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Add bofh@ in calendar.freebsdbofh2016-04-101-0/+1
| |
| * Handle whois referrals between RIRsfanf2016-04-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is rather ugly, because the RIPE and APNIC whois servers do not provide referrals for address blocks that they do not manage. However ARIN is usually the right place or knows the right place so we try there. The particular instance which clued me in to this bug is U.Mich. 141.211.0.0/16 for which the referral chain should be IANA -> RIPE -> ARIN. RIPE's RDAP does provide useful redirects (for example try `curl -I http://rdap.db.ripe.net/ip/141.211.0.0) so maybe their whois server can be improved. AfriNIC's whois server gives more direct referrals, but they are designed to be human-readable. Ugly, but we can manage. The issue of referrals between RIRs is likely to become more important in the future whith the increasing number of cross-region IP address block transfers increases.
| * Enhance uuencode with a -r option to produce raw output.gahr2016-04-072-5/+17
| | | | | | | | | | | | | | | | | | | | | | This matches with uudecode's -r option to decode raw data without initial and final framing lines. $ echo Test | uuencode -mr - | uudecode -mr Test Approved by: cognet MFC after: 1 week
| * Add four new RCTL resources - readbps, readiops, writebps and writeiops,trasz2016-04-071-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for limiting disk (actually filesystem) IO. Note that in some cases these limits are not quite precise. It's ok, as long as it's within some reasonable bounds. Testing - and review of the code, in particular the VFS and VM parts - is very welcome. MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5080
| * Fix sed functions 'i' and 'a' from discarding leading white space.pfg2016-04-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This appears to be implementation dependent but convenient and makes our sed behave more like GNU sed. Given that it is not the historic behavior, bump FreeBSD_version should userland/ports somehow depend on it. Obtained from: NetBSD (bin/49872) Reviewed by: bdrewery PR: 208554 Merge after: NEVER
* | MFHgjb2016-04-061-2/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-04-0416-36/+140
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Add a cross reference to ktrace(2).brooks2016-03-311-2/+3
| | | | | | | | | | | | Obtained from: CheriBSD (9cb420d6b7f04c1b7d2006180b80932e5d3fe50e) MFC after: 1 week Sponsored by: DARPA, AFRL
| * Fix whois queries for ARIN AS numbers.fanf2016-03-311-3/+7
| | | | | | | | | | The ARIN whois server likes AS number queries to be in the form "a 8075" rather than "as7085".
| * Add phttpget(8) .Xr to fetch(1).trasz2016-03-291-1/+2
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * netstat: avoid returning uninitialized value in p_sockaddr().pfg2016-03-271-0/+1
| | | | | | | | | | | | | | | | In the case the width is less than 0, we are returning an uninitialized value. For practical purposes the return value is ignored but initialize it to avoid trouble. CID: 1341619
| * Replace the CloudABI system call table by a machine generated version.ed2016-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type definitions and constants that were used by COMPAT_CLOUDABI64 are a literal copy of some headers stored inside of CloudABI's C library, cloudlibc. What is annoying is that we can't make use of cloudlibc's system call list, as the format is completely different and doesn't provide enough information. It had to be synced in manually. We recently decided to solve this (and some other problems) by moving the ABI definitions into a separate file: https://github.com/NuxiNL/cloudabi/blob/master/cloudabi.txt This file is processed by a pile of Python scripts to generate the header files like before, documentation (markdown), but in our case more importantly: a FreeBSD system call table. This change discards the old files in sys/contrib/cloudabi and replaces them by the latest copies, which requires some minor changes here and there. Because cloudabi.txt also enforces consistent names of the system call arguments, we have to patch up a small number of system call implementations to use the new argument names. The new header files can also be included directly in FreeBSD kernel space without needing any includes/defines, so we can now remove cloudabi_syscalldefs.h and cloudabi64_syscalldefs.h. Patch up the sources to include the definitions directly from sys/contrib/cloudabi instead.
| * Make the autofs(5) -hosts map more robust, primarily to make it correctlytrasz2016-03-232-6/+37
| | | | | | | | | | | | | | | | | | | | handle NFS shares containing whitespace. This also adds the -E parameter to showmount(8). Reviewed by: emaste@, jhibbits@, wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5649
OpenPOWER on IntegriCloud