summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Update to upstream version 2.3fanf2010-03-123-41/+91
| | | | | | | | Add -V (display version) and -S (list controlling symbols per #if with nesting information) options, and improve unifdefall debug output. Done committing 0 revisions to SVN Obtained from: http://dotat.at/prog/unifdef
* Now fix functionality of 'netstat -f netgraph' that hasn't workedglebius2010-03-121-3/+3
| | | | | | | | | | | | starting from netgraph import in 1999. netstat(8) used pointer to node as node address, oops. That didn't work, we need the node ID in brackets to successfully address a node. We can't look into ng_node, due to inability to include netgraph/netgraph.h in userland code. So let the node make a hint for a userland, storing the node ID in its private data. MFC after: 2 weeks
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* - With the introduction of -A, -B and -3, not all combinations ofedwin2010-03-122-86/+188
| | | | | | | | | arguments makes sense anymore. For example, what would a combination of -3 (show three months) and -y (show the whole year) do? We will abort on these cases. - Move the debug option -d to -H (from highlight), while -d is now used for setting the day of "today" so that -y and friends can be tested.
* The number after the command is *not* optional.joerg2010-03-111-1/+1
| | | | MFC after: 1 day
* Improve the change made in the previous commit.ed2010-03-111-2/+1
| | | | | doshell() never returns, so there is no need to see whether we are the parent process.
* Make script(1) a little less broken.ed2010-03-111-0/+2
| | | | | | | | | Close the file descriptor to the TTY. There is no reason why the parent process should keep track of the descriptor. This ensures that the application inside properly drains the TTY during exit(2). Reported by: alfred MFC after: 2 weeks
* Fix copyright spelling.imp2010-03-1014-15/+15
| | | | | PR: 139825 Submitted by: Ruslan Mahmatkhanov
* Add SIZE_MAX overflow checkache2010-03-091-0/+2
|
* Add SIZE_MAX overflow checkache2010-03-091-0/+2
|
* - Fix the highlighting for non-terminals when the last week is notedwin2010-03-092-10/+22
| | | | | 7 days long. - "-m <N> <YYYY>" now prints only the month, not the whole year.
* Rewrite input processing to not exit with error on the first EILSEQ foundache2010-03-081-108/+68
| | | | | | | | in the input data but fallback to "binary comparison" instead. POSIX says: "The input files shall be text files", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too.
* Add file forgotten in r204879.kib2010-03-081-0/+139
|
* Teach procstat(1) to display some information about signal dispositionkib2010-03-084-8/+84
| | | | | | | and pending/blocked status for signals. Reviewed by: rwatson MFC after: 2 weeks
* 1) Reimplement (differently) unlimited line length restricted in prev.ache2010-03-081-54/+65
| | | | | | commit. 2) Honor missing the very last \n (if absent) on output.
* Pass the correct size to memset().jh2010-03-081-1/+1
| | | | | | PR: bin/128094 Submitted by: Henning Petersen MFC after: 1 week
* - document the -3, -A and -B properly in Synopsis.edwin2010-03-072-59/+106
| | | | | | | | - add highlight of current date for non-terminals. - fix -J option. - code cleanup. MFC after: 2 weeks
* Remove vestiges of old %-format which prevents build on amd64ache2010-03-061-2/+2
|
* 1) Rewrite input processing to not exit with error on the first EILSEQ foundache2010-03-061-106/+68
| | | | | | | | | | | | | | in the input data but fallback to "binary equal" check instead. POSIX says: "The input file shall be a text file", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too. 2) Speedup input processing a bit in complex cases like skipping fields, chars or ignore case. 3) Enforce the implied LINE_MAX limit (from POSIX definition of "text file" and POSIX uniq(1) description).
* - Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.jh2010-03-052-35/+34
| | | | | | | | | | snprintf(3) doesn't set errno in the tested cases. - If the same argument reference (for example %1) was specified more than once, the command didn't necessarily fit to the final command buffer. Fix this using a dynamic sbuf buffer. Add a few regression tests for the case. PR: bin/95079 No objections: freebsd-hackers
* Let the afterinstall target ignore failures from running chflags. Thisscottl2010-03-041-1/+1
| | | | | | | allows it to work over NFS, and puts it back into conformance with other 'schg' utlitilties in the system. Reviewed by: ed
* Remove no-op of WARNS?=edwin2010-03-041-1/+0
| | | | Submitted by: Ulrich Sp??rlein <uqs@spoerlein.net>
* - Implement -3 option (show previous, this and next month) option.edwin2010-03-043-206/+266
| | | | | | | | | - Add -A option (months after this month). - Add -B option (months before this month). - Fix highlighting of today in year overview. - Fix aligning of "foreign" characters. MFC after: 2 weeks
* - Fix spelling.lulf2010-03-031-1/+1
| | | | Pointed out by: Pawel Worach <pawel.worach - at - gmail.com>, b. f. <bf1783 - at - googlemail.com>
* Use expand_number(3) from libutil instead of home-grown function to parsesobomax2010-03-032-62/+7
| | | | | | | human-friendly power-of-two numbers (i.e. 2k, 5M etc). Suggested by: many MFC after: 1 week
* - Include CURDIR in case the makefile is not run from the same directory.lulf2010-03-031-1/+1
|
* - Remove unused include path.lulf2010-03-031-1/+1
|
* - Revert Makefile to revision r203368, as the svn mv from contrib/csup replacedlulf2010-03-031-14/+32
| | | | the Makefile with a broken version.
* Always assign WARNS using ?=uqs2010-03-021-3/+3
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* - Unmark authentication support as a TODO item.lulf2010-03-021-3/+2
|
* - Move csup away from contrib/ and into usr.bin/. Software is no longerlulf2010-03-0263-33/+20847
| | | | | | contributed, and main development is happening in the FreeBSD repo. Suggested by: joel
* Prefer vocabulary of 'Current' and 'Limit' to 'Value' and 'Maximum' inrwatson2010-03-011-1/+1
| | | | | | | netstat -Q. MFC after: 6 days Sponsored by: Juniper Networks
* Teach netstat -Q to work with -N and -M by adding libkvm versions of datarwatson2010-03-013-26/+278
| | | | | | | | | query routines. This code is necessarily more fragile in the presence of kernel changes than querying the kernel via sysctl (the default), but useful when investigating crashes or live kernel state via firewire. MFC after: 1 week Sponsored by: Juniper Networks
* Make pr build with WARNS=6.ed2010-02-262-2/+2
|
* Use time(NULL) instead of gettimeofday(), because we only need tv_sec.ed2010-02-261-8/+3
|
* Fixed static linkage.ru2010-02-262-4/+4
|
* Fixed dependencies (make checkdpadd).ru2010-02-254-6/+9
|
* Update date on netstat(1) for -Q.rwatson2010-02-221-1/+1
| | | | | Suggested by: bz MFC after: 1 week
* Teach netstat(1) to print out netisr statistics when given the -Q argument.rwatson2010-02-225-4/+298
| | | | | | | | Currently supports only reporting on live systems via sysctl, kmem support needs to be edded. MFC after: 1 week Sponsored by: Juniper Networks
* Fix common misspelling of hierarchyuqs2010-02-205-5/+5
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Treat numbers after [Ee] a positive number rather than an invaliddelphij2010-02-201-1/+2
| | | | one.
* Add a reference to newly added seq(1) command.delphij2010-02-201-1/+2
| | | | | Submitted by: jilles MFC after: 3 months
* Add seq(1), a small utility to generate sequence number.delphij2010-02-194-0/+648
| | | | | Obtained from: NetBSD MFC after: 3 months
* Update to upstream version 1.338fanf2010-02-192-27/+50
| | | | | | | | | | Fix a long-standing cpp compatibility bug: The -DFOO argument (without an explicit value) should define FOO to 1 not to the empty string. Add support for CRLF newlines, based on a suggestion from Mark Rushakoff. Obtained from: http://dotat.at/prog/unifdef/
* The correct value of DEL is 0x7f, not 0xff. This is purely a documentationgavin2010-02-182-4/+4
| | | | | | | | issue - od(1) and hexdump(1) behave as expected. PR: docs/143869 Submitted by: gcooper MFC after: 2 weeks
* The kdump data stream is an unaligned data stream for stat andimp2010-02-181-3/+9
| | | | | | | | | | sockaddr structures. As such, we have top copy the data structure into a local buffer before we can reference it, otherwise we have unaligned references (these are fixed up automatically on some CPUs, but not on others). We do this unconditionally to make the code easier to read and understand. Submitted by: Grzegorz Bernacki
* bc and dc are not BSD version, not GNU version.imp2010-02-181-1/+1
|
* Bump .Dd for r203977gavin2010-02-161-1/+1
| | | | MFC after: 1 month
* Implement the rename query, for when a file with the same name as the onegavin2010-02-162-28/+69
| | | | | | | | | | | | | | | | | | about to be extracted already exists. The question, and interpretation of the response is deliberately compatible with Info-Zip. This change was originally obtained from NetBSD, but has three changes: - better compatibility with Info-Zip in the handling of ^D - Use getdelim() rather than getline() - bug fix: != changed to == in the "file rename" code I suspect the latter is also a bug in NetBSD, but I can't easily confirm this. PR: bin/143307 Reviewed by: rdivacky (change to unzip.c only) Obtained from: NetBSD src/usr.bin/unzip/unzip.c 1.8 MFC after: 1 month
* The NetBSD Foundation has granted permission to remove clause 3 and 4imp2010-02-1612-84/+0
| | | | | | from their software. Obtained from: NetBSD
OpenPOWER on IntegriCloud