summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Don't segv when trying to add a 0-length unit name.kris2000-07-311-21/+20
| | | | | | Some string-related cleanups inspired by OpenBSD. Reviewed by: asmodai
* Don't coredump on long input lines. If anyone actually cares, this shouldkris2000-07-311-1/+1
| | | | | | be fixed to actually process long lines instead of truncating them. Obtained from: OpenBSD
* Make passing unknown fstypes to -fstype result in a warning instead ofeivind2000-07-281-2/+16
| | | | | | an error. As it was, which find command lines that would work (be accepted at all) was dependent on the presently running kernel, making script writing and porting hard.
* Do include <unistd.h> for getopt interface.imp2000-07-281-2/+1
| | | | Don't extern it.
* Fix bug: "netstat -si" prints interface information, but the headerjdp2000-07-281-1/+1
| | | | | | | line is missing. This apparently was broken in revision 1.31 of "if.c". Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Let wall report the local timezone as well on output.asmodai2000-07-271-2/+2
| | | | | | PR: 17867 Submitted by: Joel Ray Holveck <joelh@gnu.org> Nagged by: nrahlstr
* Restore the old semantics of deleting the output file when interrupted.des2000-07-261-2/+4
| | | | Some people liked this and some didn't, so POLA won.
* Fix a bug introduced in rev 1.8, where special files ended upsheldonh2000-07-251-1/+2
| | | | | | being treated like regular files because of missing braces. PR: 20143
* Avoid the need to capitalize an extraneous argument to the Nm macrosheldonh2000-07-241-5/+8
| | | | | | and be more precise about the handling of command-line arguments. Reviewed by: ps
* Simplify some conditionals.sheldonh2000-07-241-12/+10
|
* Shut an optimizing compiler up about possibly (but never) unusedsheldonh2000-07-241-0/+2
| | | | | | variables. Submitted by: charnier
* Typos and spelling fixes.ps2000-07-242-6/+9
| | | | Submitted by: charnier
* Start enumerate option with `The following options are available' likecharnier2000-07-242-21/+19
| | | | | | | most of the utilities. .Nm prog -> .Nm Remove unused include Make use of getopt() instead of parsing params by hand.
* truncate.c:sheldonh2000-07-242-4/+13
| | | | | | | | | | | Do not include unused header files. Add rcsid. Change copyright. truncate.1: Add AUTHORS section. Submitted by: charnier
* Close file descriptors after use so as not to abuse the descriptorsheldonh2000-07-231-0/+2
| | | | | | table when a long argument list is given. :-) Reported by: Sven Agnew <afterhours80@hotmail.com>
* Revert to 1.8. I misread the sentence and its context.chris2000-07-211-2/+1
|
* Properly document %.0f behavior.chris2000-07-211-1/+2
|
* Don't print summary in quiet mode.des2000-07-211-0/+3
|
* Add a STANDARDS section to discourage the use of this utilitysheldonh2000-07-211-0/+4
| | | | in environments where portability is a concern.
* Don't display a running count in quiet mode.des2000-07-211-2/+7
| | | | | Don't add the offset to the size; it's libfetch's job to report the correct size of the requested file.
* Fix buffer size of ALIGNed buffer.ume2000-07-201-2/+2
| | | | | PR: bin/20053 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
* Rename the ``name'' argument to ``item'' and mark it up as an argument.sheldonh2000-07-201-6/+9
| | | | | | | | Make use of the marked up argument to clarify the text in the DESCRIPTION section. Insert a missing word: ``the''. Make the phrase in the BUGS section a full sentence. Sort the cross-references in the SEE ALSO section correctly.
* Fix two bugs related to resumed transfers:des2000-07-191-20/+26
| | | | | | | | | | - if the dates didn't match, fetch would append the received file to the existing file instead of replacing it. - if the local file was complete and up-to-date, fetch would miscalculate the expected size and report a failure instead of a success, because it had no way of knowing that the server was actually resending the entire file since the requested offset was invalid.
* Braino: don't use passive mode unless the user requests it.des2000-07-191-1/+1
| | | | | PR: bin/20025 Submitted by: HIYAMA Takeshi <th@cis.ibaraki.ac.jp>
* Oops. fsync(8) should have been fsync(1). (repo-copied by peter)ps2000-07-192-3/+2
| | | | Change reference from update(4) to syncer(4).
* Add fsync(8). This becomes useful with the advent of MAP_NOSYNC etc.ps2000-07-194-0/+124
| | | | Reviewed by: peter
* * Remove description of obsolete -t option.ben2000-07-181-5/+2
| | | | | | * Insert newline before "and" in ".Fl c and". Approved by: des
* Convert calls to match new kqueue API.jlemon2000-07-181-5/+2
|
* Correct the attribution for yes(1).nik2000-07-181-1/+1
| | | | | PR: docs/19401 Submitted by: s.c.sprong@student.utwente.nl
* Cross-reference mount_nfs(8) and showmount(8).sheldonh2000-07-181-1/+2
| | | | | PR: 20008 Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* Import the new truncate(1) utility.sheldonh2000-07-184-0/+352
| | | | Approved by: jdp
* Allow logger to send messages directly to a remote syslog. (Thisdwmalone2000-07-182-8/+72
| | | | | | | | | only does IPv4 as our syslogd only does IPv4. I dunno if the KAME people have any plans for syslogd). PR: 19821 Submitted by: Nick Hilliard <nick@iol.ie> Reviewed by: sheldonh
* The description of the semantics of -v and -q has long since been OBE.des2000-07-171-10/+1
|
* While I'm at it, break a line that was too long, remove a pointless diagnosticdes2000-07-171-3/+3
| | | | and adjust the verbosity level of another.
* Document the fact that -r and -m are mutually exclusive.des2000-07-171-0/+10
|
* Rearrange / rewrite large portions of fetch() to take advantage of newdes2000-07-171-35/+84
| | | | | | | | | | | | | | | | | | | | | | libfetch features (fetchRestartCalls, fetchXGet()). Since it doesn't make much sense to have m_flag and r_flag set at the same time, and it can actually cause trouble in some cases, die if they're both set. Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can kill ourselves with a second SIGINT (thus notifying our parent of our tragic fate) instead of just exiting. These changes fix several problems that would show up when fetching ports, as well as speeding up HTTP transfers quite a bit (at least for relatively small files). Most of these changes were prompted by an interaction problem with an HTTP server called SWS-1.0, which exhibited two bugs, the first of which prevented fetch from working around the second (the first was not sending content-type in reply to HEAD requests, the second was sending garbage after the end of the requested file).
* Use pwd instead of cwd in backticks. cwd in backticks doesn't dosheldonh2000-07-171-2/+2
| | | | | | | anything useful in a Bourne shell. PR: 19980 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
* Better signal handling.des2000-07-161-11/+18
| | | | Submitted by: green
* Fix octal numbers parsingache2000-07-151-0/+3
| | | | | PR: 19950 Submitted by: Alexey Klimov <klim@unique.kiev.ua>
* Fix systat to use the kern.ipc.mbtypes sysctl instead of referencing aalfred2000-07-151-34/+44
| | | | | | | | | structure member that doesn't exist anymore. Use getsysctlbyname for kern.ipc.mbstat instead of sysctl. Use netstat's method of displaying values from mtnames. Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Missed by PR: 19809
* Make mbstat.m_mtypes seperate and viewable via sysctl, alsoalfred2000-07-151-25/+49
| | | | | | | expand the size from short to ulong Submitted by: Ian Dowse <iedowse@maths.tcd.ie> PR: kern/19809
* Add the -z flag to check file sizes firstbrian2000-07-142-5/+19
| | | | | | | Correct the cmp.1 usage message Correct the -l/-s incompatibility message Submitted by: Mark Knight <markk@knigma.org>
* ncurses -> termcapache2000-07-141-2/+2
|
* Upgrade to less v358.ps2000-07-141-0/+9
|
* Fix a bug in the stats display that showed up when resuming aborted transfers.des2000-07-131-2/+2
| | | | Submitted by: green
* Rework the stats code for the nth time. Much cleaner now.des2000-07-121-98/+62
| | | | | | | | | | Always display the completion percentage if stderr is a tty. Drop the char-by-char transfer mode, it was based on an incorrect assumption regarding the semantics of fread(). Finally (I hope) straighten out the business of setting the mtime, as well as when to remove the output file and when not to. Thanks are owed to the many who have provided nearly instantaneous and highly constructive feedback and suggestions about these matters.
* "ls" is note the same as "nlist", but it is the same as "dir". Correctben2000-07-121-18/+30
| | | | | | | | this, and add a bit to the descriptions of "dir" and "nlist" to emphasize the difference. PR: 15408 Submitted by: Joe Smith <inwap@best.com>
* remove m_pulldown related statistics, it is not for production systemitojun2000-07-121-32/+0
| | | | (it belongs to kame experiment).
* Now that the HTTP code supports timeouts, we don't need to use alarm()des2000-07-121-16/+29
| | | | | | | around the call to fetchStat(). Catch SIGINT, and rework the signal handling so it doesn't skimp on the cleanup after a timeout or interrupt. Also, don't just bail out after a timeout; there may be more files to fetch.
* Backout previous commit.asmodai2000-07-121-1/+1
| | | | (Mental note: don't forget -rRELENG_4 next time.)
OpenPOWER on IntegriCloud