Brian Somers
cbe1d3b630
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 14:46:40 +00:00
Mark Murray
b174363035
Very minor stylistic nit.
...
Discussed with: ru
2001-08-20 12:46:11 +00:00
Mark Murray
012b940383
Code merge and diff reduction between this and crypto telnet.
...
Also remove useless AUTHENTICATION code. We have never compiled this
here, and it is doubtful that it even works without crypto.
2001-08-20 12:21:31 +00:00
Brian Somers
2aad70eb9e
Don't misuse the return from snprintf.
...
MFC after: 2 weeks
2001-08-20 11:58:05 +00:00
Kris Kennaway
a0b13740e8
Don't overflow a buffer from command line arguments.
...
MFC after: 2 weeks
2001-08-20 09:43:04 +00:00
Kris Kennaway
04228e35d9
Part II of libss retirement: zap mk_cmds too.
...
Pointy hat to: kris
2001-08-20 06:23:35 +00:00
Dag-Erling Smørgrav
eab5a80417
Remove a blank line that snuck in with the previous commit.
...
Set the default timeout to 120 seconds instead of 0 (no timeout).
2001-08-18 10:48:55 +00:00
Peter Wemm
cccce27ae3
Correct path (../crypto, not ../../crypto)
2001-08-18 03:36:26 +00:00
Dag-Erling Smørgrav
db695db7f0
Add some comments.
2001-08-17 22:22:45 +00:00
David E. O'Brien
1687fcd346
Use a build-tool to create the .mgc files.
...
Submitted by: ru (partial)
Obtained from: NetBSD (basic idea)
Reviewed by: bde, ru
2001-08-17 17:21:38 +00:00
Max Khon
9a94731096
add an entry about myself
...
Reviewed by: jdp
2001-08-17 05:59:39 +00:00
Mike Heffner
cbf16fdf21
Print a space between the function name and line number.
...
PR: bin/10980
MFC after: 2 weeks
2001-08-16 16:18:14 +00:00
Mike Heffner
1ac49cd896
Add $FreeBSD$
...
MFC after: 2 weeks
2001-08-16 16:16:07 +00:00
Sheldon Hearn
d1050cb33c
* Update author's e-mail address.
...
* When the author of an utility also wrote its manual page (a rarety, I
know), it is not necessary to say that the utility "and this manual
page" were written by the author.
2001-08-16 08:40:54 +00:00
Sheldon Hearn
b63c01391e
Use the .Cm macro to mark up the modifiers of the -s flag's size argument.
2001-08-16 08:19:09 +00:00
Mike Heffner
327a1d9ddb
Fix usage message, the executable is optional.
...
PR: bin/29735
MFC after: 2 weeks
2001-08-15 21:25:50 +00:00
Ruslan Ermilov
bf1bf89163
Substitute ARGSTR in-place.
...
Forgot trailing newline in usage().
2001-08-15 15:24:08 +00:00
Ruslan Ermilov
d143364652
Fixed the usage() string.
...
This also reverts change in rev. 1.36 to the documented
style of writing usage().
PR: bin/29730
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-08-15 15:11:52 +00:00
Ruslan Ermilov
ccb8bea4f0
The old fmt(1) always did what the new ``-l 8'' option does.
...
POLA: Changed the default to ``-l 8'' while still providing
a way to disable this feature with ``-l 0''.
PR: bin/29247
Reviewed by: iedowse
2001-08-15 14:53:55 +00:00
Ruslan Ermilov
d628d776c4
mdoc(7) police: utilize the new .Ex macro.
2001-08-15 09:09:47 +00:00
Kazuo Horikawa
d8ac53f249
Removal of following export controll related sentences:
...
o This option is not available outside of the United States and Canada.
o Because of export controls, TELNET ENCRYPT option is not supported outside
of the United States and Canada.
src/crypto/README revision 1.5 commit log says:
> Crypto sources are no longer export controlled:
> Explain, why crypto sources are still in crypto/.
and actually telnet encryption is used outside of US and Canada now.
Pointed out by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>
Reviewed by:no objection on doc
2001-08-15 01:23:30 +00:00
Jens Schweikhardt
fa7a1ab968
Add hint about how we name profiled libraries (append _p at the right place).
...
PR: 8061
Submitted by: Brandon Gillespie <brandon@ice.cold.org>
Reviewed by: joerg, ru
MFC after: 5 weeks
2001-08-14 17:48:29 +00:00
Thomas Gellekum
566f6e4f1e
Fix INT 10:09 (write char) and INT 10:0a (write char and attribute)
...
when cursor is at the lower right corner.
PR: 29574 29601
Submitted by: Nils M Holm <nmh@t3x.org>
2001-08-14 11:57:14 +00:00
Thomas Gellekum
f7448f4297
Move update of BIOS variable at 0x6c (time counter) completely to timer.c.
...
Suggested by: Igor Serikov <bt@turtle.pangeatech.com>
2001-08-14 11:54:37 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Dima Dorfman
dd6ba956da
An empty at.deny doesn't mean everyone can use at.
...
PR: 29549
Submitted by: swear@aa.net
2001-08-14 06:41:20 +00:00
Peter Wemm
9a2e7f1520
Initialize outfile in main()
2001-08-13 21:59:04 +00:00
Peter Wemm
668f24deae
Initialize msg in main()
2001-08-13 21:58:16 +00:00
Peter Wemm
ec26f57025
Initialize fp in main()
2001-08-13 21:57:12 +00:00
Peter Wemm
c7a12b501b
Initialize debugf in main()
2001-08-13 21:56:39 +00:00
Ruslan Ermilov
ed2879a5cf
mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.
2001-08-13 17:07:40 +00:00
Ruslan Ermilov
c5e7e03a14
Spell "FreeBSD" with "F" and "BSD" in uppercase.
2001-08-13 16:33:00 +00:00
Ruslan Ermilov
8af1452cf8
Removed duplicate VCS ID tags, as per style(9).
2001-08-13 14:06:34 +00:00
Mike Barcroft
ede8b1c50a
Fix some bogus strncpy(3) to strlcpy(3) changes I made in the previous
...
revision. <utmp.h> structures don't leave room for a NUL character.
Also fix "UNKNOWN" which should have just been UNKNOWN.
Pointed out by: bde
2001-08-13 05:56:27 +00:00
Mark Murray
37ee76af52
Remove the WANT_INSECURE_OPIE option - it is now a default. This is not
...
nearly as ominous as it sounds, and it allows OPIE to be used over SSH
and on xterms.
Requested by: ache
Discussed on: -security
2001-08-12 18:47:56 +00:00
Mike Barcroft
9ab4f41231
o Replace occurrences of strncpy(3) with strlcpy(3); most of
...
the uses of it were wrong anyway.
o Always check for NULL returns on strdup(3).
o Fix a possible buffer overflow in strcpy(3).
o Fix a format string vulnerability.
o t->ty_type in stypeof() could be NULL and eventually cause
a segmentation fault in setenv(3), so check for that.
Eyeballed by: kris
Reviewed by: murray
MFC after: 3 days
2001-08-12 17:54:49 +00:00
Kenneth D. Merry
9674f1d43a
Change the compute_stats() call to the new devstat_compute_statistics()
...
interface.
Cast the return of the rest of the printfs in here to void.
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
2001-08-11 19:41:56 +00:00
Mark Murray
788222e410
Set the RUSER for PAM so that (eg) kerberos can set up tickets properly.
2001-08-11 14:24:13 +00:00
Mark Murray
8cc3b02f98
WARNS=2 type cleanup.
...
WARNS=2 cannot be enable because of an unresolvable conflict in arg 2
of execv(). Document this in the Makefile.
Reviewed by: bde (su.c only)
2001-08-11 14:22:32 +00:00
Kris Kennaway
57c6bd978f
Don't call errx() with a variable format string
...
MFC after: 1 week
2001-08-11 00:49:11 +00:00
Ruslan Ermilov
94ba280c59
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
Ruslan Ermilov
57e4378bf6
mdoc(7) police: protect trailing full stops of abbreviations
...
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
Ruslan Ermilov
3ce0d6e846
mdoc(7) police: fix markup.
2001-08-10 10:43:45 +00:00
Ruslan Ermilov
95d6ec368c
Update for 3.36.
2001-08-09 14:38:45 +00:00
Ruslan Ermilov
5a32eb6470
Update for 3.36.
...
Reduce diffs to distributed, man(7) format, version.
Markup nits.
2001-08-09 14:38:10 +00:00
Dima Dorfman
ca0589467f
Style fix: use .else where appropriate.
...
PR: 29489
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-08-09 07:03:11 +00:00
Dima Dorfman
e896c344fb
Print the peer's name and address in the "Connection establish"
...
message. Similar information is given by the talk daemon when a
connection is requested, but that part isn't on the screen when the
main "talk" screen appears, and sometimes it's nice to know who you're
talking to.
Reviewed by: ru
2001-08-09 06:45:35 +00:00
Yaroslav Tykhiy
d691b79fbc
Replace the condemned access(2) by stat(2),
...
as per the discussion in -audit.
2001-08-08 21:22:48 +00:00
Sheldon Hearn
42abf713c9
can not -> cannot
2001-08-08 18:32:06 +00:00
David E. O'Brien
bef2f61da3
Clean up this thing a little.
2001-08-08 16:19:30 +00:00
David E. O'Brien
9732caee1b
Support the new "-i" (output MIME type strings) option by installing
...
the MIME files (both regular and precompiled).
2001-08-08 16:10:16 +00:00
David E. O'Brien
8c662313ce
Build and use the precompiled magic file. Precompiled magic files have
...
been supported since version 3.35, however it is just with version 3.36
that file has become verbose about it.
2001-08-08 15:53:58 +00:00
Ruslan Ermilov
5873dc7271
Add entry for wsanchez.
2001-08-08 15:35:20 +00:00
Thomas Gellekum
31769c6186
Silence some more warnings, mostly from `-W -Wwrite-strings'.
2001-08-08 10:58:50 +00:00
Dag-Erling Smørgrav
03f28475f8
Allow the user to specify port ranges against which to match inet sockets.
...
Suggested by: roam
2001-08-07 19:59:52 +00:00
Ruslan Ermilov
c4d9468ea0
mdoc(7) police:
...
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
Ruslan Ermilov
489c40dcf5
mdoc(7) police: bump document date for the previous delta.
2001-08-07 13:45:55 +00:00
Ruslan Ermilov
2909f5cf21
mdoc(7) police: sort xrefs.
2001-08-07 13:41:38 +00:00
Ruslan Ermilov
df3fa85144
mdoc(7) police: bump document date for the previous delta, fix markup.
2001-08-07 13:40:07 +00:00
Thomas Gellekum
9e6e8e9f89
Fix warnings resulting from `-Wredundant-decls -Wstrict-prototypes'.
2001-08-07 11:09:15 +00:00
Mike Barcroft
b5b9b43078
Constify, staticize, and set WARNS=2.
...
MFC after: 3 days
2001-08-06 23:20:06 +00:00
Dima Dorfman
41f59e1ce0
can not -> cannot
2001-08-05 22:07:27 +00:00
Mike Barcroft
eade81c941
o Move APNIC flag from -p to -A. Since, -p is usually associated
...
with specifying a port.
o Add the -p flag for specifying a port. (PR: 28790) This is
useful for querying rwhois servers. Example:
whois -h rwhois.exodus.net -p rwhois 216.136.180.0
o Add the -c flag which allows one to get the same whois server
that would normally be determined if no arguments were specified.
(Concept based on work by phantom, requested by ache) Example:
whois -c ru TCNET-MNT-RIPN
o Deprecate -R flag in favour of -c ru.
PR: 28790
Reviewed by: -audit, ache, phantom
2001-08-05 19:37:12 +00:00
Dima Dorfman
e632521c36
Document -d in usage.
...
Submitted by: Martin Kammerhofer <mkamm@sbox.tu-graz.ac.at>
2001-08-05 16:01:34 +00:00
Jonathan Chen
48aa92042e
Fix using /usr/bin/ftp as a slave process on the end of a pipe by calling
...
fflush(stdout). This is one ancient PR...
PR: bin/1589
Submitted by: imp
2001-08-05 08:39:58 +00:00
Thomas Gellekum
b99bacc92b
Fix warnings from `-Wmissing-prototypes'. Staticize.
2001-08-03 10:47:56 +00:00
Thomas Gellekum
273a0913fe
Sort SRCS.
2001-08-03 10:47:13 +00:00
Maxim Sobolev
a8ec1b4851
Fix a cryptoless world by disconnecting libmp from the build when there is no
...
crypto bits installed and/or NOCRYPTO/NO_OPENSSL is defined. This unfortunately
meants that usr.bin/chkey, usr.bin/newkey and usr.sbin/keyserv have also to
be disconnected.
IMO it is merely a workaround, the proper solution is to move libmp to
src/crypto where it belongs and use libgmp for the cryptoless builds instead.
Missed by: dd
2001-08-02 15:47:03 +00:00
Sheldon Hearn
86f478757a
MFS: in HISTORY section, fix release number of first appearance
2001-08-01 12:15:21 +00:00
Thomas Gellekum
399a82cd5d
Don't wait for a keypress in INT 16 function 01, just return the current
...
state. This fixes Easytrax.
2001-08-01 11:47:06 +00:00
Thomas Gellekum
008969f3d3
Mark debug() and fatal() as __printflike() and fix resulting warnings.
2001-07-31 11:27:48 +00:00
Thomas Gellekum
ddda86e60f
Sort options, remove unknown option 'f'.
2001-07-31 11:25:52 +00:00
Bosko Milekic
a8a35cdd91
Add a "X KBytes of wired memory reserved" metric that represents
...
approximately the amount of memory allocated from the mbuf maps
and sitting in the mbuf allocator's cache containers, and display
in parantheses the percentage of said memory that is actually
in use at the given time `netstat -m' is executed.
Suggested by: mjacob
2001-07-31 08:19:49 +00:00
Yaroslav Tykhiy
b95dbabab3
Don't use ".nofinger" as a string constant from within the code
...
since there is the ``pathnames.h'' file; use _PATH_NOFINGER instead.
2001-07-30 16:50:47 +00:00
Thomas Gellekum
86c393fc09
- Add some more x86 instructions to emulate,
...
- emulate VGA read mode 0,
- emulate VGA write mode 1,
- minor cleanup.
Protel's Easytrax, a free PCB layout program, almost runs now; there are
still some problems with the keyboard emulation, but the graphics are fine
(albeit a bit slow).
2001-07-30 12:03:38 +00:00
Thomas Gellekum
07679c2d28
- Fix file names <:-(,
...
- attempt to find the X includes and libraries better,
- sort some things.
Submitted by: bde
2001-07-30 11:38:20 +00:00
Bruce Evans
0c593a5078
Fixed bitrot in DPADD in previous commit.
...
Fixed some style bugs (mainly disorder).
2001-07-30 11:16:39 +00:00
Bruce Evans
13c05935fa
Removed garbage "CFLAGS+= -I.". This finishes backing out rev.1.4.
2001-07-30 11:08:11 +00:00
David E. O'Brien
f1c116854d
Update to version 3.36.
2001-07-30 03:50:24 +00:00
David E. O'Brien
56e3dc4288
Update to version 3.36.
...
I had to hack print.c due to some new bits that only compile on NetBSD.
I could not figure what the analogous FreeBSD bits are.
2001-07-30 03:50:04 +00:00
Thomas Moestl
1e543a5075
Correct the old length argument passed to sysctl to be a pointer to a
...
size_t (not to an int).
MFC after: 2 days
2001-07-29 21:56:14 +00:00
Dima Dorfman
7bd0b86765
Enable the new libmp in the build, and disable libgmp and its
...
henchmen.
2001-07-29 08:58:22 +00:00
Mark Peek
5d89a19753
Properly handle wgetch(3) returning ERR. This prevents an abnormal exit
...
when a windows resize event (SIGWINCH) occurs.
Reported by: John Doe <rhamming2001@yahoo.com> and others on -stable.
Reviewed by: dd
MFC after: 1 week
2001-07-28 22:40:10 +00:00
Stefan Eßer
6d64e93980
Include value of command line argument that causes an error message or
...
warning in said message, since fetch may be run from a makefile or script
which does not print the command line.
Approved by: des
2001-07-28 21:34:56 +00:00
Mark Murray
9567ba9dda
Fix the environment handling:
...
However, there's still a bug in login.c
because you copy the environment *before* the call to pam_open_session,
which won't set the necessary variables set by /usr/ports/security/pam_ssh.
Submitted by: Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
2001-07-28 19:53:10 +00:00
Mike Barcroft
f458f48b02
Prevent chpass(1) from writing -1 in the UID or GID fields
...
in the password file by properly casting integers.
PR: 27757
Reviewed by: des
Approved by: des
MFC after: 4 days
2001-07-26 23:27:10 +00:00
Brian Somers
5b718312b7
When -n is specified, don't attempt to turn hostnames found in utmp
...
into addresses as we have no idea what address family they belong to.
When -n is not specified, resolve IPv6 as well as IPv4 addresses found
in the host field of utmp. Use realhostname_sa() to resolve addresses
(the old code was wrong).
Rename ``x'' to ``x_suffix'' to avoid confusion.
Hard code the host column width to 16 (against the imminent increase
of UT_HOSTSIZE in utmp.h).
2001-07-26 19:20:13 +00:00
Bosko Milekic
49f854f926
- Do not handle the per-CPU containers in mbuf code as though the cpuids
...
were indices in a dense array. The cpuids are a sparse set and treat
them as such, setting up containers only for CPUs activated during
mb_init().
- Fix netstat(1) and systat(1) to treat the per-CPU stats area as a sparse
map, in accordance with the above.
This allows us to properly boot with certain CPUs disactivated. However, if
we later decide to re-activate said CPUs, we will barf until we decide to
implement CPU spinon/spinoff callback hooks to allow for said CPUs' per-CPU
containers to get configured on their activation.
Reported by: mjacob
Partially (sys/ diffs) Submitted by: mjacob
2001-07-26 18:47:46 +00:00
Thomas Gellekum
a0e4393eaf
Include <sys/kbio.h> or <machine/console.h>, depending on __FreeBSD_version.
...
This will reduce diffs to -STABLE.
Don't leave an image of the video RAM around.
2001-07-26 11:09:15 +00:00
Thomas Gellekum
090f957012
Correct font names. Now, how on earth did this work on my system?
2001-07-26 11:05:31 +00:00
Thomas Gellekum
d57f02670b
Fix bugs introduced in 1.26:
...
- restore -I. in CFLAGS
- add dependencies of objects on font headers
- missing dependencies of font headers on their sources
Suggested by: bde
2001-07-26 11:04:08 +00:00
Sheldon Hearn
e1b4d8d074
Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
...
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.
Submitted by: David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
Matt Jacob
df94d4d280
Fix 64 bit issues so that sockstat && fstat work correctly on alpha.
...
PR: 29231
Submitted by: pherman@frenchfries.net
MFC after: 2 weeks
2001-07-25 20:31:20 +00:00
Bill Fenner
1a8b27c035
Use sysctl to export multicast routing stats
2001-07-25 20:14:09 +00:00
Sheldon Hearn
bba1ea063e
Fix breakage introduced in rev 1.26, with the introduction of
...
absoluate pathnames starting with /usr/src.
This fixes the installworld target for the case where the source tree is
not in /usr/src.
2001-07-25 12:21:27 +00:00
Andrey A. Chernov
ac06a71756
Remove non-existent (missing?) fonts.alias from beforeinstall: target
2001-07-24 19:25:19 +00:00
Andrey A. Chernov
1dab3da105
Add -I${.OBJDIR} to pick generated font*.h
2001-07-24 18:33:26 +00:00
David E. O'Brien
a9be9be874
Expland `mymalloc' with malloc + error checking.
2001-07-24 14:15:51 +00:00
David E. O'Brien
44974a7f49
Remove the misnamed `xmalloc' and replace its uses with the realloc (along
...
with error checking) that it actually was.
2001-07-24 14:14:11 +00:00
David E. O'Brien
d54a8ce707
Remove the misnamed `emalloc' and replace its uses with calloc (along
...
with error checking) which it effectively was. (malloc+memset)
2001-07-24 14:13:34 +00:00
David E. O'Brien
f0cb953721
Remove emalloc and expand to the malloc + error checking it was, where used.
2001-07-24 14:12:05 +00:00
David E. O'Brien
ac3c230c82
Remove the misnamed `emalloc' and replace its uses with the calloc (along
...
with error checking) that it actually was.
2001-07-24 14:11:09 +00:00
David E. O'Brien
de9b3b9034
Remove the local basename in favor of the libc version.
...
Remove xmalloc and xstrdup and do the error checking at the place of use.
2001-07-24 14:09:47 +00:00
David E. O'Brien
707cb19845
Expland the emalloc to do the testing at the place of mallocing.
2001-07-24 14:08:02 +00:00
David E. O'Brien
5d79931bb0
Expand emalloc in-place, and remove the `rname' basename() implimenation.
2001-07-24 14:06:19 +00:00
David E. O'Brien
8e33c0a0f6
Expand xmalloc in-place, along with xrealloc; which wasn't even ANSI in its
...
implementation.
2001-07-24 14:05:21 +00:00
David E. O'Brien
9ebd5897b2
Replace the local rname' with the cannonical
basename'.
2001-07-24 14:04:20 +00:00
David E. O'Brien
3c5bf66cec
Expand x{malloc,calloc,realloc,strdup} in-place.
...
(even found some unchecked naked uses)
2001-07-24 14:02:07 +00:00
Kris Kennaway
506d42c5b7
yyerror() is a printflike function
...
MFC after: 1 week
2001-07-24 12:20:17 +00:00
Thomas Gellekum
2bc50aed69
Clean up the code a bit:
...
- add $FreeBSD$;
- remove unused variables;
- add missing headers and prototypes;
- -Wshadow.
2001-07-24 11:50:23 +00:00
Thomas Gellekum
040395f4dd
Rewrite video emulation. Features:
...
- slightly more accurate VGA hardware emulation;
- more int 10 functions, especially wrt to palette handling;
- first shot at graphics support;
- mode switching.
Bugs:
- graphics too slow;
- only 16 color modes work for now;
- works only under X, and only with 16 bit TrueColor visuals;
- far from being genuinely useful (I can play an old EGA game now, though
(mahjongg.exe)).
Also, the code has been cleaned up a bit (more to come in a separate commit).
2001-07-24 11:44:20 +00:00
David E. O'Brien
065fe72747
Quiet a [useless] compiler warning.
2001-07-23 23:27:28 +00:00
Assar Westerlund
dbda0a3480
revert last commit. using %option nounput is better
...
noted by: Seth Kingsley <seth.kingsley@windriver.com>
2001-07-22 23:14:33 +00:00
Mike Barcroft
2c69b9a13e
Fix a bug I introduced in Rev. 1.21 that prevented 'whois test' from
...
working.
Reviewed by: des
Approved by: des
2001-07-22 18:23:24 +00:00
Mike Pritchard
b21b2f313e
Fix some man page xrefs.
...
PR: docs/26065
MFC after: 1 week
2001-07-22 11:51:11 +00:00
Assar Westerlund
04625dfc30
add an unused attribute to yyunput to avoid warnings (errors) when
...
it's not being used
2001-07-21 19:47:17 +00:00
Mike Barcroft
197bca2ccf
o Add phantom's gethostinfo() function to reduce duplicated code.
...
o Increase readability by creating a wrapper for asprintf(3).
o Cast isdigit(3) argument to unsigned char for future locale
changes.
Submitted by: phantom
Reviewed by: -audit, des
Approved by: des
2001-07-20 16:44:44 +00:00
Mike Barcroft
e896ec1ef5
o Integrate security enhancements from OpenBSD.
...
- Don't assume environment variable HOME is not NULL.
o Integrate standards compliance from NetBSD.
- Allow -- before the command.
- Blocking SIGQUIT isn't standards compliant.
- Proper exit(3) levels.
- Actually append to nohup.out (as documented and required
by standard) instead of clobbering it.
o Remove some FreeBSD specific access(2) cruft (relating to
incorrect appending).
o Document the fact that two or more instances of nohup can
append to the same file.
o Constify; Staticize functions; Set WARNS?=2
Reviewed by: bde
Approved by: des
Obtained from: NetBSD, OpenBSD
MFC after: 9 days
2001-07-19 21:25:10 +00:00
David E. O'Brien
934d98a94b
Portability configuation for LukeM's ftp client.
2001-07-19 17:45:52 +00:00
Ruslan Ermilov
1a084f197d
Fixed the race caused by not checking the result of fgets(3):
...
/usr/bin/env MALLOC_OPTIONS=J banner </dev/null
PR: bin/29074
Fixed the problem when banner(6) would eat last character:
echo -n a | banner
MFC after: 1 week
2001-07-19 08:07:09 +00:00
Kris Kennaway
c0e30a2b1f
Embed $FreeBSD$ as an rcsid[]
2001-07-19 01:39:12 +00:00
Dag-Erling Smørgrav
04d12c9900
If we're writing to stdout, we don't care about the size.
...
Submitted by: wollman
2001-07-17 21:23:43 +00:00
Dag-Erling Smørgrav
91404f38f0
WARNS cleanup + remove an unused macro and an unused function argument.
2001-07-17 21:22:32 +00:00
Mike Barcroft
6c56da4a27
Re-write the logic that finds the whois server to query.
...
[This fixes a bug where one would type 'whois foo.bar.'
and get an error because of the trailing period.]
PR: 28880
Approved by: des
2001-07-17 20:40:41 +00:00
Ruslan Ermilov
f72acdd4c9
Clarify that MAKEOBJDIR and MAKEOBJDIRPREFIX are environment variables.
...
Submitted by: bde
2001-07-16 15:33:34 +00:00
Kris Kennaway
8b16780ac8
Add myself
2001-07-16 00:17:48 +00:00
Dima Dorfman
f247324df7
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
Mark Murray
9061237999
Switch on SHA1 hashing.
2001-07-14 08:34:26 +00:00
Ruslan Ermilov
e8b02a428d
mdoc(7) police: -xwidth has been fold into -width.
2001-07-13 09:09:52 +00:00
Ruslan Ermilov
7d20bafcad
Generate top.local.h and manpage dynamically, with sed(1) script.
...
The generated manpage will now describe the actual behavior of
top(1) WRT how many processes it displays. This also eliminates
all troff(1) warnings.
2001-07-12 15:07:30 +00:00
Maxim Sobolev
2d68ab234d
Build/install bzip2 documentation (info page).
2001-07-12 14:44:17 +00:00
Ruslan Ermilov
63914212f0
Eliminate troff(1) warnings that were hiding some useful text.
2001-07-12 14:29:59 +00:00
Ruslan Ermilov
96e0c91959
Eliminate troff(1) warnings that were hiding some useful text.
2001-07-12 14:16:48 +00:00
Ruslan Ermilov
eb89426722
mdoc(7) police: removed punctuation after the last SEE ALSO xref.
2001-07-10 18:00:19 +00:00
Ruslan Ermilov
625003720a
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
Ruslan Ermilov
63919764c2
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 10:42:19 +00:00
David E. O'Brien
fb8d590c0e
style nit
2001-07-09 23:12:23 +00:00
Mark Murray
8509234471
Remove the S/Key key-handling apps, which are no longer needed, as
...
they are replaced by opiepasswd, opieinfo and opiekey.
2001-07-09 17:40:57 +00:00
Mark Murray
875afe974f
Provide a WANT_INSECURE_OPIE compile-time option, which is useful if
...
you encrypt all traffic routinely, and is also useful for debugging.
Also, (properly) set SUID bit on relevant apps - opieinfo and
opiepasswd, which need it to mess with /etc/opiekeys.
2001-07-09 17:37:52 +00:00
Ruslan Ermilov
42dadc4a58
mdoc(7) police: eliminate -ww warnings.
2001-07-09 15:46:02 +00:00
Dima Dorfman
70d51341bf
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Dag-Erling Smørgrav
74bd3d7698
Fix an embarassing if-test-reversal bug that broke scheme guessing.
2001-07-08 15:17:26 +00:00
Ruslan Ermilov
5521ff5a4d
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
2001-07-06 16:46:48 +00:00
Ruslan Ermilov
9597e1c260
mdoc(7) police: -column lists require column width specifiers.
2001-07-06 10:07:43 +00:00
Ruslan Ermilov
ac84cb970a
mdoc(7) police: moved -u down, fixed markup, removed hard sentence break.
2001-07-05 13:27:33 +00:00
Ruslan Ermilov
29baea0370
Document -u in the usage().
...
Make usage fit on a standard 80-column display.
2001-07-05 13:21:20 +00:00
Kris Kennaway
013fab318c
Mark a function as __printflike() and fix a non-exploitable format string
...
warning.
MFC after: 1 week
2001-07-05 10:08:25 +00:00
Kris Kennaway
6209021ebd
Mark some functions as __printflike()
...
MFC after: 1 week
2001-07-05 09:54:59 +00:00
Dima Dorfman
ffb9c240d7
Spelling police: extention -> extension.
2001-07-05 08:51:08 +00:00
Kris Kennaway
69c828c6bc
Don't generate syslog() statements which have format string vulnerabilities.
...
MFC after: 1 week
2001-07-05 08:17:41 +00:00
Ruslan Ermilov
865ec6c8fa
mdoc(7) police: sort xrefs.
2001-07-05 06:40:06 +00:00
Ruslan Ermilov
8fa6964a78
mdoc(7) police: fixed formatting.
2001-07-05 06:35:03 +00:00
Ruslan Ermilov
b7cd452d78
mdoc(7) police: fixed formatting bugs in rev. 1.27.
2001-07-05 06:27:52 +00:00
Ruslan Ermilov
756ceae899
mdoc(7) police: add missing .Ar in SYNOPSIS.
2001-07-05 06:20:29 +00:00
Ruslan Ermilov
33f6985557
mdoc(7) police: add missing .Ar in SYNOPSIS.
2001-07-05 06:11:10 +00:00
Dima Dorfman
561aef9a69
Revert previous commit; it broke large file support on platforms that
...
had it to begin with (e.g., the Alpha).
Submitted by: bde
2001-07-02 22:51:33 +00:00
Wilko Bulte
cf7ae120d9
s/Netherlands/the Netherlands
...
ISO3166 is *plain wrong* ...
Requested by: grog
MFC after: 1 week
2001-07-02 18:31:34 +00:00
Dima Dorfman
f6751868e4
Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$
...
where necessary.
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-30 05:39:36 +00:00
Dima Dorfman
653636c21d
Silence a warning on the Alpha.
...
Reviewed by: md5(1)
2001-06-30 05:32:29 +00:00
Dima Dorfman
41faa1a791
Silence a warning on the Alpha.
2001-06-30 05:29:57 +00:00
Dima Dorfman
42a0e93daa
Correct a spelling error.
...
PR: 28527
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
2001-06-29 21:09:09 +00:00
David E. O'Brien
613170896d
Fix editor'o where I lost the `+'.
2001-06-29 13:54:56 +00:00
Yaroslav Tykhiy
08274979f3
Clarify the feature that -exec parameters won't get
...
shell-expanded when the specified utility is run.
MFC after: 5 days
2001-06-29 12:59:20 +00:00
Ruslan Ermilov
44cffa7c08
- Added entry for Daniel C. Sobral.
...
- Fixed entry for Charlie Root.
2001-06-29 09:47:27 +00:00
Ruslan Ermilov
1093cc3199
Make `rttrash' variable (#routes not in table but not freed) visible
...
through ``netstat -rs''.
2001-06-29 09:08:24 +00:00
Ruslan Ermilov
8f309b9151
Fixed bogon in revision 1.37. Don't bogusly print a radix node's
...
duped key marker (``=>'') for routes with non-positive rmx_expire
metric, such as ethernet interface routes.
MFC after: 1 week
2001-06-29 08:37:12 +00:00
Wilko Bulte
4408e85a6d
s/Netherlands/the Netherlands/g
2001-06-28 22:05:32 +00:00
Guido van Rooij
c3c55b7ae3
Up the average age and hope I can still show my face next saturday.
2001-06-28 21:52:49 +00:00
Hajimu UMEMOTO
785d213d3f
- create an entry of IPV6CTL_STATS sysctl.
...
- fix the problem that netstat doesn't show raw6 and icmp6 pcblist.
- make netstat use sysctl to retreive stats of ipv6 and icmpv6
instead of kread.
Obtained from: KAME
MFC after: 1 week
2001-06-28 18:06:15 +00:00
Thomas Gellekum
5a7e416108
Fix another buffer overflow.
...
PR: 15593
Submitted by: Przemyslaw Frasunek <venglin@lagoon.FreeBSD.lublin.pl>
2001-06-28 12:02:45 +00:00
Mike Smith
48ce3c0e43
Based on a draft email in David Greenman's files, add the birthdate
...
of FreeBSD.
Submitted by: dg
2001-06-28 04:08:25 +00:00
Mike Heffner
dcd24e2778
Add the -E flag to not send messages that have an empty body. This is
...
useful for piping cron script error output by mail.
PR: bin/9494
Obtained from: NetBSD
MFC after: 2 weeks
2001-06-28 02:40:07 +00:00
Dima Dorfman
ffabd15013
Minor grammar cleanup.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-27 23:08:57 +00:00
Dima Dorfman
40682bea9a
Implement recursive IP address searches based on the results of a
...
query to ARIN.
PR: 28426
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-27 23:06:47 +00:00
Dima Dorfman
1807222dac
Correct path to wtmp.
...
PR: 28433
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-06-27 06:00:26 +00:00
Mike Heffner
24b9685ca9
Sync manpage and usage. Also fix bug that would always interpret a -c as a
...
process clear.
PR: bin/15456
MFC after: 2 weeks
2001-06-27 02:52:57 +00:00
Dima Dorfman
fd8879d3f5
Staticize, constize, de-registerize; don't shadow global definitions;
...
set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-26 22:22:19 +00:00
Jens Schweikhardt
9aa042f66c
Increase column widths when using -i (they are now wide enough to
...
hold a 64bit or 32bit ~0 value, i.e. 20 and 10; this anticipates
soon-to-be machines with Exahertz rtc interrupt frequencies. :-)
PR: bin/16206
Submitted by: John Capo <jc@irbs.com>
MFC after: 1 week
2001-06-26 18:49:10 +00:00
Ruslan Ermilov
0c5dac789c
Submitted by: hm
2001-06-26 08:00:43 +00:00
Dan Moschuk
7b6a37d826
Share my DOB with the world!
2001-06-26 05:04:03 +00:00
David W. Chapman Jr.
629160a49b
Originally stated wrong birthplace, thought it was current location.
2001-06-26 04:11:19 +00:00
Dima Dorfman
1fec918b1f
The `file' argument is optional.
...
Obtained from: OpenBSD
2001-06-26 02:14:13 +00:00
Mike Smith
dbe8e37bbf
Admit the shameful truth; I'm really from the east coast. But I left
...
shortly after I was born. Honest!
2001-06-25 21:37:43 +00:00
Dima Dorfman
461ce74ab4
Silence -Wshadow and -Wmissing-prototypes; set WARNS=2.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-25 21:25:27 +00:00
Ruslan Ermilov
845b45fed4
Submitted by: andreas
2001-06-25 09:11:45 +00:00
Dima Dorfman
7309915e7a
Nuke unused variables.
2001-06-24 23:41:57 +00:00
Dima Dorfman
9582ea7e62
Include missing header files which define functions for which gcc has
...
builtints (e.g., exit, strcmp).
2001-06-24 23:22:14 +00:00
Dima Dorfman
7a19d1bbb9
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
Dima Dorfman
948a3f54a7
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit).
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-24 19:41:18 +00:00
Dima Dorfman
471caa34a4
Silence warning and set WARNS=2.
...
Submitted by: Mike Barcroft <mike@q9media.com>
Reviewed by: md5(1)
2001-06-24 18:56:00 +00:00
David Malone
5386636d3e
Add prototypes and turn on WARNS=?2.
2001-06-24 12:23:54 +00:00
Dima Dorfman
a910f192bb
Remove duplicate words.
2001-06-24 01:34:38 +00:00
Jason Evans
9a952e0dda
Add myself.
2001-06-24 00:45:03 +00:00
Jens Schweikhardt
f40be3e157
Reduce field width for some columns so that the default output fits in <= 79
...
columns. 80 columns + newline is a problem for some terminals including syscons.
Requested by: bde
MFC after: 1 week
2001-06-23 17:52:10 +00:00
Ruslan Ermilov
8c8e8f8013
Three people known to be born on December 18!
...
Submitted by: cwt
2001-06-23 17:34:26 +00:00
Ruslan Ermilov
c73d99b567
Add netstat(1) knob to reset net.inet.{ip|icmp|tcp|udp|igmp}.stats.
...
For example, ``netstat -s -p ip -z'' will show and reset IP stats.
PR: bin/17338
2001-06-23 17:17:59 +00:00
Bosko Milekic
f70f5dd367
- Fix space allocation for mbstat structure
...
- Make sure to try hw.ncpu if kern.smp.cpus doesn't exist (i.e. on UP) to
get number of CPUs.
2001-06-23 17:04:17 +00:00
Bosko Milekic
4edec6b79a
Make sure to try hw.ncpu if kern.smp.cpus doesn't exist (i.e. on UP) when
...
getting number of CPUs.
2001-06-23 17:03:27 +00:00
Maxim Sobolev
ab962c79ec
By default link statically (like we did in the port) - it provides 8-10%
...
faster comperssion, which in the bzip2's case could be a big win.
2001-06-23 12:29:14 +00:00
Ruslan Ermilov
aafccd6d93
Honor -s -s (don't show zero stats) with -r, untangle SYNOPSIS further.
...
(usage() still is not synchronized with SYNOPSIS, intentionally.)
2001-06-23 09:18:57 +00:00
Ralf S. Engelschall
c39435223d
Add myself.
2001-06-23 09:16:29 +00:00
Ruslan Ermilov
7b7a4c0417
Average age is 28 years and 11 months.
...
Submitted by: hrs, marko
2001-06-23 08:36:11 +00:00
Brian Feldman
668650045e
Make sure the average age keeps on decreasing down that slippery slope.
2001-06-23 07:24:18 +00:00
Andrey A. Chernov
cd01c79119
Make the similar changes as in our keyinfo, i.e. allow user to get his own
...
sequence and allow root to get everybody's one. Before this change user
can't get his own sequence, root required.
2001-06-23 04:48:59 +00:00
Julian Elischer
2137f0edf5
give up and join the party (along with thomas Moestl (same bday))
...
but maybe this file shouldn't be so widly distributed :-)
2001-06-23 04:37:31 +00:00
Seigo Tanimura
4841abec28
Now how many files would a new committer have to commit?
2001-06-22 22:53:22 +00:00
Wes Peters
3236ec583b
Join in the fun.
2001-06-22 22:47:22 +00:00
David E. O'Brien
b0b7095861
Quiet compiler warnings by making `WARNS 2' clean.
...
Submitted by: Mike Barcroft <mike@q9media.com>
Set maintainer to myself. This needs to stay in sync with what Buntils
does, and it would be best to pass functionality changes thru me to make
sure future plans are taken into account.
2001-06-22 21:43:51 +00:00
Dima Dorfman
982f5d88ff
WARNS= -> WARNS?=
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
Mario Sergio Fujikawa Ferreira
c55cc749a5
Average tuning and contribute a Brazilian
2001-06-22 15:00:20 +00:00
Paul Saab
81ca9c7060
Add myself
2001-06-22 14:50:34 +00:00
Thomas Moestl
280e1ddd48
Add myself.
2001-06-22 14:43:53 +00:00
Ruslan Ermilov
4208e80251
More average age tuning.
...
Submitted by: andy
2001-06-22 13:14:01 +00:00
Daniel C. Sobral
d3460d6609
Correct small typo on debug message.
...
PR: bin/28337
Submitted by: Koga Youichirou <y-koga@jp.freebsd.org>
MFC after: 1 week
2001-06-22 12:54:55 +00:00
Ruslan Ermilov
31ae0147d1
Fixed average age (28 years and 11 months).
...
Submitted by: hosokawa
2001-06-22 10:11:39 +00:00
Gregory Neil Shapiro
5631132741
Add myself. It looks like I am in very good company in November.
2001-06-22 08:11:06 +00:00
Kevin Lo
45850e3066
Add myself
2001-06-22 07:35:56 +00:00
Ruslan Ermilov
a87032d57f
- Fixed bogon in rev. 1.14 (dates are separated by a tab).
...
- Sort people that have the same birthday by a year.
- Added some missing data (R.O.C. for Taiwan, Australia for peter,
Englang -> United Kingdom).
- Fixed bogon in rev. 1.1 (INITCAP() was not worth doing).
- Regenerate (from the Oracle database).
Average age: 28 years and 10 months.
2001-06-22 06:41:16 +00:00
Bosko Milekic
08442f8a82
Introduce numerous SMP friendly changes to the mbuf allocator. Namely,
...
introduce a modified allocation mechanism for mbufs and mbuf clusters; one
which can scale under SMP and which offers the possibility of resource
reclamation to be implemented in the future. Notable advantages:
o Reduce contention for SMP by offering per-CPU pools and locks.
o Better use of data cache due to per-CPU pools.
o Much less code cache pollution due to excessively large allocation macros.
o Framework for `grouping' objects from same page together so as to be able
to possibly free wired-down pages back to the system if they are no longer
needed by the network stacks.
Additional things changed with this addition:
- Moved some mbuf specific declarations and initializations from
sys/conf/param.c into mbuf-specific code where they belong.
- m_getclr() has been renamed to m_get_clrd() because the old name is really
confusing. m_getclr() HAS been preserved though and is defined to the new
name. No tree sweep has been done "to change the interface," as the old
name will continue to be supported and is not depracated. The change was
merely done because m_getclr() sounds too much like "m_get a cluster."
- TEMPORARILY disabled mbtypes statistics displaying in netstat(1) and
systat(1) (see TODO below).
- Fixed systat(1) to display number of "free mbufs" based on new per-CPU
stat structures.
- Fixed netstat(1) to display new per-CPU stats based on sysctl-exported
per-CPU stat structures. All infos are fetched via sysctl.
TODO (in order of priority):
- Re-enable mbtypes statistics in both netstat(1) and systat(1) after
introducing an SMP friendly way to collect the mbtypes stats under the
already introduced per-CPU locks (i.e. hopefully don't use atomic() - it
seems too costly for a mere stat update, especially when other locks are
already present).
- Optionally have systat(1) display not only "total free mbufs" but also
"total free mbufs per CPU pool."
- Fix minor length-fetching issues in netstat(1) related to recently
re-enabled option to read mbuf stats from a core file.
- Move reference counters at least for mbuf clusters into an unused portion
of the cluster itself, to save space and need to allocate a counter.
- Look into introducing resource freeing possibly from a kproc.
Reviewed by (in parts): jlemon, jake, silby, terry
Tested by: jlemon (Intel & Alpha), mjacob (Intel & Alpha)
Preliminary performance measurements: jlemon (and me, obviously)
URL: http://people.freebsd.org/~bmilekic/mb_alloc/
2001-06-22 06:35:32 +00:00
Takanori Watanabe
f89558df9a
Add Myself.
2001-06-22 04:57:20 +00:00
Peter Wemm
0764acb60f
Dive in as well.
2001-06-22 04:52:05 +00:00
Motoyuki Konno
b6c9f3b104
Add myself.
2001-06-22 04:38:22 +00:00
Munechika SUMIKAWA
a10d4301dd
Oops, I was born in Osaka. Kanagawa is my current address :-)
2001-06-22 02:45:25 +00:00
Ade Lovett
58e24cfd43
Add myself. sos, you have a clone (albeit younger by 9 years :)
2001-06-22 02:30:27 +00:00
Dag-Erling Smørgrav
9b07a06672
Stylify, ANSIfy, silence warnings, plug a memory leak, don't assume the
...
server is well-behaved wrt. line endings.
PR: bin/28082
Submitted by: Mike Barcroft <mike@q9media.com>
2001-06-22 01:52:37 +00:00
Vanilla I. Shu
91d8ba8789
Add myself.
2001-06-22 01:11:35 +00:00
Matt Jacob
51a9be2aed
Okay, I'll go along with the gag.... Interesting- I'm quite startled
...
to note that of the people added so far, one has the same birthdate as me
(April Fool's Day), and that only two other folks are older than I am.
2001-06-22 00:23:02 +00:00
Greg Lehey
fe7ecc4a40
Add myself.
2001-06-22 00:19:14 +00:00
Brooks Davis
45ae78bcc5
Slightly lower average age.
2001-06-21 20:44:32 +00:00
Bill Fumerola
676393a337
represent detroit rock city
2001-06-21 20:15:10 +00:00
David E. O'Brien
d6a9fd06de
Add the Bzip2 binaries. These are starting to get used more and more
...
in the base system.
2001-06-21 19:18:16 +00:00
Michael C . Wu
d05ee7b1be
Follow Ben's suit in decreasing the average age here
...
by adding myself.
2001-06-21 15:06:14 +00:00
Ben Smithurst
2e32a5ffdf
Hopefully decrease the average age further still... :-)
2001-06-21 14:59:25 +00:00
Bill Fumerola
47f7cc6db5
bring down the average age a little
2001-06-21 09:57:48 +00:00
Ruslan Ermilov
23a8dddc5d
FreeBSD calendar.
...
Submitted by: developers
2001-06-21 09:07:22 +00:00
Munechika SUMIKAWA
fd5556399e
- Avoid hardcoded constant on icmp6 in/out histogram printing
...
- Icmp6 histogram update for inverse neighbor solicit/advert.
Obtained from: KAME
MFC after: 2 weeks
2001-06-21 08:27:09 +00:00
Dima Dorfman
66cbe52bfa
This compiles cleanly with WARNS=2; make sure it stays that way.
2001-06-20 01:12:46 +00:00
Dima Dorfman
91dd86ff52
Don't arbitrarily limit tabstop expansions to 256 characters.
...
Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
2001-06-20 01:08:58 +00:00
Jens Schweikhardt
ca513e5e52
Made all fields in default output be space separated. Run-together
...
columns confuse the heck out of other apps trying to parse vmstat output
(eg sscope). I made sure we're still <= 80 cols per line.
Fixed warnings about unused vars and printf %format mismatches.
Requested by: Eugene Aleynikov <eugenea@infospace.com>
Reviewed by: joerg (implicitly)
MFC after: 2 weeks
2001-06-19 17:59:40 +00:00
Mike Heffner
b1a7433e0b
Call clnt_destroy() to prevent exhausting resources.
...
PR: bin/14255
Reviewed by: Kenji Tomita <tommy@ti.com>
MFC after: 2 weeks
2001-06-19 03:48:26 +00:00
Mike Heffner
98f858a6b2
Cleanup the mix of styles in this file:
...
- spaces -> tabs
- return(0) -> return (0)
- wrap longlines
Reviewed by: md5
MFC after: 2 weeks
2001-06-19 03:37:21 +00:00
Peter Pentchev
e6ebeb5f57
Teach fstat(1) about FIFO's - it's OK to display them as regular files.
...
While I'm here, fix two second-level indents to be four spaces.
Reviewed by: dd, -audit
2001-06-18 06:29:31 +00:00
Mike Heffner
a9992a76a3
Support mail boxes that have dates without seconds (SysV) and those
...
that have a timezone as <-|+>nnnn (eg. imapd).
PR: bin/11746
Obtained from: OpenBSD
MFC after: 2 weeks
2001-06-18 04:28:03 +00:00
Dima Dorfman
7d6d31cb79
Satisfy gcc's parenthetical needs and clamp down with WANRS=2.
...
Reviewed by: md5(1)
2001-06-17 06:22:30 +00:00
Mike Heffner
844518ff93
Add the -p flag to force unknown control sequences to be passed
...
through unchanged.
Reviewed by: silence on -audit
Obtained from: NetBSD
MFC after: 3 weeks
2001-06-17 04:24:16 +00:00
Mike Heffner
f34d0e7447
Use err(3) and style(9) cleanup.
...
MFC after: 2 weeks
2001-06-17 03:56:00 +00:00
Dima Dorfman
fd67620214
Make the synopsis resemble the usage in the source file.
2001-06-16 23:09:12 +00:00
Mike Heffner
d763a51095
Print spaces on the leading edge rather than the trailing edge of each
...
field to avoid trailing spaces.
PR: bin/16649
MFC after: 2 weeks
2001-06-16 07:08:37 +00:00
Jonathan Lemon
84982751aa
Cast size_t -> int to satisfy printf %* constraints on the alpha.
2001-06-16 06:22:09 +00:00
Assar Westerlund
f964d60dd3
remove warnings
...
remove superfluous declarations
make things more consistent
2001-06-15 23:55:45 +00:00
Assar Westerlund
5e0517186d
remove K&R support
2001-06-15 23:35:13 +00:00
Eric Melville
a70bac9d69
Remove unwanted CFLAGS, and add a CVS id.
2001-06-15 23:25:22 +00:00
Assar Westerlund
e9370a2e59
revert removal of warning and K&R support
...
Requested by: bde
2001-06-15 23:07:59 +00:00
Assar Westerlund
c264b07418
nflag -> numeric_port. nflag is no more
2001-06-15 22:57:41 +00:00
Warner Losh
5d8eff0053
Print symbolic names for appletalk ports. Also some very minor style 9 issues.
...
PR: bin/4157
Submitted by: Denny Gentry <denny1@home.com>
2001-06-15 20:47:01 +00:00
Ruslan Ermilov
cf5e44f88e
First round of netstat(1) cleanup.
...
Removed the ambiguity in -s, -f, -p and -i flags handling.
Basically, there are four displays (except others):
1. PCB display.
2. Protocol statistics display. (-s)
3. Interface statistics display. (-i)
4. Per-interface protocol statistics display. (-i -s)
All of the above except 3) can be limited to a particular
protocol family (-f) or a single protocol (-p).
Some examples:
1. netstat -f inet -- show PCBs of all INET protocols
2. netstat -p udp -- show PCB of UDP protocol only (NEW!)
3. netstat -s -- show protocol statistics for all families
4. netstat -s -f inet -- show INET protocols statistics
5. netstat -s -p icmp -- show ICMP protocol statistics
This is a work in progress. Manpage has been fixed slightly,
but is still incomplete.
2001-06-15 18:25:38 +00:00
Ruslan Ermilov
eba04a8da9
Line up `netstat -rl' display.
2001-06-15 18:15:11 +00:00
Assar Westerlund
af7a0a2d2b
remove most of the warnings
2001-06-15 01:53:05 +00:00
Assar Westerlund
65ea0024ba
add the option -S for printing port numbers symbolically but addresses
...
numerically. clean up the CFLAGS in Makefile.
2001-06-15 00:25:44 +00:00
Ruslan Ermilov
d15c5f56b6
Restore -M -N support for -m.
...
PR: 20808
2001-06-14 15:45:09 +00:00
Ruslan Ermilov
1f389209a6
Removed -h option.
2001-06-14 14:21:11 +00:00
Ruslan Ermilov
00c5403e09
Really delete the -h option.
...
CSRG revision 5.33 deleted -h option from getopt(), but not
from usage(). Revision 8.3 restored it in getopt().
2001-06-14 14:15:41 +00:00
Dima Dorfman
92b401e824
Silence warnings and minor style fixes. Mostly constify and don't
...
assume that time_t is a long. Clamp down with WARNS=2.
Not objected to by: -audit
2001-06-14 04:55:26 +00:00
Peter Wemm
9488e5f340
Part 2 of gensetdefs de-orbit burn. linker sets are now self contained
...
for ELF, see src/sys/linker_set.h log.
2001-06-14 01:35:23 +00:00
Mike Heffner
59c3f4f7ee
Respect REPLYTO in mailrc.
...
PR: bin/8322
Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
MFC after: 2 weeks
2001-06-14 01:08:30 +00:00
Jens Schweikhardt
67d9fd5ac4
Avoid the avm field joining the w field when avm is > 9.999.999 pages
...
which is slightly less than 4GB. To use a quote from someone who shall
remain nameless "No one will ever need more than 4 GB" :-) But FreeBSD
is prepared if we one day will.
Requested by: Eugene Aleynikov <eugenea@infospace.com>
2001-06-13 18:43:28 +00:00
Peter Pentchev
4bb69e3542
Add '-I mask' cmdline flag to ignore/skip files and subdirectories
...
matching a specified shell-glob mask.
Reviewed by: no serious objections on -arch and -audit over
the last few months
MFC after: 1 month
2001-06-13 06:38:58 +00:00
Jens Schweikhardt
b1494cf05a
Increase field width by one for 'fre' to accomodate today's memory sizes.
...
PR: 25267
Submitted by: Eugene Aleynikov <eugene@infospace.com>
Reviewed by: joerg
MFC after: 2 weeks
2001-06-12 19:47:40 +00:00
David E. O'Brien
0d1b691ed7
Allow -u to work with UID's also.
...
Submitted by: Seth Kingsley <seth.kingsley@windriver.com>
2001-06-12 15:58:31 +00:00
Ruslan Ermilov
d57e0246d1
Fixed printing of netatalk statistics WRT the -s flag.
...
PR: bin/6994
Submitted by: Zahemszky Gabor <zgabor@zg.CoDe.hu>
MFC after: 1 week
2001-06-12 14:00:39 +00:00
Dima Dorfman
d4906adb59
ANSI C prohibits text after #endif.
...
Reviewed by: md5(1)
2001-06-12 03:44:35 +00:00
Hajimu UMEMOTO
74cf6cfebf
Mention about -rl behavior change. Now, MTU is printed.
2001-06-11 17:34:25 +00:00
Hajimu UMEMOTO
7165726d0d
Add missing column for Mtu in header when -rl is specified.
2001-06-11 17:32:53 +00:00
Hajimu UMEMOTO
3384154590
Sync with recent KAME.
...
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.
TODO:
- The definitions of SADB_* in sys/net/pfkeyv2.h are still different
from RFC2407/IANA assignment because of binary compatibility
issue. It should be fixed under 5-CURRENT.
- ip6po_m member of struct ip6_pktopts is no longer used. But, it
is still there because of binary compatibility issue. It should
be removed under 5-CURRENT.
Reviewed by: itojun
Obtained from: KAME
MFC after: 3 weeks
2001-06-11 12:39:29 +00:00
Andrey A. Chernov
ee84c5b19d
ISO_ -> ISO
2001-06-11 04:24:43 +00:00
Andrey A. Chernov
21ff62e236
ISO_ -> ISO
2001-06-11 03:45:33 +00:00
Andrey A. Chernov
5cbf767700
ISO_ -> ISO
2001-06-11 03:08:46 +00:00
Andrey A. Chernov
b04359b9b7
ISO_ -> ISO
2001-06-11 02:59:46 +00:00
Andrey A. Chernov
1c593a0d69
Handle ASCII and US-ASCII aliases
2001-06-10 23:26:47 +00:00
Andrey A. Chernov
064484f9b3
Install additional en_US links
2001-06-10 22:40:39 +00:00
Andrey A. Chernov
c052429fde
Remove "SU" - not valid country code
...
Fix locale comparison with "C", add "POSIX"
2001-06-10 21:06:01 +00:00
Andrey A. Chernov
0503c005e0
Add more *.US-ASCII entries
2001-06-10 20:53:18 +00:00
Andrey A. Chernov
4d44677783
Add Latin15 entries
2001-06-10 20:42:46 +00:00
Andrey A. Chernov
3f5975dca5
Add new and Latin15 names
2001-06-10 18:03:53 +00:00
Andrey A. Chernov
092b7f296c
Understand new locale names and Latin15
2001-06-10 17:26:35 +00:00
Ruslan Ermilov
54f6369da3
Always print at least 2 bytes for IN_CLASSB_NET networks.
...
Always print at least 3 bytes for IN_CLASSC_NET networks.
The standard 193.0.0 class C network for example, will now
be displayed as "193.0.0" as opposed to the confusing 193.
PR: bin/21546
MFC after: 1 week
2001-06-08 15:44:17 +00:00
Poul-Henning Kamp
d2bd52c4e1
The date for Australia day in
...
src/usr.bin/caldendar/calenders/calendar.holiday
is incorrect.
From looking through webcvs it seems like the error is in Open/NetBSD also.
PR: 27960
Submitted by: Harley Anderson <Warragul@selcon.com.au>
2001-06-08 11:53:58 +00:00
Maxim Sobolev
8657581bfd
Correct cross-reference:
...
portmap.8 --> rpcbind.8
Submitted by: .Xr testing script
2001-06-07 16:59:19 +00:00
Jonathan Lemon
889b293a21
Null terminate buffer.
...
PR: 23150
Submitted by: Dan Nelson <dnelson@emsphone.com>
MFC in: 1 week
2001-06-07 05:26:26 +00:00
Dima Dorfman
41ff7633ea
Silence the remaining warnings and clamp down with WARNS=2.
...
Not objected to by: -audit
2001-06-07 02:57:58 +00:00
Jonathan Lemon
a8fb4e2810
o If the file being tailed is moved back to the original location,
...
resume using kqueue to monitor it, if possible.
o auto-clear the read filter on EOF; this is needed when tailing a FIFO.
2001-06-06 17:47:13 +00:00
Ruslan Ermilov
1438aefc25
fmt(1) rewrite by Gareth McCaughan.
...
PR: bin/5901, bin/12242, bin/19071
Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk>
Obtained from: OpenBSD + ctype(3), WARNS=2, and manpage cleanup
MFC after: 2 weeks
2001-06-06 10:17:05 +00:00
Poul-Henning Kamp
c689eed5f3
There is no reason for logname to call getopt(3), it doesn't take
...
any options.
PR: 26689
Submitted by: Félix-Antoine Paradis <reel@sympatico.ca>
2001-06-05 21:04:42 +00:00
Maxim Sobolev
54bb9f535c
- Optimise current cursor position displaying routines, to avoid unnecessary
...
cursor movements;
- minor cleanups in cursor position displaying routines;
- properly resent "file modified" flag when editing several files.
MFC after: 1 week
2001-06-03 12:42:19 +00:00
Mike Heffner
db72da7b83
Use S_IXUSR instead of hardcoded values.
...
Reviewed by: md5
2001-06-02 03:10:07 +00:00
Ruslan Ermilov
f66c1ecf8f
Don't treat the pipe symbol in capabilities as an alternate
...
record name indicator; this causes a spurious warning:
$ cat x
record:\
:capability=|value:
$ cap_mkdb x
cap_mkdb: ignored duplicate: record
Spotted by: dcs
2001-06-01 14:45:00 +00:00
Hajimu UMEMOTO
2c5958aa51
Do retry next entry in addrinfo during connect.
...
MFC after: 1 week
2001-06-01 13:43:20 +00:00
Thomas Moestl
d62de5c4bb
Replace a use of the hw.nintr sysctl as it has just gone away, cast
...
size_t variables when passing them to a printf-like function, and some
minor cleanups.
2001-06-01 13:29:19 +00:00
Dag-Erling Smørgrav
1a4a063934
Don't try to print a completion percentage for zero-size files.
...
PR: 27780
Submitted by: Craig Leres <leres@ee.lbl.gov>
2001-06-01 10:24:58 +00:00
Dima Dorfman
6b0b1ebfc5
Correct a typo.
...
PR: 22885
Submitted by: Rene de Vries <rene@tunix.nl>
2001-06-01 02:53:32 +00:00
Dima Dorfman
6ab55b23e2
Correct some typos.
...
PR: 27251
Submitted by: Pekka Savola <pekkas@netcore.fi>
2001-06-01 02:28:15 +00:00
Dima Dorfman
0444aaa030
Don't install setgid kmem.
2001-06-01 01:14:28 +00:00
Thomas Moestl
e0038fe587
Cast size_t variables before printing them to cope with the case of
...
sizeof(size_t) != sizeof(int).
2001-05-31 22:36:51 +00:00
Dima Dorfman
b15abefff0
Convert to use the sysctl interface to obtain the data when operating
...
on a running system. Using kvm is still supported, primarily for
postmortem analysis.
Reviewed by: tmm
2001-05-31 22:30:39 +00:00
Ruslan Ermilov
18fbb861ab
Display -tcp w/o load average so that all statistics fits on a 80x25 screen.
2001-05-31 07:14:52 +00:00
Ruslan Ermilov
7bbf75ec4f
Show TCP checksum failures with -tcp display.
...
PR: bin/27786
Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
2001-05-31 07:08:49 +00:00
Ruslan Ermilov
b4ad2d5f3f
Note that the default behavior has changed to copy files.
...
Also, fix markup in the SYNOPSIS.
Submitted by: dougb
2001-05-30 09:45:47 +00:00
Ruslan Ermilov
fcbb2c69df
Backout rev. 1.42 (relaxing the check for -d plus other flags).
...
Instead, issue a warning for now if -d and -C options are used
together. This will be turned into an error before 4.5-RELEASE.
Reviewed by: imp
2001-05-30 07:08:49 +00:00
Dima Dorfman
c1a7db888d
Mention how env(1) can be used with the "#!" construct.
...
PR: 27690
Submitted by: Mike Meyer <mwm@mired.org>
2001-05-30 03:15:39 +00:00
Dima Dorfman
dd512c47f1
Don't claim to ignore interrupts.
...
PR: 27747
Submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
2001-05-30 02:39:53 +00:00
Dima Dorfman
9b1fd3272e
Remove home-grown prototypes of time() and localtime().
...
Reviewed by: md5(1)
2001-05-30 02:38:10 +00:00
Dima Dorfman
f878e83f9d
Replace the cast I removed in rev. 1.16 with a slightly less evil one
...
(well, at least one that gcc doesn't complain about). This fixes -r,
which rev. 1.16 broke.
Submitted by: bde
2001-05-29 23:35:18 +00:00
Poul-Henning Kamp
753d49786e
Remove MFS
2001-05-29 20:39:47 +00:00
Warner Losh
4c48c580ec
Use use ${INSTALL} -d in our build process. If INSTALL is set to
...
"install -C" then things will fail due to new checks. Relax the
checks so that install -C -d works again.
2001-05-29 18:41:16 +00:00
Gregory Neil Shapiro
1d3ebaf302
Make sure the len() builtin always returns an answer. Previously,
...
len(`') didn't return an answer. Now it returns 0.
PR: bin/12942
MFC after: 5 days
2001-05-29 03:32:38 +00:00
Poul-Henning Kamp
861c52f1c4
Direct queries for IP numbers to ARIN. It would be nice if we could
...
send them to APNIC/RIPE intelligently, but we can't at this time so
fallback to ARIN and depend on them telling the user where to look.
Maybe we need a .whoisrc file...
PR: 24707
Submitted by: Mike Barcroft mike@q9media.com
MFC after: 1 week
2001-05-28 21:37:29 +00:00
Poul-Henning Kamp
c59c7f97ad
Call kvm_close() before exit for consistency.
...
PR: 24654
Submitted by: Daniel Hemmerich zartik@yahoo.com
2001-05-28 21:30:31 +00:00
Ruslan Ermilov
f120c88cca
Many new features and optimization improvements:
...
o New flags: -b and -B (backup)
o New flag: -S (safe copy; aka "atomic" install)
o The -c flag is now the default.
o The -D flag was withdrawn.
Reviewed by: bde (up to some point)
Obtained from: OpenBSD but heavily modified
MFC after: 1 month
2001-05-28 16:41:53 +00:00
Ruslan Ermilov
8e46d9c279
Follow symbolic links named as command line arguments if run without -R.
...
This is required by symlink(7), ``Commands not traversing a file tree''
subsection, third paragraph:
: It is important to realize that this rule includes commands which may
: optionally traverse file trees, e.g. the command ``chown file'' is
: included in this rule, while the command ``chown -R file'' is not.
For chown(8) and chgrp(1), this is also is compliance with the latest
POSIX 1003.1-200x draft.
MFC after: 1 week
2001-05-28 12:58:10 +00:00
Ruslan Ermilov
f82078861c
The last(1) choked if there were two successive "login" marks
...
found in wtmp(5) for the same TTY without in-between "logout"
mark.
This may be demonstrated by executing login(1), logging in and
out, and watching the last(1) output on this TTY:
: # last -tv7 -w
: ru ttyv7 Mon May 28 12:46 - 12:46 (00:00:01)
: ru ttyv7 Mon May 28 12:45 still logged in
The fix merely takes the second "login" mark as the "logout" for
the first "login" mark, if there were no "logout" mark in-between.
This restores the behavior of last.c,v 1.2:
: # last -tv7 -w
: ru ttyv7 Mon May 28 12:46 - 12:46 (00:00:01)
: ru ttyv7 Mon May 28 12:45 - 12:46 (00:00:25)
Silence from: -arch, dg
2001-05-28 09:57:19 +00:00
Dima Dorfman
da3082d4a9
Silence warnings (most about constness) and clamp down with WARNS=2.
...
Tested on i386 and alpha.
2001-05-28 06:14:48 +00:00
Mike Heffner
f332550d02
Fix overflowing on nul character.
...
PR: bin/16926
MFC after: 1 week
2001-05-28 03:49:23 +00:00
Dima Dorfman
8a24285612
Implement snapshots. The new -d option allows the user to find out
...
who was logged in at a certain time and date.
Obtained from: OpenBSD
2001-05-28 01:22:37 +00:00
Dima Dorfman
edd7b2674d
Silence warnings and compile with WARNS=2 on i386 and alpha.
2001-05-28 00:55:50 +00:00
Dima Dorfman
15ba0427d3
Miscellaneous cleanups; sync to OpenBSD as much as feasible.
...
Noteworthy changes include:
* Use getopt(3).
* Fix overflows in -b and -w options.
* Use strlcpy(3) and snprintf(3) in favor of strcpy(3) and
sprintf(3), respectively. Also check return values of the former
two.
* Fix lots of other gratuitous differences with OpenBSD.
Obtained from: OpenBSD
2001-05-27 21:08:19 +00:00
Mike Heffner
9ce73e9018
Cleanup mail(1)'s varying styles by converting to using style(9).
...
Also take a stab at cleaning up BDECFLAGS and convert all uses of
NOSTR, NIL, NONE, NOVAR, NOGRP, NOGE to NULL. Also kill 'register' to
get diffs somewhat closer to OpenBSD/NetBSD.
There are no functional changes however.
Reviewed by: nra (visual inspection)
2001-05-27 20:26:22 +00:00
Dag-Erling Smørgrav
5ef824ed2b
Damn. Fix typo in previous commit.
2001-05-27 10:46:19 +00:00
Kris Kennaway
83b65cc9cb
Fix a trivial warning and clamp down with WARNS=2
...
MFC after: 1 week
2001-05-26 22:47:58 +00:00
Kris Kennaway
50d6b258b2
Fix a trivial warning and clamp down with WARNS=2
...
MFC after: 1 week
2001-05-26 22:45:14 +00:00
Kris Kennaway
16dd925f16
Fix some trivial warnings and clamp down with WARNS=2
...
MFC after: 1 week
2001-05-26 22:39:33 +00:00
Kris Kennaway
5f0e809ac0
Fix WARNS=2 warnings on alpha and i386 and clamp it down
2001-05-26 21:49:29 +00:00
Dag-Erling Smørgrav
0d60c7099d
When running on a tty, install an authentication callback.
2001-05-26 19:51:05 +00:00
Mark Murray
5b3771f13c
Deconvolute the authentication mess, and hand total responsiblity
...
for authentication to PAM. This meens that WHEELSU-type logic can
now be effected in the pam.conf "su" configuration stack. While here,
clean up the mess that the code had assumed over years of hacking by
folks using different styles. ANSIfy.
There is more policy in here that can be handed over to PAM. This will
be revisited.
2001-05-26 09:52:36 +00:00
Thomas Moestl
af943f55f7
Fix the error buffer passed to kvm_openfiles to have a correct length
...
of _POSIX2_LINE_MAX.
MFC after: 1 week
2001-05-26 00:02:13 +00:00
Thomas Moestl
9c9f2eefc8
Fix the error buffer passed to kvm_openfiles to have a correct length
...
of _POSIX2_LINE_MAX.
MFC after: 3 days
2001-05-25 23:36:09 +00:00
Kris Kennaway
096c40e3f3
Mark error() as __printflike() and fix a non-exploitable format string
...
error.
MFC after: 1 week
2001-05-25 23:15:05 +00:00
Thomas Moestl
5a3c3d039a
Fix the error buffer passed to kvm_openfiles to have a length of
...
_POSIX2_LINE_MAX as required.
While being there, wrap an overly long line.
MFC after: 3 days
2001-05-25 23:10:27 +00:00
Ruslan Ermilov
1166fb516b
- sys/msdosfs moved to sys/fs/msdosfs
...
- msdos.ko renamed to msdosfs.ko
- /usr/include/msdosfs moved to /usr/include/fs/msdosfs
2001-05-25 08:14:14 +00:00
Ruslan Ermilov
95a09b0557
Make it clear that -P is the default.
...
PR: docs/27629
2001-05-25 07:32:58 +00:00
Poul-Henning Kamp
62f9fae610
If the user exists abruptly, tip's "tipout" child can hang around
...
forever. Since the lock file doesn't get cleaned up, this prevents
other users from accessing the target device.
(phk adds: Man, this has been bugging me for YEARS!)
PR: 12528
Submitted by: Craig Leres leres@ee.lbl.gov
MFC after: 1 week
2001-05-24 09:27:02 +00:00
Ruslan Ermilov
5e4440632e
Backout rev. 1.22 as the change that caused problems was also backed out.
2001-05-24 08:47:57 +00:00
Poul-Henning Kamp
11529d1a19
define _KERNEL before including <sys/conf.h>
2001-05-23 23:03:00 +00:00
Poul-Henning Kamp
719bfad4aa
We don't need to include <sys/conf.h>
2001-05-23 23:01:37 +00:00
Matthew Dillon
a4cc82665c
A feature to allow one to telnet to a unix domain socket.
...
Obtained from: Lyndon Nerenberg <lyndon@orthanc.ab.ca>
2001-05-23 22:47:16 +00:00
David E. O'Brien
f23466b9fd
Note that sys.mk is read before any other file (even Makefile)
2001-05-23 18:21:36 +00:00
Jim Pirzyk
4450124805
Changed 'blocks' to 'usage' because we may not be getting quotas from
...
a ufs filesystem and it may be reporting in K instead of 512b blocks.
This is true when using a vxfs filesystem (on a solaris box) for instance.
PR: bin/14545
Submitted by: Jim Pirzyk
Reviewed by: jkh
MFC after: 1 week
2001-05-23 17:12:09 +00:00
Thomas Gellekum
539fbbccc4
Update BIOS time.
...
Submitted by: Igor Serikov <bt@turtle.pangeatech.com>
2001-05-22 11:33:38 +00:00
Thomas Gellekum
55426b7d9e
Beautify debugging output.
2001-05-22 11:33:17 +00:00
Thomas Gellekum
d0cd0e62b4
Fix slice handling. Add 6 (`big' DOS partition) as a legal systemID.
2001-05-22 11:32:38 +00:00