summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* printf(1): add tests for warn about incomplete uses n$pfg2014-05-262-0/+9
| | | | | Submitted by: jilles MFC after: 2 weeks
* printf(1): warn about incomplete uses n$pfg2014-05-261-2/+16
| | | | | | Reviewed by: jilles Obtained from: Illumos MFC after: 2 weeks
* Change libatf-c and libatf-c++ to be private libraries.jmmv2014-05-251-12/+1
| | | | | | | | | | | | | | We should not be leaking these interfaces to the outside world given that it's much easier for third-party components to use the devel/atf package from ports. As a side-effect, we can also drop the ATF pkgconfig and aclocal files from the base system. Nothing in the base system needs these, and it was quite ugly to have to get them installed only so that a few ports could build. The offending ports have been fixed to depend on devel/atf explicitly. Reviewed by: bapt
* Add path markup on sys/mbuf.h to previous netstat(1) man page updateallanjude2014-05-251-1/+3
| | | | | Submitted by: brueffer Reviewed by: eadler (mentor)
* Document the new -R flag of netstat(1) introduced in r266448 that tracks theallanjude2014-05-251-1/+9
| | | | | | | flowid for each socket. Reviewed by: adrian Approved by: eadler (mentor)
* Add .../share/mk to the default system make path. This will fix theimp2014-05-231-1/+0
| | | | | | | | | | problem with broken in-tree builds (which are used far more pervasively than I'd known outside the tree). However, weird results may now happen if at any point in the tree above you there happens to be a directory that has subdirectory of share/mk, as unpredictable results will follow. This was considered the lessor of the two evils, at least for now. In the future this will be removed again when the underlying issues are resolved.
* Create our temporary file in $TMPDIR, if the environment variablemarcel2014-05-222-2/+15
| | | | | | is set. /tmp otherwise. Submitted by: Dan McGregor <danismostlikely@gmail.com>
* Rollback r266496.ray2014-05-221-2/+2
| | | | | | | Different meaning of flags for lock(1) and vidcontrol(1) confuse me. Pointy hat to: ray Sponsored by: The FreeBSD Foundation
* Fix CID 1204379 (vtoc8.c) & CID 1204380 (bsd.c): Cast ncyls to lba_tmarcel2014-05-212-2/+2
| | | | | before multiplying the 32-bit integrals to avoid any possibility of truncation before widening. Not a likely scenario to begin with...
* Fix CID 1204394: Use strncpy(3) instead of strcpy(3). Note that it'smarcel2014-05-211-4/+6
| | | | ok to not have the name and type strings terminated.
* Fix CID 1215124: Handle errors properly.marcel2014-05-211-1/+5
|
* Fix CID 1215125: fstat(2) returns -1 on error and sets errno. It doesmarcel2014-05-211-4/+2
| | | | not return the error (oops).
* Fix CID 1215128: Free the allocated buf when image_set_size()marcel2014-05-211-1/+3
| | | | returns and error and we return from bsd_write().
* Fix CID 1215129: move the call to lseek(2) before the call to malloc(3)marcel2014-05-211-2/+2
| | | | | so that the error path (taken due to lseek(2) failing) isn't leaking memory.
* Sync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1).ray2014-05-211-2/+2
| | | | Sponsored by: The FreeBSD Foundation
* - Fix a bug which can make sysctl() fail when -F is specified.hrs2014-05-211-9/+5
| | | | | | - Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because we have interfaces with longer names than 6 chars like epairN{a,b}. - Style fixes.
* Add -R to netstat to dump RSS/flow information.adrian2014-05-193-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | This is intended to help in diagnostics and debugging of NIC and stack flowid support. Eventually this will grow another column (RSS CPU ID) but that currently isn't cached in the inpcb. There's also no clean flowtype -> flowtype identifier string. This is the mbuf M_HASHTYPE_* values for RSS. Here's some example output: adrian@adrian-hackbox:~/work/freebsd/head/src % netstat -Rn | more Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address flowid ftype tcp4 0 0 10.11.1.65.22 10.11.1.64.12409 29041942 2 udp4 0 0 127.0.0.1.123 *.* 00000000 0 udp6 0 0 fe80::1%lo0.123 *.* 00000000 0 udp6 0 0 ::1.123 *.* 00000000 0 udp4 0 0 10.11.1.65.123 *.* 00000000 0 Tested: * amd64 system w/ igb NIC; local driver changes to expose RSS flowid in if_igb.
* Note my mentors in the committers graph.allanjude2014-05-181-0/+1
| | | | | | Add my birthday to the calendar. Approved by: bcr (mentor)
* Add descriptions of the display formats for -e, -l, -r, and -x. Fix a fewjhb2014-05-171-2/+65
| | | | typos in indent settings while here.
* Use 'RESOURCE' instead of the more generic 'TYPE' for the resource namejhb2014-05-171-1/+2
| | | | | column header when displaying resource usage. This more closely matches other procstat displays.
* Correct some minor nits in the per-thread signal format description suchjhb2014-05-171-5/+5
| | | | | | as missing posessives and misordering of fields. MFC after: 1 week
* - Add support for dumping current resource usage for processes via a new -rjhb2014-05-175-13/+193
| | | | | | | | | | flag to procstat. - Add an -H flag to request information about threads rather than processes when dumping statistics. Currently it is only used for -r to display resource usage for individual threads instead of the entire process. Reviewed by: kib (older version without -H) MFC after: 1 month
* - Do not override sin6_scope_id in LLA when it is already set to non-zero.hrs2014-05-151-5/+9
| | | | | | | This fixes destination list in output of netstat -r. - Plug a memory leak. - Add RTM_VERSION check. - Minor style fixes.
* MFuser/marcel/mkimg:marcel2014-05-1519-160/+775
| | | | | | | | Add support for different output formats: 1. The output file that was previously written is now called the raw format. 2. Add the vmdk output format to create VMDK images. When the format is not given, the raw output format is assumed.
* Revert r261296. This removes the WITHOUT_NCURSESW option.brooks2014-05-153-16/+3
| | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses.
* Makefile.inc is also included by the tests subdirectory, which resultsimp2014-05-151-1/+4
| | | | | | | in SUBDIRS having tests added to it, which fails. Work around this by checking to make sure tests exists before adding it to subdirs and work to get the generated file fixed so we can rename Makefile.inc to something else so it isn't automatically included by subdirs...
* units(1): Fix minor typoseadler2014-05-151-2/+2
| | | | Obtained From: DragonflyBSD
OpenPOWER on IntegriCloud