summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-introduce the new BSDLed 'ar' to the build.obrien2008-02-223-2/+19
| | | | | | It is installed as "bsdar" unless WANT_BSDAR is defined. Discussed with: kaiw
* Fix static linkage.ru2008-02-211-2/+2
|
* Back out previous commit. Restore Binutils ar as default. Disconnectkaiw2008-02-211-4/+0
| | | | | | 'BSD' ar to the build. Requested by: des
* * Connect ar(1) to the build and make it default ar. Rename GNUkaiw2008-02-211-0/+4
| | | | | | | | | | | | binutils ar and ranlib to gar and granlib, respectively. * Introduce a temporary variable WITH_GNUAR as a safety net. When buildworld with -DWITH_GNUAR, GNU binutils ar and ranlib will install as default ones and 'BSD' ar will be disabled. * Bump __FreeBSD_version to reflect the import of 'BSD' ar(1). Approved by: jkoshy (mentor)
* Import ar(1) front-end. (aka 'BSD' ar)kaiw2008-02-217-0/+1989
| | | | | | | | | | | | | | | | | | Reviewed by: jkoshy Approved by: jkoshy (mentor) Tested by: erwin (ports build test on pointyhat) Sponsored by: Google Summer of Code 2007 Reviewed by (earlier version): Jaakko Heinonen <jh[AT]saunalahti.fi> Tested by (earlier version): Steve Kargl <sgk[AT]troutmask.apl.washington.edu> Tested by (earlier version): Martin Voros <martin_voros[AT]yahoo.com> Tested by (earlier version): swell.k[AT]gmail.com Tested by (earlier version): joel Tested by (earlier version): Alexey Shuvaev <shuvaev[AT]physik.uni-wuerzburg.de> Tested by (earlier version): Arjan van Leeuwen <avleeuwen[AT]gmail.com> Thanks to gabor@ for building ports for it. Thanks to erwin@ and kris@ for scheduling the ports build test on pointyhat. And thanks to many others for their feedback.
* getopt(3) returns -1, not EOF.ru2008-02-191-1/+1
|
* Allow appending to archives on block devices as well askientzle2008-02-191-1/+1
| | | | | | archives in regular files, since both are seekable. Thanks to: Reinoud Zandijk (@netbsd.org)
* remove Vette Dinsdag. It was on the wrong day of the week, and not really a ↵edwin2008-02-181-1/+1
| | | | | | term I'm familiar with. Of course this can happen since naming of events and happenings during Carnaval are very localized Approved by: grog@
* Make the human readable numbers printed with the -h option a bitmpp2008-02-181-4/+6
| | | | | | | | more human readable by telling the human print routines to use a smaller buffer to format the value. This makes it so a value that was previously being printed as 600000K will now print as 586M.
* Make netstat -rn more resilient to having the routing table change out fromjhb2008-02-141-19/+43
| | | | | | | | | | | under it while running. Note that this is still not perfect: - Try to do something intelligent if kvm_read() fails to read a routing table structure such as an rtentry, radix_node, or ifnet. - Don't follow left and right node pointers in radix_nodes unless RNF_ACTIVE is set in rn_flags. This avoids walking through freed radix_nodes. MFC after: 1 week
* Change another argument and a variable both related to netname() tomarius2008-02-111-3/+3
| | | | | | be also 32-bit on all archs. MFC after: 3 days
* Fix a few obvious errors in the znew(1) script.yar2008-02-091-4/+3
| | | | | PR: bin/120249 Submitted by: Jaakko Heinonen <see the PR for email>
* WARNS fixes:dwmalone2008-02-094-10/+12
| | | | | | | | | | 1) Add missing parens around assignment that is compared to zero. 2) Make some variables that only take non-negative values unsigned. 3) Some casts/type changes to fix other constness warnings. 4) Make one variable a const char *. 5) Make sure termwidth is positive, it doesn't make sense for it to be negative. Approved by: dds
* Add support for displaying a process' current working directory, rootmarcus2008-02-091-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | directory, and jail directory within procstat. While this functionality is available already in fstat, encapsulating it in the kern.proc.filedesc sysctl makes it accessible without using kvm and thus without needing elevated permissions. The new procstat output looks like: PID COMM FD T V FLAGS REF OFFSET PRO NAME 76792 tcsh cwd v d -------- - - - /usr/src 76792 tcsh root v d -------- - - - / 76792 tcsh 15 v c rw------ 16 9130 - - 76792 tcsh 16 v c rw------ 16 9130 - - 76792 tcsh 17 v c rw------ 16 9130 - - 76792 tcsh 18 v c rw------ 16 9130 - - 76792 tcsh 19 v c rw------ 16 9130 - - I am also bumping __FreeBSD_version for this as this new feature will be used in at least one port. Reviewed by: rwatson Approved by: rwatson
* Fix truncation of lines at LINE_MAX characters by dynamicallyghelmer2008-02-081-15/+61
| | | | | | extending line buffers. PR: bin/76578
* WARNS fixes: mainly constness and avoid comparing signed withdwmalone2008-02-086-14/+19
| | | | | unsigned by making array indicies unsigned. Also note one or two unused parameters.
* WARNS fixes: remove two unused variables and add some constness.dwmalone2008-02-081-4/+3
|
* Fix netname() [1] and routename() on big-endian LP64 archs.marius2008-02-072-8/+7
| | | | | Submitted by: Yuri Pankov [1] MFC after: 3 days
* Add my birthday.antoine2008-02-051-0/+1
| | | | Approved by: rwatson (mentor)
* Minor style(9) nit.obrien2008-02-051-1/+1
|
* Revert CLEANDEPFILES commit per ru@'s request; it does not really solvedes2008-02-052-4/+2
| | | | the problem. The correct fix will follow.
* Normally, when a header file is removed from the build (as i4b headersdes2008-02-032-3/+5
| | | | | | | | | | | | | | | | | | | | were recently), a simple 'make cleandepend; make depend' is sufficient to keep the tree buildable after a cvs update when doing incremental builds. However, kdump and truss use a script which searches for header files that define ioctls, and generates C code that includes them. This script will usually not need updating when a header file is removed, so the normal dependency mechanism will not realize that it needs to be re-run. One is therefore left with code that references dead files but will only be removed by a full 'make clean', which defeats the purpose of incremental builds. To work around this, modify the cleandepend target in bsd.dep.mk to also remove any files listed in a new variable named CLEANDEPFILES, and modify kdump's and truss's Makefiles accordingly. MFC after: 2 weeks
* These are files are shell scripts; give smart editors a chance to figuredes2008-02-032-8/+12
| | | | | | it out by adding the usual shebang. MFC after: 2 weeks
* Christos decided to keep the manpages in mdoc(7) format,ru2008-01-303-1032/+12
| | | | so stop using our own versions of these.
* Use calloc() when requesting zero'ed memory allocation rather than rollingdelphij2008-01-291-8/+4
| | | | our own.
* Revive '-opt' flags which I accidentally removed.keramida2008-01-271-1/+1
| | | | Noticed by: simon
* Document the no-op -r option of BSD xargs(1).keramida2008-01-261-2/+30
| | | | | | PR: docs/106416 Submitted by: Pete Slagle, freebsd-stable at voidcaptain.com MFC after: 3 days
* Flag a hack.ru2008-01-241-1/+2
|
* Style.ru2008-01-241-2/+2
|
* Make -l always have the SUSv2 meaning of "check links."kientzle2008-01-222-30/+11
| | | | | | | | GNU tar changed -l to match SUSv2 a couple of years ago, so bsdtar no longer needs to pander to this particular GNUism. Thanks to: Debian maintainers MFC after: 7 days
* Understand newly introduced "ASCII" encodingache2008-01-222-0/+3
|
* Note what options are only for DDS drives.trhodes2008-01-211-4/+4
| | | | PR: 35608
* When printing process file descriptor lists, show a type of 'h' forrwatson2008-01-201-0/+4
| | | | POSIX shared memory descriptors.
* Fix some boolean logic errors. && vs & and other sillyness. *blush*peter2008-01-181-3/+3
| | | | | | This would prevent it from skipping non-present cpus in -P output. Submitted by: Pieter de Goeje <pieter@degoeje.nl>
* Add a -P flag to display per-cpu cpu usage stats.peter2008-01-181-5/+95
|
* ANSIfy and remove register.delphij2008-01-1618-169/+99
| | | | Resulting binary verified with strip(1)+md5(1).
* Fix some bugs in wall(1):das2008-01-151-6/+13
| | | | | | | | | | - Handle wrapping correctly when \r appears in the input, and don't remove the \r from the output. - For lines longer than 79 characters, don't drop every 80th character. - Style: Braces around compound while statement. PR: 114498 Submitted by: Niclas Zeising <niclas.zeising@gmail.com> (earlier version)
* Update for the 'file' 4.23 import.obrien2008-01-131-4/+23
|
* - Handle the case where interface from "middle" is missing bydelphij2008-01-121-4/+4
| | | | | | | | | more carefully inspecting the return value from sysctl(3). [1] - Use calloc instead of malloc+memset of zero. Submitted by: Alexander Chernikov <admin su29 net> [1] PR: bin/119581 MFC after: 2 weeks
* Add IFT_BRIDGE to the Ethernet section so l2 addresses are formatted correctly.thompsa2008-01-101-0/+1
| | | | | PR: bin/119542 Submitted by: Niki Denev
* quiet compiler complaint about unused parameterssam2008-01-101-2/+2
|
* Improve -u (limit uid lookups) behavior.obrien2008-01-091-2/+8
| | | | | Submitted by: David Frascone <dave@frascone.com> PR: 119490
* Welcome unzip(1), a pure BSD drop-in replacement for ports/unzip. In itsdes2008-01-083-0/+920
| | | | | | | | | | | | current state, it can handle all but four of the 991 zip files (including jar files) I was able to identify in the ports tree. The remaining four are two self-extracting archives and two which have garbage preceding the first local header. This limitation is a feature of libarchive(3) which I am currently working to resolve. The code is unnecessarily large due to the need to emulate the exact command-line syntax and behaviour of ports/unzip. My initial incompatible implementation was one quarter the size of the one I am committing here.
* Only use sockoptname() to parse socket option names for SOL_SOCKETjhb2008-01-071-4/+6
| | | | | | | requests. MFC after: 3 days Reported by: Michiel Boland michiel boland.org
* Make a few messages more consistant with the others.obrien2008-01-041-2/+2
|
* more style(9)obrien2008-01-041-69/+70
|
* The break() system call takes a pointer argument, not an integer. Thisjasone2008-01-031-1/+1
| | | | change fixes output for break() on LP64 systems.
* style(9)obrien2008-01-0218-256/+251
| | | | | | | + kread is not a boolean, so check it as such + fix $FreeBSD$ Ids + denote copyrights with /*- + misc whitespace changes.
* Remove the old bsdtar test scripts; something muchkientzle2008-01-028-859/+0
| | | | better is almost ready to commit.
* A couple of miscellaneous fixes:kientzle2008-01-023-4/+18
| | | | | | | | * prototypes for optarg/optind on platforms that don't already have them * Disambiguate version number macros * Remove unnecessary PACKAGE_NAME macro * Hook for forthcoming bsdtar test suite * Sync version number up with the portable distribution
OpenPOWER on IntegriCloud