summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFV r267843: update file/libmagic to 5.19.delphij2014-06-261-1/+2
|\ | | | | | | MFC after: 2 weeks
* | Correct buffer size.delphij2014-06-261-1/+1
| | | | | | | | | | Submitted by: Sascha Wildner <swildner dragonflybsd org> MFC after: 2 weeks
* | Use correct length for buffer.delphij2014-06-251-1/+1
| | | | | | | | | | Submitted by: Sascha Wildner <swildner dragonflybsd org> MFC after: 2 weeks
* | Introduce $RA_SERVER to set default whois server.ume2014-06-251-4/+6
| | | | | | | | | | | | Requested by: nork Reviewed by: nork MFC after: 1 week
* | Remove csup(1) and its associated cpasswd(1) tool.gavin2014-06-2563-20672/+0
| | | | | | | | | | | | | | | | With the move by the FreeBSD Project away from CVSup as a distribution mechanism, there is no longer a need to keep this in base. Approved by: mux (around a year ago), silence on -hackers X-MFC-after: never
* | use .Mt to mark up email addresses consistently (part3)bapt2014-06-2343-65/+64
| | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* | Drop ifdef nonsense: just use setvbuf(3).pfg2014-06-211-9/+3
| | | | | | | | Pointed out by: kib, bde
* | Fix a bug in bsdgrep(1) where patterns are not correctlygjb2014-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | detected. Certain criteria must be met for this bug to show up: * the -w flag is specified, and * neither -o or --color are specified, and * the pattern is part of another word in the line, and * the other word that contains the pattern occurs first PR: 181973 MFC after: 3 days Sponsored by: The FreeBSD Foundation
* | Add -u (unbuffered output) after GNU sed.pfg2014-06-202-6/+19
| | | | | | | | | | Obtained from: NetBSD MFC after: 1 week
* | Cap the percent CPU of individual threads at 100% to fix some of thejhb2014-06-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more obvious imprecision in the previous top changes. Specifically, top uses a delta of clock_gettime() calls right after invoking the kern.proc sysctl to fetch the process/thread list to compute the time delta between the fetches. However, the kern.proc sysctl handler does not run in constant time. It can spin on locks, be preempted by an interrupt handler, etc. As a result, the time between the gathering of stats for individual processes or threads between subsequent kern.proc handlers can vary. If a "slow" kern.proc run is followed by a "fast" kern.proc run, then the threads/processes at the start of the "slow" run will have a longer time delta than the threads/processes at the end. If the clock_gettime() time delta is not itself skewed by preemption, then the delta may be too short for a given thread/process resulting in a higher percent CPU than actual. However, there is no good way to calculate the exact amount of overage, nor to know which threads to subtract the overage from. Instead, just punt and fix the definitely-wrong case of an individual thread having more than 100% CPU. Discussed with: zonk
* | Don't dump core when the ELF file has no section headers. The ELFmarcel2014-06-191-9/+24
| | | | | | | | core files created by gcore are among those.
* | Rename a variable; no functional changes.trasz2014-06-181-16/+16
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | Add "iscsictl -M", which allows one to change session parameterstrasz2014-06-182-9/+155
| | | | | | | | | | | | without removing it and adding back. Sponsored by: The FreeBSD Foundation
* | Add a stub send-pr that simply points people towards the online supportgavin2014-06-173-0/+17
| | | | | | | | | | | | pages, to give people used to send-pr a bit of guidance. MFC after: 3 days
* | patch: add dry-run alias for compatibility with other implementations.pfg2014-06-152-2/+3
| | | | | | | | | | | | | | | | | | | | Other implementations of patch(1), including GNU patch and "svn patch" have a --dry-run option which does the same as our -C or --check option. Add a new alias to make our implementation more compatible. MFC after: 1 week
* | Fix date.joel2014-06-151-1/+1
| |
* | patch: unsign the line length to avoid overflows.pfg2014-06-153-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch(1) uses a short int for the line length, which is usually sufficient for regular diffs, but makes no effort to signal when there is an overflow. Change the line length to an unsigned short int to better use the fact that a length is never negative. The change is loosely inspired on a related change in DragonFly, but we avoid spending more memory than necessary. While here adjust the messages to be clearer on what is happening. MFC after: 1 week
* | patch: cleanup some unnecessary cruft.pfg2014-06-141-16/+7
| | | | | | | | | | | | | | | | - Drop some bogus casts to size_t. - The new_p_foo variables are not needed after r267426. Pointed out by: bde MFC after: 1 week
* | Added:shurd2014-06-141-0/+1
| | | | | | | | | | | | - my birthday Approved by: db, skreuzer (mentors)
* | - Make invalids variable local to do_conv such that it prints the numbertijl2014-06-131-13/+14
| | | | | | | | | | | | | | | | | | | | of invalid characters of the current file instead of an accumulated value. - Make do_conv return an error when invalid characters have been found. Return EXIT_FAILURE from main if any file contained invalid characters. This matches the behaviour of GNU iconv. - Mark usage with __dead2 attribute. - Make the long_options array const.
* | Avoid zeroing during allocation.pfg2014-06-122-22/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change reverts a change from OpenBSD which made use of calloc, and therefore wasted time initializing arrays that will later be realloc'ed. Consistently use FreeBSD's reallocf(). While here also merge the changes from OpenBSD's manpage patch.1 Rev 1.27: "patch was moved from user portability (UP) to base in issue 7 and is no longer optional" MFC after: 1 week
* | Add myself to the calendarrodrigo2014-06-121-0/+1
| | | | | | | | Approved by: bapt (mentor)
* | Avoid leaking file pointer on erroremaste2014-06-111-2/+9
| | | | | | | | CID: 1222506, 1222505
* | vt fontcvt: move to usr.bin/vtfontcvtemaste2014-06-104-0/+654
| | | | | | | | | | | | | | | | | | | | vtfontcvt is useful for end users to convert arbitrary bitmap fonts for use by vt(4). It can also be used as a build tool, allowing us to keep the source font data in the src tree rather than uuencoded binaries. Reviewed by: ray, wblock (D183) Sponsored by: The FreeBSD Foundation
* | dtc: ignore lines starting with #.rpaulo2014-06-101-4/+5
| | | | | | | | | | This is necessary because we use the C pre-processor to parse #include lines and cpp adds line markings that start with #.
* | dtc: don't crash if the argument is a directory.rpaulo2014-06-101-0/+9
| |
* | The, currently undocumented, -i option takes an argument.rpaulo2014-06-101-1/+1
| |
* | truncate: Detect integer overflow, fix relative sizes, add tests.jilles2014-06-094-5/+421
| | | | | | | | | | | | | | | | | | | | | | The change to expand_number (r204654) broke detection of too large sizes and relative sizes ('+'/'-'). Also add some tests. PR: 190735 Submitted by: Kirk Russell MFC after: 1 week
* | In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.bdrewery2014-06-0816-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
* | Minor mdoc improvements.joel2014-06-061-5/+6
| |
* | Move atf-sh from /usr/bin/ to /usr/libexec/jmmv2014-06-066-127/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | In r266650, we made libatf-c and libatf-c++ private libraries so that no components outside of the source tree could unintendedly depend on them. This change does the same for the "atf-sh library" by moving the atf-sh interpreter from its public location in /usr/bin/ to the private location in /usr/libexec/. Our build system will ensure that our own test programs use the right binary, but users won't be able to depend on atf-sh by "mistake". Committing this now to ride the UPDATING notice added with r267172 today.
* | Fix some rpcgen sample file issues.bdrewery2014-06-062-2/+3
| | | | | | | | | | | | | | | | | | | | * -Sc was generating code without a return type on main. * -Sm was generating an unusable clean target due to undefined RM. * -Sm was generating clean target with extra preceding space. PR: 185582 Submitted by: Pawel Biernacki <pawel.biernacki@gmail.com> MFC after: 1 week
* | Minor mdoc nit.joel2014-06-061-1/+1
| |
* | When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS andimp2014-06-061-2/+0
| | | | | | | | | | | | | | | | | | remove the now-redundant checks for RELEASE_CRUNCH. This originally was defined for building smaller sysinstall images, but was later also used by picobsd builds for a similar purpose. Now that we've moved away from sysinstall, picobsd is the only remaining consumer of this interface. Adding these two options reduces the RELEASE_CRUNCH special cases in the tree by half.
* | mdoc: drop the trailing dot from the xref list.pluknet2014-06-051-1/+1
| |
* | Cross-reference jot(1) and seq(1).kib2014-06-041-1/+4
| | | | | | | | MFC after: 3 days
* | Sadly, we do not actually live in the future.allanjude2014-06-041-1/+1
| | | | | | | | Approved by: wblock (mentor)
* | Further updates to the netstat(1) man page and usage messageallanjude2014-06-042-253/+515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Reformat the entire man page - Create a proper synopsis section - Use itemized-lists to describe each flag, rather than paragraphs - Cross-reference common flags to a 'general flags' sub-section with short inline description of the flag - Label 'general flags' sub-section - Apply additional fixes suggested by wblock, brueffer, and bdrewery - Update .Dd that got undone previously - Change the order of the .Op Fl to be alphabetical - Add the -i | -I interface flags to the description of 'interface display mode' - Fix missing parameters in man page - Fix missing parameters in usage() - Sync man page and usage() MFC Note: stable/9 and stable/10 do not have -R, will need to be removed when merged CR: D58 Reviewed by: brueffer, bcr Approved by: wblock (mentor) MFC after: 7 days Sponsored by: ScaleEngine Inc.
* | - Avoid calling a wrapper function around strcmpgahr2014-06-031-10/+3
| | | | | | | | | | | | | | - Use sizeof(*array) instead of sizeof(element) everywhere CR: D161 Approved by: cognet, bapt
* | - style, remove (void) in front of printf and the likegahr2014-06-031-5/+5
| | | | | | | | | | CR: D161 Approved by: cognet, bapt
* | Remove extraneous "mkdir -p"emaste2014-06-021-1/+0
| | | | | | | | | | | | The directory hierarchy is created by an mtree file (BSD.usr.dist, in the case of calendar(1)). An explicit "mkdir -p" in a program's Makefile is redundant, and can mask a missing mtree entry.
* | printf: Install tests/regress.missingpos1.out, fixing tests.jilles2014-06-011-0/+1
| |
* | - Added myself and mentor/mentee relationship to the src committerspkelsey2014-05-311-0/+1
| | | | | | | | | | | | | | | | graph. - Added my info to the FreeBSD calendar. Approved by: jmallett (mentor)
* | Fix m2 regression test.pfg2014-05-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is not really a good test as the behaviour for /c is unspecified. For the record, ksh93 returns: $ printf "abc\n\cdef" abc ef$ Discussed with: Garret D'Amore (Illumos)
* | Rework the notion of CPU used in top. In particular, for subsequentjhb2014-05-301-13/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | displays after a pause, use the difference in runtime divided by the length of the pause as the percentage of CPU used instead of the value calculated by the kernel. In addition, when determing if a process or thread is idle or not, treat any process or thread that has used any runtime or performed any context switches during the interval as busy. Note that the percent CPU is calculated as a double and stored in an array to avoid recalculating the value multiple times in the comparison method used to sort processes in the CPU display. Tested by: Jamie Landeg-Jones <jamie@dyslexicfish.net> Reviewed by: emaste (earlier version) MFC after: 1 week
* | Update number of tests.pfg2014-05-291-1/+1
| | | | | | | | Suggested by: jmmv
* | Minor style knit.pfg2014-05-291-2/+1
| |
* | Fix a couple of size_t != int warnings.jhb2014-05-271-2/+2
| |
* | Update backend files and makefiles for apr 1.4.8 -> 1.5.1peter2014-05-273-5/+24
| |
* | Merge svn-1.8.8 -> 1.8.9peter2014-05-271-2/+2
| |
OpenPOWER on IntegriCloud