summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r205008 and 205009:ed2010-03-251-0/+1
| | | | | | | | | | Make script(1) a little less broken. 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 r204879:kib2010-03-225-8/+223
| | | | | | | | Teach procstat(1) to display some information about signal disposition and pending/blocked status for signals. MFC r204880: Add file forgotten in r204879.
* Merge r203865 from head:gavin2010-03-171-0/+2
| | | | | | | | The -newerXB option was being interpreted the same as the -newerXm option as a check for F_TIME2_B was missing. Fix this. PR: bin/138245 Submitted by: "David E. Cross" <crossd cs.rpi.edu>
* MFC r204872: Pass the correct size to memset().jh2010-03-151-1/+1
| | | | PR: bin/128094
* (r205011) The "number" argument is everything but optional.joerg2010-03-121-1/+1
|
* Merge r204053 from head:gavin2010-03-102-4/+4
| | | | | | | | The correct value of DEL is 0x7f, not 0xff. This is purely a documentation issue - od(1) and hexdump(1) behave as expected. PR: docs/143869 Submitted by: gcooper
* MFC r203551:jh2010-02-211-16/+19
| | | | | | | | | - Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with printf. - Cast the system call return value to long and use %ld in a printf in ktrsysret(). PR: bin/123774
* MFC r203688:brucec2010-02-181-1/+2
| | | | | | | | Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the -M option to be used without specifying -N. PR: bin/138146 Approved by: rrs (mentor)
* MFC r202060:delphij2010-02-104-3/+18
| | | | | | | | Add a new option, -q howmany, which when used in conjuction with -w, exits netstat after _howmany_ outputs. Requested by: thomasa Reviewed by: freebsd-net (bms, old version in early 2007)
* MFC r200781:jh2010-02-081-5/+5
| | | | Cast time_t values to intmax_t and use %jd with printf.
* MFC r200780:jh2010-02-083-26/+8
| | | | | | | | | Remove non-working special case for pipe(2) from amd64-fbsd32.c and i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer argument properly and re-add special handling for pipe(2) return value to print_syscall_ret(). PR: bin/120870
* MFC r200752:jh2010-02-081-0/+6
| | | | | | | Avoid sharing the file descriptor of the output file with traced processes by setting the FD_CLOEXEC flag for the output file. PR: bin/140493
* MFC r200751:jh2010-02-081-0/+12
| | | | | | Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2), getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to decode their arguments correctly.
* MFC r200632:jh2010-02-061-5/+1
| | | | | The input line length limit mentioned on the manual page was removed by r176119.
* MFC r200441:jh2010-02-061-5/+1
| | | | | The input line length limit mentioned on the manual page was removed by r179374.
* MFC r196839:trasz2010-01-301-25/+35
| | | | Add NFSv4 ACL support to find(1).
* MFC r196797:gnn2010-01-283-0/+47
| | | | Add ARP statistics to the kernel and netstat.
* - MFC r197788, r203040, r203045, r203048avilla2010-01-271-0/+4
| | | | Approved by: tabthorpe (mentor)
* Merge r200318 from head: add myself to calendar.freebsd.gavin2010-01-271-0/+1
|
* Merge scandir(3) interface update to stable/8.kib2010-01-242-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r201512: Modernize scandir(3) and alphasort(3) interfaces according to the IEEE Std 1003.1-2008. MFC r201602: Move scandir(3) and alphasort(3) into XSI namespace. MFC r201604: Use thunks to adapt alphasort-like interface to the comparision function required by qsort() and qsort_r(). MFC r202556 (by ache): Use strcoll() in opendir() and alphasort(). Remove some comments. MFC r202572 (by ache): Revert to using strcmp() for opendir(). MFC r202677 (by ache): Style. MFC r202679 (by ache): Style: rename internal function to opendir_compar(). MFC r202691 (by ache): For alphasort(3) add reference to strcoll(3). MFC r202693 (by ache): Style: reword comment.
* MFC r201350:brooks2010-01-221-1/+1
| | | | | | | | The devices that supported EVFILT_NETDEV kqueue filters were removed in r195175. Remove all definitions, documentation, and usage. The change of function signature for vlan_link_state() was not merged to maintain the ABI.
* MFC of 202280, 202281edwin2010-01-212-12/+7
| | | | | | | | | | | - Remove -d option, whois.nic.mil doesn't exist anymore. - Make whois capable of searching for IPv6 addresses just like it can do for IPv4 addresses without having to explicetly specify that the ARIN server should be used to get the initial information. PR: bin/142507, bin/128725 Submitted by: Dan Mahoney <danm@prime.gushi.org>, "Matt D. Harris" <mdh_lists@yahoo.com>
* Merge r201429:gavin2010-01-171-2/+6
| | | | | | | | | Fix return code in the case of successful file transfer, broken in tftp.c 1.13 PR: bin/117452 Submitted by: Spencer Minear minear securecomputing.com Approved by: ed (mentor, implicit)
* Update to a 26-Nov-2009 release.ru2010-01-154-146/+2
|
* MFC r201290: Treat an empty argument as an error, instead ofru2010-01-061-0/+5
| | | | fetching the contents of the root directory.
* MFC r200793:delphij2010-01-041-0/+1
| | | | | | | Plug a memory leak. PR: bin/141836 Submitted by: Henning Petersen <henning.petersen at t-online.de>
* MFC of r200650, r200624edwin2009-12-242-16/+20
| | | | | Add Australian, New Zealand and Ukraian calendars to the "all" target". Nationalise Easter -> Pasen in calendar.dutch
* MFC r199805:attilio2009-12-194-198/+185
| | | | | | | | | | | | | | Change gcore in order to get rid of the procfs support and use FreeBSD's specific interfaces. Main changes: - now gcore recognizes threads within the the process and handle dumps on a thread scope - the process to be analyzed should be stopped while gcore runs - gcore may not work with processes that are being debugged with gdb or truss - ptrace may let interruptible calls to return EINTR, thus dirtying signals handling within the process Sponsored by: Sandvine Incorporated
* MFC r199803:attilio2009-12-191-4/+13
| | | | | | | Add the possibility to show informations about dropped packets on the input path when showing interfaces informations. Sponsored by: Sandvine Incorporated
* MFC of r199642edwin2009-12-061-0/+2
| | | | | | | | The output of perror(1) is now showing local messages for locales supported by libc/nls PR: bin/140499 Approved by: gnn@
* MFC r199946:bz2009-12-051-0/+10
| | | | | | | | | | | | Add more statistics variables for IPcomp. Try to version the struct in a backward compatible way. People asked for the versioning of the stats structs in general before. Note: old netstat binaries, as only consumer, continue to work as they are still using kvm but will not display the new stats. [1] Discussed with: rwatson [1]
* MFC r199066 + 199339:delphij2009-12-021-8/+28
| | | | | Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 files as created by pbzip2.
* MFC 199813, 199817, 199842, 199867:fanf2009-12-023-137/+315
| | | | Update unifdef to latest upstream version.
* MFC r199242: Use ncursesw to output the date field of vmstatume2009-11-222-2/+2
| | | | display with multi-byte string, correctly.
* MFC r199024:attilio2009-11-221-1/+1
| | | | | Use a safety belt for cases where corrupted narg can be passed to the ktrsyscall().
* MFC r197956:jh2009-11-152-4/+8
| | | | | | | | | | | | | - Catch SIGHUP to perform cleanup before exiting. - 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. - Remove attempt to clear stdio error indicators. getch() doesn't use stdio, making it useless. - Remove unneeded masking of getch() return value. PR: bin/107171 Approved by: trasz (mentor)
* MFC 198620:jhb2009-11-061-0/+81
| | | | | When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU counts and sum them to form the total counts.
* MFC r197437:emaste2009-11-051-3/+3
| | | | Use %zu for size_t, not %zd.
* MFCs of r197764, r197765, r197766, r197847:edwin2009-10-312-8/+37
| | | | | | | | Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's. Also modify the "-k list" option to display only fields with a certain prefix. Add the comment "(FreeBSD only)" to the altmonth_x keywords
* MFC r197363: Update find(1) man page for -L/-delete interaction.jilles2009-10-291-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
* Merge r198118 from head to stable/8:rwatson2009-10-181-5/+5
| | | | | | | | | Print routing statistics as unsigned short rather than unsigned int, 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. Approved by: re (bz)
* MFC r197725:dougb2009-10-062-19/+8
| | | | | | The 6bone was decommissioned on 6/6/06, so remove references to it. Approved by: re (kib)
* MFC r196652: Fix the problem that the entry broke into two linesume2009-09-133-12/+24
| | | | | | with multi-byte AM/PM date format. Approved by: re (kib)
* MFC r196558: Don't try to mmap the contents of empty files. This behaviourcperciva2009-08-311-0/+4
| | | | | | | | | | was harmless prior to r195693, when mmap(2) changed from silently ignoring requests for mapping zero bytes to returning EINVAL; this commit can be seen as adjusting for the change in mmap(2) in order to make look(1) act like it did previously. Reviewed by: jhb Approved by: re (kib)
* MFC 196399: 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)
* MFC calendar.freebsdfluffy2009-08-151-0/+1
| | | | Approved by: re (rwatson) miwi (mentor)
* Merge r196120 from head to stable/8:rwatson2009-08-131-4/+2
| | | | | | Update procstat(1) for the fact that devfs paths are no longer unsupported. 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
OpenPOWER on IntegriCloud