summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Catch up with r144020's /Dir_FindFile/Path_FindFile/obrien2009-11-172-2/+2
|
* Garbage collect some old #ifdef'ed code from 1994 that causes vi's '%'obrien2009-11-172-27/+0
| | | | to be unable to find a match in Path_FindFile().
* We should distinguish between a real truncated case and EOF afterdelphij2009-11-161-3/+14
| | | | | | | | | | | BZ_STREAM_END triggered re-init. Do it by introducing a new flag to represent the 'cold' case after bzip2 state is reinitialized. This fixes regression reported on -current@ as well as another one I found during twiddling with gzip. Reported by: swell.k gmail.com MFC after: 1 week
* Update malloc utrace structure parsing to reflect the change (r199265)cperciva2009-11-141-11/+8
| | | | | | | | in how malloc_init is logged from (0, 0, 0) to (-1, 0, 0). While we're here, simplify the logic. Reviewed by: jhb (earlier version)
* Use ncursesw to output the date field of vmstat displayume2009-11-132-2/+2
| | | | with multi-byte string, correctly.
* Although the file has "ex:ts=4", do some " " -> \t translationsedwin2009-11-121-23/+23
| | | | so that it is also nicely readable with ts=8.
* Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 filesdelphij2009-11-091-5/+14
| | | | | | | as created by pbzip2. Submitted by: mrg (NetBSD.org) MFC after: 1 week
* Use a safety belt for cases where corrupted narg can be passed to theattilio2009-11-071-1/+1
| | | | | | | | | | | ktrsyscall(). print_number() does decrement the number of arguments, leading to infinite loops for negative values. Reported by: Patrick Lamaiziere <patpr at davenulle dot org>, Jonathan Pascal <jkpyvxmzsa at mailinator dot com> Submitted by: jh PR: bin/120055, kern/119564 MFC: 1 week
* Static'ify signal handler which is not called from outside.delphij2009-11-031-1/+1
|
* Use our canonical .Dd format.brueffer2009-11-021-1/+1
| | | | Submitted by: Ulrich Spoerlein
* When reading input from a file or device (via -f option) set themckusick2009-10-301-0/+1
| | | | | | input to be in non-buffering mode so that input lines are logged as they occur rather than being saved up until a buffer's worth of input has been logged.
* Add notes pointing out that bsdiff does not store file hashes andcperciva2009-10-302-0/+40
| | | | | | | | | bspatch thus does not verify file hashes, and that consequently it is recommended that users store hashes separately and verify files before and after running bspatch. Requested by: BugMagnet MFC after: 1 week
* When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU countsjhb2009-10-291-0/+81
| | | | | | | | and sum them to form the total counts. PR: bin/135893 Submitted by: Mikolaj Golub to my trociny of gmail MFC after: 1 week
* Reset UPTODATE gnodes after remaking makefiles when makefjoe2009-10-181-15/+21
| | | | | is not going to be restarted: such nodes could be marked UPTODATE without doing rebuild due to remakingMakefiles being TRUE.
* Exit with non-zero error code in case of errorsfjoe2009-10-181-0/+2
| | | | when make is run with -k and not parallel (compat) make is run.
* - If lstat()/stat() fails with an error other than ENOENT, don't ignorejh2009-10-161-4/+11
| | | | | | | | | | | | | | | the error and assume that the file doesn't exist. Touch could return success with -c option even if the file existed and time was not set. - If the first utimes_f() call fails with -A option, give up and don't continue trying to set times to current time. [1] - Set exit status to 1 when setting of timestamps fails for a directory or symbolic link even though lstat()/stat() would succeed. - Don't print bogus error message when rw() succeeds. PR: bin/112213 Submitted by: jilles [1] Reviewed by: jilles Approved by: trasz (mentor)
* Print routing statistics as unsigned short rather than unsigned int,rwatson2009-10-151-5/+5
| | | | | | | | otherwise sign extension leads to unlikely values when in the negative range of the signed short structure fields that hold the statistics. The type used to hold routing statistics is arguably also incorrect. MFC after: 3 days
* - Catch SIGHUP to perform cleanup before exiting.jh2009-10-112-4/+8
| | | | | | | | | | | | | | | | - Exit if getch() returns with an error other than EINTR. Otherwise systat(1) may get stuck in an infinite loop if it doesn't receive SIGHUP when terminal closes. [1] - Remove attempt to clear stdio error indicators. getch() doesn't use stdio, making it useless. [2] - Remove unneeded masking of getch() return value. [2] PR: bin/107171 Reviewed by: bde Approved by: trasz (mentor) Obtained from: OpenBSD [1] Suggested by: bde [2] MFC after: 1 month
* Add the comment "(FreeBSD only)" to the altmonth_x keywordsedwin2009-10-071-12/+12
| | | | MFC after: 1 week
* Belatedly add my calendar entry.bcr2009-10-051-0/+1
| | | | | Discussed with: remko Approved by: remko, jkois (mentor)
* netstat(1) support for UNIX SOCK_SEQPACKET sockets -- changes were requiredrwatson2009-10-053-7/+26
| | | | | | | only for the kvm case, as we supported SOCK_SEQPACKET via sysctl already. Sponsored by: Google MFC after: 3 months
* Backout changes for c_fmt, x_fmt and X_fmt, they were coming fromedwin2009-10-051-3/+0
| | | | the wrong patches. Apologies.
* Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's.edwin2009-10-052-8/+40
| | | | | | Also modify the "-k list" option to display only fields with a certain prefix. MFC after: 1 week
* The 6bone was decommissioned on 6/6/06, so remove references to it.dougb2009-10-032-19/+8
|
* Use %zu for size_t, not %zd.emaste2009-09-231-3/+3
| | | | | Submitted by: ru MFC after: 1 week
* In netstat -x, do not try to print out tcp timer status for udp sockets.silby2009-09-231-8/+10
|
* Update find(1) man page for -L/-delete interaction.jilles2009-09-201-1/+2
| | | | | | | | | It is a bit unfortunate that the example to delete broken symlinks now uses rm(1), but allowing this with -delete would require fixing fts(3) to not imply FTS_NOCHDIR if FTS_LOGICAL is given (or hacks in the -delete option). PR: bin/90687 MFC after: 2 weeks
* IEEE Std 1003.1, 2004 Edition states:dds2009-09-201-2/+1
| | | | | | | | | | | | | "The escape sequence '\n' shall match a <newline> embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X
* Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementationdds2009-09-201-9/+12
| | | | | | | | | | | of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X
* Allow [ to be used as a delimiter.dds2009-09-201-1/+1
| | | | | Pointed by: Marius Strobl Obtained from: Apple
* Add the ability to see TCP timers via netstat -x. This can be a usefulsilby2009-09-162-7/+20
| | | | | | | | | feature when you have a seemingly stuck socket and want to figure out why it has not been closed yet. No plans to MFC this, as it changes the netstat sysctl ABI. Reviewed by: andre, rwatson, Eric Van Gyzen
* Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups.rdivacky2009-09-082-42/+265
| | | | | | Obtained from: NetBSD Approved by: des (maintainer) Approved by: ed (mentor, implicit)
* Constify format string pointer, otherwise this would trigger warning whendelphij2009-09-081-1/+1
| | | | higher warning level is enabled.
* Make sure to use up-to-date libarchive header files from source tree whenpjd2009-09-071-1/+1
| | | | | | | compiling tar and not the ones from /usr/include/. Reviewed by: kientzle Approved by: kientzle
* Add NFSv4 ACL support to find(1).trasz2009-09-041-25/+35
| | | | Reviewed by: rwatson
* Remove single occurance of HAS_CTYPE ifdef, ctype functionsache2009-09-041-1/+1
| | | | used here for a long time and needs their header in anycase.
* Add ARP statistics to the kernel and netstat.gnn2009-09-033-0/+47
| | | | | | | | | | | | | | | | | | New counters now exist for: requests sent replies sent requests received replies received packets received total packets dropped due to no ARP entry entrys timed out Duplicate IPs seen The new statistics are seen in the netstat command when it is given the -s command line switch. MFC after: 2 weeks In collaboration with: bz
* Fix the problem that the entry broke into two lines with multi-byteume2009-08-303-12/+24
| | | | | | AM/PM format. Reported by: takawata
* Don't try to mmap the contents of empty files. This behaviour was harmlesscperciva2009-08-261-0/+4
| | | | | | | | | | | prior to r195693, since historical behaviour of mmap(2) was to silently ignore length-zero mmap requests; but mmap now returns EINVAL, which caused look(1) to emit an error message and fail. Among other things, this makes `freebsd-update fetch` on a newly installed 8.0-BETA3 system print bogus warning messages. MFC after: 3 days
* fstat: fix fsid comparison when executed on systems with 64-bit longavg2009-08-202-2/+2
| | | | | | | | | | | | | | | | | | | | | This affects only fstat on zfs and devfs, only on 64-bit systems and only when fsid is greater than 2^31 - 1. When fstat examines a file via stat(2) it takes uint32_t st_dev and assigns to (signed) (64-bit) long fsid, this results in a positive value. When fstat examines opened files it takes int32_t f_fsid.val[0] and assigns to (signed) (64-bit) long fsid, this results in a negative value. So, while initially st_dev and f_fsid.val[0] have the same bit values they get promoted to different 64-bit values because of the signed-vs-unsigned difference. A fix is to use "more natural" positive numbers by introducing intermediate unsigned cast for f_fsid.val[0]. Reviewed by: jhb, lulf Approved by: re (kib) MFC after: 1 week (to stable/7)
* Add my birthdayfluffy2009-08-151-0/+1
| | | | Approved by: re (rwatson) miwi (mentor)
* Update procstat(1) for the fact that devfs paths are no longer unsupported.rwatson2009-08-121-4/+2
| | | | Approved by: re (kib)
* Correct a stack underflow in gzip:delphij2009-07-311-1/+5
| | | | | | | | | | | | | | - Limit suffix to be no more than 30 bytes long. This matches GNU behavior. - Correct usage of memcpy(). Note that this commit only corrects the stack underflow issue, we still need some other fixes to cover other edges. [1] Reported by: Ron Jude <ronj wytheville org> Discussed with: Matthew Green (original NetBSD gzip author), Eygene Ryabinkin <rea-fbsd codelabs ru> [1] Approved by: re (kib)
* Update less to v436. This is considered as a bugfix release from vendor.delphij2009-07-291-4/+5
| | | | | | | | | | Major changes from v429: * Don't pass "-" to non-pipe LESSOPEN unless it starts with "-". * Allow a fraction as the argument to the -# (--shift) option. * Fix highlight bug when underlined/overstruck text matches at end of line. * Fix non-regex searches with ctrl-R. Approved by: re (kensmith, kib)
* Introduce a new sysctl process mib, kern.proc.groups which adds thebrooks2009-07-241-2/+40
| | | | | | | | | | | | ability to retrieve the group list of each process. Modify procstat's -s option to query this mib when the kinfo_proc reports that the field has been truncated. If the mib does not exist, fall back to the truncated list. Reviewed by: rwatson Approved by: re (kib) MFC after: 2 weeks
* Add a new type of VM object: OBJT_SG. An OBJT_SG object is very similar tojhb2009-07-241-0/+3
| | | | | | | | | | | a device pager (OBJT_DEVICE) object in that it uses fictitious pages to provide aliases to other memory addresses. The primary difference is that it uses an sglist(9) to determine the physical addresses for a given offset into the object instead of invoking the d_mmap() method in a device driver. Reviewed by: alc Approved by: re (kensmith) MFC after: 2 weeks
* Move the check to ensure the locate database has the minimum required sizejhb2009-07-242-3/+2
| | | | | | | | | | when using mmap() before invoking mmap(). This avoids a confusing error message when locate is invoked against a zero-size database after the recent change to make mmap() fail requests to map 0 bytes. Submitted by: Jaakko Heinonen jh of saunalahti dot fi Approved by: re (kensmith) MFC after: 1 week
* - Add my birthdayyzlin2009-07-211-0/+1
| | | | | | - Add myself to ports committers and to lwhsu's mentee list Approved by: re (kib), lwhsu (mentor)
* Remove no longer needed #include after removing the legacybz2009-07-181-1/+0
| | | | | | | vimage API in r195741. Reviewed by: rwatson Approved by: re (kib)
* Make mklocale work again, now that fwrite()'s return codes are different.ed2009-07-141-2/+2
| | | | | Submitted by: Navdeep Parhar <nparhar gmail com> Approved by: re (kib)
OpenPOWER on IntegriCloud