summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r208320jkim2010-05-251-2/+6
| | | | | | | | | | | | Add a new build option, MAN_UTILS. This option lets you control building utilities and related support files for manual pages, which were previously controlled by MAN. For POLA, the default depends on MAN, i.e., WITHOUT_MAN implies WITHOUT_MAN_UTILS and WITH_MAN implies WITH_MAN_UTILS. Note this patch implicitly fixes a documentation bug of src.conf(5), which says WITHOUT_MAN may be used to not build manual pages while it was also disabling some utilities for manual pages. Approved by: re (kib)
* MFC: r197362marius2010-05-211-2/+1
| | | | | | | | | | | | | | | IEEE Std 1003.1, 2004 Edition states: "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
* MFC: r197361marius2010-05-211-9/+12
| | | | | | | | | | | | Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation 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
* MFC: r197356marius2010-05-211-1/+1
| | | | | | | Allow [ to be used as a delimiter. Pointed by: Marius Strobl Obtained from: Apple
* MFC r207733:delphij2010-05-201-0/+1
| | | | Plug memory leak.
* MFC r207842, r207844, r208099:mm2010-05-186-1/+112
| | | | | | | | | | | | | | | | MFC r207842: Import of liblzma, xz, xzdec, lzmainfo from vendor branch Add support for xz and lzma to lesspipe.sh (xzless, lzless) MFC r207844: Add two public headers missing in r207842 Adjust CFLAGS for lzmainfo, xz, xzdec MFC r208099: Add versioned symbols to liblzma Use default SHLIB_MAJOR. Approved by: delphij (mentor)
* MFC r208089:dougb2010-05-181-1/+0
| | | | Remove duplicate
* MFC r207453:ed2010-05-141-15/+9
| | | | | | | | | | | | | | | Remove WNOHANG flag from wait3(). Because script(1) now reliably terminates when the TTY is closed, it may be the case that the call to wait3() occurs just before the child process exits. This causes error codes to be ignored. Just change script(1) to use waitpid() instead of wait3(). This makes it more portable and prevents the need for a loop, since waitpid() only returns a specified process. PR: bin/146189 Tested by: amdmi3@, older version
* MFC r207247,r207283,207284:delphij2010-05-102-7/+24
| | | | | | | - Add a signal handler for SIGINT which removes output file when necessary. - While I'm there, move unlink_input() slightly down to after closing the output file, in uncompression path. - Language improvements to make the BUGS section easier to read.
* MFC r207485: pathchk(1): Fix the example so it allows arbitrary pathnames.jilles2010-05-091-1/+1
| | | | | | | | Spaces and various other characters in pathnames are not passed through literally by xargs in its default mode. Instead, use find . -exec ... {} + Although the -- argument is not strictly required here, add it anyway to avoid surprises when modifying the code to find -f -somedir ...
* MFC r207483: pathchk: Add the new POSIX -P option.jilles2010-05-092-6/+26
| | | | | This option checks for empty pathnames and components starting with '-'. Our -p option also checks for the latter, which remains the case.
* Merge r205386 from head:gavin2010-05-051-2/+2
| | | | Fix command example, presumed leftovers of old markup.
* MFC r196981, r200844, r201630, r203977, r203978, r204352:delphij2010-05-043-73/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r196981 (rdivacky): Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups. Obtained from: NetBSD r200844 (jh): Don't print the archive name with -p and -q options. PR: bin/141280 r201630 (kientzle): When restoring files, use the mode for the mode. Thanks to: Jun Kuriyama for pointing this out r203977 (gavin): Implement the rename query, for when a file with the same name as the one 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 r203978 (gavin): Bump .Dd for r203977 r204352 (ru): Fixed static linkage. == Requested by: Alex Kozlov <spam rm-rf kiev ua>
* MFC r207153: stat: Allow -f %Sf to display the file flags symbolically.jilles2010-05-012-3/+33
| | | | PR: 124349
* MFC r206687: indent(1): don't treat bare '_t' as a type name with -taavg2010-04-221-2/+3
|
* MFC r205874: make sockstat -6 output more readable for long ipv6maxim2010-04-211-0/+2
| | | | addresses.
* MFC r205472:delphij2010-04-201-2/+6
| | | | Enable mmap for minigzip(1).
* MFC r206387:delphij2010-04-203-13/+14
| | | | | | Diff reduction against NetBSD and add myself to AUTHORS section of the manual page as I wrote the unpack functionality. No actual executable code change verified with md5(1).
* MFC r205853:trasz2010-04-131-0/+1
| | | | Add myself.
* MFC: 205992imp2010-04-132-3/+8
| | | | | | | Make -r mean exactly the same thing as -E for increased compatibility with GNU sed. MFC after: 7 days
* MFC r205989: indent(1): new option, -ta, to treat all *_t identifiers as typesavg2010-04-124-0/+19
|
* MFC r205988: indent(1): correctly handle case/label at the very start of a ↵avg2010-04-071-1/+1
| | | | function
* MFC r205854: calendar.freebsd: add my entryavg2010-04-021-0/+1
|
* Merge r205082, r205083 that fix 'netstat -f netgraph' functionality.glebius2010-04-021-3/+3
|
* MFC r205702:delphij2010-03-291-2/+0
| | | | | | | | | | | Remove GNU cpio after fix of CVE-2010-0624. Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained.
* MFC r198175:jh2010-03-281-4/+11
| | | | | | | | | | | | | - If lstat()/stat() fails with an error other than ENOENT, don't ignore 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
* 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
|
OpenPOWER on IntegriCloud