Hajimu UMEMOTO
d84a1df489
To make compilable without -DINET6.
...
PR: bin/20407
Submitted by: Patrick Bihan-Faou <patrick@mindstep.com>
2000-08-07 16:39:33 +00:00
Mark Ovens
54af9cb58f
Document the ``-'' option and minor re-wording in EXAMPLES
2000-08-05 23:03:12 +00:00
Sheldon Hearn
e62d73a2a1
Merge the truncate(1) utility onto the RELENG_4 branch and adjust
...
the HISTORY section to reflect the first release of FreeBSD in
which this utility will appear.
2000-08-04 08:05:52 +00:00
Ruslan Ermilov
61793a0c8b
Do not display icmp(4) sockets as non-existent bridge(4) sockets.
2000-08-03 14:53:41 +00:00
Ruslan Ermilov
6bc4ee4976
Unbreak world build by adding the necessary <net/ethernet.h> include.
...
Submitted by: Nickolay Dudorov <nnd@wint.itfs.nsk.su>
2000-08-02 07:37:44 +00:00
Ruslan Ermilov
ed7cf099c6
Make auto-generated ioctl.c to be always considered out of date
...
since it could potentially depend on any ${DESTDIR}/usr/include
preprocessor file. This fixes the broken -DNOCLEAN world build
I experienced yesterday.
2000-08-01 10:21:13 +00:00
Ruslan Ermilov
a7e7621042
Fix an off-by-nine error when building a list of includes.
2000-08-01 08:15:06 +00:00
Maxim Sobolev
3bd77c5644
Add current position (line, column) display.
2000-07-31 14:02:51 +00:00
Kris Kennaway
ffd044a699
Don't segv when trying to add a 0-length unit name.
...
Some string-related cleanups inspired by OpenBSD.
Reviewed by: asmodai
2000-07-31 10:49:08 +00:00
Kris Kennaway
3890f2357a
Don't coredump on long input lines. If anyone actually cares, this should
...
be fixed to actually process long lines instead of truncating them.
Obtained from: OpenBSD
2000-07-31 10:14:06 +00:00
Eivind Eklund
1e2f8412e0
Make passing unknown fstypes to -fstype result in a warning instead of
...
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.
2000-07-28 20:02:42 +00:00
Warner Losh
9ad6473aef
Do include <unistd.h> for getopt interface.
...
Don't extern it.
2000-07-28 06:50:25 +00:00
John Polstra
3cfac2c58d
Fix bug: "netstat -si" prints interface information, but the header
...
line is missing. This apparently was broken in revision 1.31 of
"if.c".
Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
2000-07-28 04:05:04 +00:00
Jeroen Ruigrok van der Werven
6e5d42b9b0
Let wall report the local timezone as well on output.
...
PR: 17867
Submitted by: Joel Ray Holveck <joelh@gnu.org>
Nagged by: nrahlstr
2000-07-27 07:58:47 +00:00
Dag-Erling Smørgrav
9516ffa7c0
Restore the old semantics of deleting the output file when interrupted.
...
Some people liked this and some didn't, so POLA won.
2000-07-26 07:28:33 +00:00
Sheldon Hearn
1727cb4cae
Fix a bug introduced in rev 1.8, where special files ended up
...
being treated like regular files because of missing braces.
PR: 20143
2000-07-25 13:01:34 +00:00
Sheldon Hearn
0b113423f2
Avoid the need to capitalize an extraneous argument to the Nm macro
...
and be more precise about the handling of command-line arguments.
Reviewed by: ps
2000-07-24 21:53:04 +00:00
Sheldon Hearn
b86e825a0c
Simplify some conditionals.
2000-07-24 21:50:38 +00:00
Sheldon Hearn
dee82c612a
Shut an optimizing compiler up about possibly (but never) unused
...
variables.
Submitted by: charnier
2000-07-24 21:46:12 +00:00
Paul Saab
176e822873
Typos and spelling fixes.
...
Submitted by: charnier
2000-07-24 20:35:19 +00:00
Philippe Charnier
8ad08d33c1
Start enumerate option with `The following options are available' like
...
most of the utilities.
.Nm prog -> .Nm
Remove unused include
Make use of getopt() instead of parsing params by hand.
2000-07-24 20:22:49 +00:00
Sheldon Hearn
6b88e76b89
truncate.c:
...
Do not include unused header files.
Add rcsid.
Change copyright.
truncate.1:
Add AUTHORS section.
Submitted by: charnier
2000-07-24 08:56:42 +00:00
Sheldon Hearn
4d532a362e
Close file descriptors after use so as not to abuse the descriptor
...
table when a long argument list is given. :-)
Reported by: Sven Agnew <afterhours80@hotmail.com>
2000-07-23 13:24:01 +00:00
Chris Costello
4977617679
Revert to 1.8. I misread the sentence and its context.
2000-07-21 20:18:50 +00:00
Chris Costello
c4619be2d5
Properly document %.0f behavior.
2000-07-21 20:04:58 +00:00
Dag-Erling Smørgrav
32190ef51f
Don't print summary in quiet mode.
2000-07-21 14:21:29 +00:00
Sheldon Hearn
75bc7bff6e
Add a STANDARDS section to discourage the use of this utility
...
in environments where portability is a concern.
2000-07-21 13:05:15 +00:00
Dag-Erling Smørgrav
d939bf77d2
Don't display a running count in quiet mode.
...
Don't add the offset to the size; it's libfetch's job to report the correct
size of the requested file.
2000-07-21 11:08:03 +00:00
Hajimu UMEMOTO
c847fdb1f9
Fix buffer size of ALIGNed buffer.
...
PR: bin/20053
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2000-07-20 14:54:04 +00:00
Sheldon Hearn
144d39d4b8
Rename the `name'' argument to
`item'' and mark it up as an argument.
...
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.
2000-07-20 11:39:14 +00:00
Dag-Erling Smørgrav
10e3b1c738
Fix two bugs related to resumed transfers:
...
- 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.
2000-07-19 23:56:45 +00:00
Dag-Erling Smørgrav
a5e3ae21a5
Braino: don't use passive mode unless the user requests it.
...
PR: bin/20025
Submitted by: HIYAMA Takeshi <th@cis.ibaraki.ac.jp>
2000-07-19 09:12:36 +00:00
Paul Saab
2333aeef12
Oops. fsync(8) should have been fsync(1). (repo-copied by peter)
...
Change reference from update(4) to syncer(4).
2000-07-19 08:44:26 +00:00
Paul Saab
4aeb1c05fb
Add fsync(8). This becomes useful with the advent of MAP_NOSYNC etc.
...
Reviewed by: peter
2000-07-19 08:38:18 +00:00
Ben Smithurst
cf575052df
* Remove description of obsolete -t option.
...
* Insert newline before "and" in ".Fl c and".
Approved by: des
2000-07-18 21:05:11 +00:00
Jonathan Lemon
727a4ed619
Convert calls to match new kqueue API.
2000-07-18 19:38:38 +00:00
Nik Clayton
3d48b53ecf
Correct the attribution for yes(1).
...
PR: docs/19401
Submitted by: s.c.sprong@student.utwente.nl
2000-07-18 18:32:08 +00:00
Sheldon Hearn
893d2b85cd
Cross-reference mount_nfs(8) and showmount(8).
...
PR: 20008
Reported by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2000-07-18 17:34:23 +00:00
Sheldon Hearn
edeb84a1b2
Import the new truncate(1) utility.
...
Approved by: jdp
2000-07-18 17:03:58 +00:00
David Malone
b0fe2da816
Allow logger to send messages directly to a remote syslog. (This
...
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
2000-07-18 08:56:54 +00:00
Dag-Erling Smørgrav
38a616e49f
The description of the semantics of -v and -q has long since been OBE.
2000-07-17 22:44:36 +00:00
Dag-Erling Smørgrav
45b22b2a87
While I'm at it, break a line that was too long, remove a pointless diagnostic
...
and adjust the verbosity level of another.
2000-07-17 22:44:00 +00:00
Dag-Erling Smørgrav
c0b0d54e10
Document the fact that -r and -m are mutually exclusive.
2000-07-17 21:51:48 +00:00
Dag-Erling Smørgrav
e9a039c2cb
Rearrange / rewrite large portions of fetch() to take advantage of new
...
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).
2000-07-17 21:49:01 +00:00
Sheldon Hearn
4198af2bff
Use pwd instead of cwd in backticks. cwd in backticks doesn't do
...
anything useful in a Bourne shell.
PR: 19980
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2000-07-17 17:31:59 +00:00
Dag-Erling Smørgrav
78394463ee
Better signal handling.
...
Submitted by: green
2000-07-16 00:47:00 +00:00
Andrey A. Chernov
38d3d2d67c
Fix octal numbers parsing
...
PR: 19950
Submitted by: Alexey Klimov <klim@unique.kiev.ua>
2000-07-15 17:17:33 +00:00
Alfred Perlstein
2873654a65
Fix systat to use the kern.ipc.mbtypes sysctl instead of referencing a
...
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
2000-07-15 16:24:21 +00:00
Alfred Perlstein
af0e6bcdf0
Make mbstat.m_mtypes seperate and viewable via sysctl, also
...
expand the size from short to ulong
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
PR: kern/19809
2000-07-15 06:02:48 +00:00
Brian Somers
3e6902efc8
Add the -z flag to check file sizes first
...
Correct the cmp.1 usage message
Correct the -l/-s incompatibility message
Submitted by: Mark Knight <markk@knigma.org>
2000-07-14 16:54:59 +00:00