summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Add width and precision specifiers to printf(1) %n$.pfg2014-05-071-25/+90
| | | | | | | | | | This actually completes r264743 so that width and precision specifiers work properly with %n$. These keeps consistency with ksh93 and zsh. Requested by: jilles Obtained from: Garrett D'Amore (Illumos) MFC after: 4 days
* Introduce a new command line switch '-H' for stat(1)thomas2014-05-072-5/+44
| | | | | | | causing arguments to be interpreted as NFS file handles. Reviewed by: -arch (jhb, eadler) MFC after: 1 month
* Add mkimg_write() which combines lseek(2) and write(2) and usesmarcel2014-05-069-51/+25
| | | | | | | | sector granularity for both offset and length. Have all schemes use mkimg_write() instead of mkimg_seek() followed by write(2). Now that schemes don't use lseek(2) nor write(2) directly, it's easier to support output formats other than raw disks.
* In apm_write(), both fd and imgsz are referenced, so don't mark themarcel2014-05-061-1/+1
| | | | arguments as unused.
* Fix the upgrade path for fmake by allowing the include of src.opts.mkimp2014-05-061-1/+1
| | | | | to fail and falling back on the conservative testing of variables already in place. This should stop the tide of tinderbox mail.
* Revert r265436, since it is not the correct fix.se2014-05-061-1/+1
|
* Fix include statement to accept src.opts.mk from a source directoryse2014-05-061-1/+1
| | | | | | | | instead of from /usr/share/mk. I'm not sure that this will let buildworld complete on a system with no installed src.opts.mk (make buildworld is still running), but the tinderbox builds are all failing earlyon without this patch.
* Remove support for WITHOUT_BMAKE. bmake is now the only make that canimp2014-05-063-14/+0
| | | | | | | | build world, so it is the only make we build or install. fmake is still in the tree, but disconnected, and upgrades from older systems that still have bmake has not been removed, but its state has not been tested (it should work given how minimal the work to upgrade to bmake is).
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-0646-48/+48
| | | | from the latter.
* - Remove net.inet.tcp.reass.overflows sysctl. It counts exactlyglebius2014-05-061-1/+2
| | | | | | | | | same events that tcpstat's tcps_rcvmemdrop counter counts. - Rename tcps_rcvmemdrop to tcps_rcvreassfull and improve its description in netstat(1) output. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Treat the '-' as meaning standard input.pluknet2014-05-042-7/+12
| | | | Obtained from: NetBSD
* Fix width/alignment of JID column. Make it support up to the maximumbdrewery2014-05-031-15/+23
| | | | | | | 7-wide JIDs. On a system using jails for common tasks the JID can quickly increase. MFC after: 2 weeks
* Fix syntax error with modern shellseadler2014-05-031-1/+1
| | | | Submitted by: multiple
* Add -J command/flag to filter by jail name/jid. This will automaticallybdrewery2014-05-022-2/+8
| | | | | | | | | | display the JID as well (the -j command/flag). 0 displays host. + displays all. MFC after: 2 weeks Relnotes: yes
* Add freebsd-boot to recognized partition types.nwhitehorn2014-05-011-0/+1
|
* Fix "netstat -gW" behavior broken in r259638.melifaro2014-04-291-11/+13
| | | | | | | | | | | | | netstat has two options for printing multicast tables: sysctl (the default one for live systems) and kvm-based one (for cores). It looks like kvm-based one hasn't been working since it's been introduced in r190012 due to absence of mfctablesize kernel symbol. Check for all ipv4-multicast symbols being correctly resolved was introduced in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error message. Reported by: Olivier Cochard-Labbé MFC after: 1 week
* Eliminate last vestigies of NO_MAN= in the tree. Also, removeimp2014-04-253-6/+0
| | | | ineffectual NOMAN= lines. These don't change the build at all.
* Fix spelling error.bdrewery2014-04-251-1/+1
| | | | MFC after: 3 days
* Constify.delphij2014-04-252-6/+6
|
* Add option WITHOUT_VI to not build/install vi. vi was the largestimp2014-04-241-1/+4
| | | | binary without a knob to turn it off.
* Add Linux socket call decoding to trusssmh2014-04-242-1/+123
| | | | MFC after: 1 month
* Grammar fix.trasz2014-04-241-2/+2
|
* Make usage printing more consistent with other tools.ed2014-04-232-2/+20
| | | | | | | - Introduce a separate usage() function. - Don't use argv[0]. Directly name the application, as we do elsewhere. - Don't prepend the application name. - Don't print two newlines.
* Update to byacc 20140409bapt2014-04-231-4/+2
| | | | | | | | Among all the modifications, this new byacc also solves a 14 year old bug [1] PR: bin/23254 [1] Submitted by: marka@nominum.com [1] MFC after: 3 weeks
* Various style(9) fixes and typos in grep, sort and patch.pfg2014-04-2113-71/+71
| | | | MFC after: 3 days
* Add parameterized position handling to printf(1).pfg2014-04-212-1/+39
| | | | | | | | | | | | | | | | | | | | Add a new %n$ option to change the order of the parameters as done in the ksh93 builtin printf (among others). For example: %printf '%2$1d %1$s\n' one 2 three 4 2 one 4 three The feature was written by Garret D'Amore under a BSD license for Nexenta/illumos. Reference: http://garrett.damore.org/2010/10/new-implementation-of-printf.html PR: bin/152934 Obtained from: Illumos MFC after: 2 weeks
* login: Remove broken dialup log message.jilles2014-04-191-8/+0
| | | | | | | | | | For 10 years, the "DIALUP <tty>, <user>" message has required having a hostname (-h) instead of not having a hostname; therefore, it is never logged. Given that dialup is obsolete and this has not been fixed, remove the log message. Note that LOGALL, which is defined by default, logs a message for all logins, including dialup logins.
* Stop casting the const char * to void * to char * to make compile more happybz2014-04-171-1/+1
| | | | | | | | after r264573. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573
* Remove duplicate extern declarations after r264573.bz2014-04-171-3/+0
| | | | | | | | Makes things compile better. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573
* Minor style(9) cleanupspfg2014-04-171-2/+2
| | | | | | #define should be followed by a tab. MFC after: 3 days
* Sync with OpenBSD.delphij2014-04-1611-164/+321
| | | | MFC after: 2 weeks
* units(1): don't compare pointers with 0eadler2014-04-141-1/+1
| | | | | | | For better readability, don't compare pointers with 0 or assign 0 to them. Use NULL instead. Inspired by: DragonflyBSD
* units(1): Add 'static' and sort list.eadler2014-04-141-18/+18
| | | | Inspired by: DragonflyBSD
* units(1): Add v option: verboseeadler2014-04-142-14/+39
| | | | | | | For increased compatibility with GNU units: support a -v option which produces more verbose output when spitting out the answer. GNU -v does additional work in the version, information, and check output which we do not (yet?) replicate.
* units(1): Add U optioneadler2014-04-142-4/+16
| | | | | For increased compatibility with GNU units: support a -U option which tests for the existence of the default units file and prints it to the screen.
* units(1): support reading multiple units fileseadler2014-04-141-9/+12
| | | | | GNU units(1) supports reading up to 25 -f options. We support an arbitrary number.
* units(1): parse config file after setting defaultseadler2014-04-141-1/+1
| | | | | Parse the config file after setting the defaults to permit the user to change things (e.g., editing mode)
* units(1): add libedit supporteadler2014-04-142-19/+51
| | | | | | Add line editing and history support to units(1) via libedit. Reviewed by: bdrewery
* Avoid double close() of a file descriptor.brueffer2014-04-131-1/+0
| | | | | | CID: 1006089 Found with: Coverity Prevent(tm) MFC after: 1 week
* Avoid double free in f_acl().brueffer2014-04-131-1/+0
| | | | | | CID: 1018508 Found with: Coverity Prevent(tm) MFC after: 1 week
* find: Return normal exit status from -quit.jilles2014-04-132-3/+3
| | | | | | | If there was an error, make the exit status reflect this even if -quit caused the exit. Formerly, -quit always caused exit(0). GNU find does the same.
* Fix periph listing when IOCTL buffer border hits result for wanted bus.mav2014-04-131-3/+3
|
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-1326-26/+26
| | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* find: Correctly propagate -exec/-execdir ... {} + exit status.jilles2014-04-125-7/+28
| | | | | | | | | | | | | As per POSIX, the -exec ... {} + primary always returns true, but a non-zero exit status causes find to return a non-zero exit status itself. GNU does the same, and also for -execdir ... {} +. It does not make much sense to return false from the primary only when the child process happens to be run. The behaviour for -exec/-execdir ... ; remains unchanged: the primary returns true or false depending on the exit status, and find's exit status is unaffected.
* - Adding myself to the committers-ports.dotxmj2014-04-101-0/+1
| | | | | | - Adding myself to the freebsd calendar Approved by: swills (mentor)
* units(1): make -V print version instead of -veadler2014-04-072-11/+7
| | | | | | | | | | | | | | | The units program is likely little used. It is even less likely that a script will want the units program to print out its version number by passing -v. GNU units uses -V for version and -v for verbosity. Increase compatibility between these two versions (written by the same author) by switching our flag as well. Take this opportunity to remove bogus information about the version number and just call it 'FreeBSD units'. Discussed with: cperciva, rwatson
* units(1): fix spellingeadler2014-04-071-1/+1
| | | | Pointyhat to: me
* units(1): Add some some additional unitseadler2014-04-071-0/+6
| | | | Most of these are also recognized by GNU units
* find: Treat errno from fts_read() more carefully.jilles2014-04-061-4/+5
| | | | | | fts_read() leaves errno unchanged on EOF and sets it on error, so set errno to 0 before calling it. Also, don't trust finish_execplus() to leave errno unchanged.
* Convert sort to using newer MK_ convention.imp2014-04-051-2/+2
|
OpenPOWER on IntegriCloud