Commit Graph

4515 Commits

Author SHA1 Message Date
ru
e381dd2c3a 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
sobomax
ccc325a5ee Build/install bzip2 documentation (info page). 2001-07-12 14:44:17 +00:00
ru
044b30cecd Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:29:59 +00:00
ru
5e692edf62 Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:16:48 +00:00
ru
d929062987 mdoc(7) police: removed punctuation after the last SEE ALSO xref. 2001-07-10 18:00:19 +00:00
ru
36f138439b mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
ru
d19961ab7f mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
obrien
6b523e5046 style nit 2001-07-09 23:12:23 +00:00
markm
1c3a14b401 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
markm
cb75b1ef0e 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
ru
302824a321 mdoc(7) police: eliminate -ww warnings. 2001-07-09 15:46:02 +00:00
dd
eaa6ee03b8 mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
brian
8636b161b3 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
des
edbf7599a6 Fix an embarassing if-test-reversal bug that broke scheme guessing. 2001-07-08 15:17:26 +00:00
ru
05e503d80a mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +00:00
ru
83c24735dc mdoc(7) police: -column lists require column width specifiers. 2001-07-06 10:07:43 +00:00
ru
554102f1dd mdoc(7) police: moved -u down, fixed markup, removed hard sentence break. 2001-07-05 13:27:33 +00:00
ru
9fe354114f Document -u in the usage().
Make usage fit on a standard 80-column display.
2001-07-05 13:21:20 +00:00
kris
377ac46985 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
e8a61c0bf5 Mark some functions as __printflike()
MFC after:	1 week
2001-07-05 09:54:59 +00:00
dd
5f1d2a6542 Spelling police: extention -> extension. 2001-07-05 08:51:08 +00:00
kris
62daf61425 Don't generate syslog() statements which have format string vulnerabilities.
MFC after:	1 week
2001-07-05 08:17:41 +00:00
ru
26bb2b8341 mdoc(7) police: sort xrefs. 2001-07-05 06:40:06 +00:00
ru
ec9340a9ea mdoc(7) police: fixed formatting. 2001-07-05 06:35:03 +00:00
ru
b34776a031 mdoc(7) police: fixed formatting bugs in rev. 1.27. 2001-07-05 06:27:52 +00:00
ru
c157225440 mdoc(7) police: add missing .Ar in SYNOPSIS. 2001-07-05 06:20:29 +00:00
ru
c1d8c6e04f mdoc(7) police: add missing .Ar in SYNOPSIS. 2001-07-05 06:11:10 +00:00
dd
0e52764a02 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
10671e2b79 s/Netherlands/the Netherlands
ISO3166 is *plain wrong* ...

Requested by: grog
MFC after:	1 week
2001-07-02 18:31:34 +00:00
dd
fdda055e00 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
dd
9b64cdc70f Silence a warning on the Alpha.
Reviewed by:	md5(1)
2001-06-30 05:32:29 +00:00
dd
1de613d311 Silence a warning on the Alpha. 2001-06-30 05:29:57 +00:00
dd
de71153c8e Correct a spelling error.
PR:		28527
Submitted by:	Giorgos Keramidas <keramida@ceid.upatras.gr>
2001-06-29 21:09:09 +00:00
obrien
9a602b2fd4 Fix editor'o where I lost the `+'. 2001-06-29 13:54:56 +00:00
yar
75f9f9392e 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
ru
782892a71f - Added entry for Daniel C. Sobral.
- Fixed entry for Charlie Root.
2001-06-29 09:47:27 +00:00
ru
ada9cef5f6 Make `rttrash' variable (#routes not in table but not freed) visible
through ``netstat -rs''.
2001-06-29 09:08:24 +00:00
ru
ac2d37d7fe 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
e2b9d0abef s/Netherlands/the Netherlands/g 2001-06-28 22:05:32 +00:00
guido
072728d905 Up the average age and hope I can still show my face next saturday. 2001-06-28 21:52:49 +00:00
ume
111d276984 - 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
tg
d021e1859a Fix another buffer overflow.
PR:		15593
Submitted by:	Przemyslaw Frasunek <venglin@lagoon.FreeBSD.lublin.pl>
2001-06-28 12:02:45 +00:00
msmith
f7198d2b3a 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
mikeh
e65f95daf3 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
dd
057bf882e3 Minor grammar cleanup.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:08:57 +00:00
dd
c42db86ef3 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
dd
4cbc233a90 Correct path to wtmp.
PR:		28433
Submitted by:	Joseph Mallett <jmallett@xMach.org>
2001-06-27 06:00:26 +00:00
mikeh
71ab6ae0a0 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
dd
2bbaae6092 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
schweikh
9e705f87d9 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
ru
0a8dcea155 Submitted by: hm 2001-06-26 08:00:43 +00:00
dan
c9b23b0586 Share my DOB with the world! 2001-06-26 05:04:03 +00:00
dwcjr
2c70b1c84e Originally stated wrong birthplace, thought it was current location. 2001-06-26 04:11:19 +00:00
dd
b13abb85cf The `file' argument is optional.
Obtained from:	OpenBSD
2001-06-26 02:14:13 +00:00
msmith
0cf535a7ac 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
dd
0dc5b41655 Silence -Wshadow and -Wmissing-prototypes; set WARNS=2.
Submitted by:	 Mike Barcroft <mike@q9media.com>
2001-06-25 21:25:27 +00:00
ru
672e483c4a Submitted by: andreas 2001-06-25 09:11:45 +00:00
dd
7894e59b7f Nuke unused variables. 2001-06-24 23:41:57 +00:00
dd
bbd68b6b40 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 23:22:14 +00:00
dd
dc0185a459 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
dd
84f4d732c8 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
dd
953ac95a7d 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
dwmalone
fce7386c11 Add prototypes and turn on WARNS=?2. 2001-06-24 12:23:54 +00:00
dd
04d1b1c8dd Remove duplicate words. 2001-06-24 01:34:38 +00:00
jasone
7c035c5a99 Add myself. 2001-06-24 00:45:03 +00:00
schweikh
31ec6670ae 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
ru
601ee32495 Three people known to be born on December 18!
Submitted by:	cwt
2001-06-23 17:34:26 +00:00
ru
f8e11dde26 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
bmilekic
7a5abc2b29 - 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
bmilekic
17bb3c6612 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
sobomax
6b8ef2e0b4 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
ru
b3aa602e23 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
rse
601886f70a Add myself. 2001-06-23 09:16:29 +00:00
ru
a176a48c8e Average age is 28 years and 11 months.
Submitted by:	hrs, marko
2001-06-23 08:36:11 +00:00
green
55a67a2903 Make sure the average age keeps on decreasing down that slippery slope. 2001-06-23 07:24:18 +00:00
ache
49fc10f4a2 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
887d4d7595 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
tanimura
ff768af144 Now how many files would a new committer have to commit? 2001-06-22 22:53:22 +00:00
wes
a5d5603803 Join in the fun. 2001-06-22 22:47:22 +00:00
obrien
fda3cb47bb 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
dd
d705df8034 WARNS= -> WARNS?=
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-22 21:38:30 +00:00
lioux
377cdacb0e Average tuning and contribute a Brazilian 2001-06-22 15:00:20 +00:00
ps
f08069a8fc Add myself 2001-06-22 14:50:34 +00:00
tmm
8d719b96a6 Add myself. 2001-06-22 14:43:53 +00:00
ru
138bdba5e4 More average age tuning.
Submitted by:	andy
2001-06-22 13:14:01 +00:00
dcs
27dae606df 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
ru
a2ac2ac3ee Fixed average age (28 years and 11 months).
Submitted by:	hosokawa
2001-06-22 10:11:39 +00:00
gshapiro
d3755d7aaa Add myself. It looks like I am in very good company in November. 2001-06-22 08:11:06 +00:00
kevlo
02beb2d366 Add myself 2001-06-22 07:35:56 +00:00
ru
8ac094084e - 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
bmilekic
5d710b296b 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
takawata
896e5d0889 Add Myself. 2001-06-22 04:57:20 +00:00
peter
9e145482a3 Dive in as well. 2001-06-22 04:52:05 +00:00
motoyuki
bf80e2401d Add myself. 2001-06-22 04:38:22 +00:00
sumikawa
42bce50cab Oops, I was born in Osaka. Kanagawa is my current address :-) 2001-06-22 02:45:25 +00:00
ade
14983f962a Add myself. sos, you have a clone (albeit younger by 9 years :) 2001-06-22 02:30:27 +00:00
des
dadeb6dc97 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
adfc446ad7 Add myself. 2001-06-22 01:11:35 +00:00
mjacob
7909bbb3fc 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
grog
b46a300644 Add myself. 2001-06-22 00:19:14 +00:00
brooks
10b6f524b9 Slightly lower average age. 2001-06-21 20:44:32 +00:00
billf
701192a378 represent detroit rock city 2001-06-21 20:15:10 +00:00
obrien
f3a74e6473 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
keichii
63b1933358 Follow Ben's suit in decreasing the average age here
by adding myself.
2001-06-21 15:06:14 +00:00
ben
d1e255005b Hopefully decrease the average age further still... :-) 2001-06-21 14:59:25 +00:00
billf
fda1b11ea0 bring down the average age a little 2001-06-21 09:57:48 +00:00
ru
1ef3c63208 FreeBSD calendar.
Submitted by:	developers
2001-06-21 09:07:22 +00:00
sumikawa
eaafbef7b8 - 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
dd
8a3438e493 This compiles cleanly with WARNS=2; make sure it stays that way. 2001-06-20 01:12:46 +00:00
dd
a925159d66 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
schweikh
79e3ccfb6f 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
mikeh
1cdd9402ff 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
mikeh
ab585f780e 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
roam
70e687ffe3 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
mikeh
016a180889 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
dd
9e14329549 Satisfy gcc's parenthetical needs and clamp down with WANRS=2.
Reviewed by:	md5(1)
2001-06-17 06:22:30 +00:00
mikeh
714cc67ab6 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
mikeh
8174fd75ca Use err(3) and style(9) cleanup.
MFC after:	2 weeks
2001-06-17 03:56:00 +00:00
dd
bff6376490 Make the synopsis resemble the usage in the source file. 2001-06-16 23:09:12 +00:00
mikeh
99efa6b196 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
jlemon
cad6c25631 Cast size_t -> int to satisfy printf %* constraints on the alpha. 2001-06-16 06:22:09 +00:00
assar
f5fc9b5340 remove warnings
remove superfluous declarations
make things more consistent
2001-06-15 23:55:45 +00:00
assar
ee746c97f9 remove K&R support 2001-06-15 23:35:13 +00:00
eric
b7ccfec9a3 Remove unwanted CFLAGS, and add a CVS id. 2001-06-15 23:25:22 +00:00
assar
6c0b683445 revert removal of warning and K&R support
Requested by: bde
2001-06-15 23:07:59 +00:00
assar
24963040e1 nflag -> numeric_port. nflag is no more 2001-06-15 22:57:41 +00:00
imp
6f314caece 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
ru
67653866aa 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
ru
dbd701e3cb Line up `netstat -rl' display. 2001-06-15 18:15:11 +00:00
assar
9e34fe7efd remove most of the warnings 2001-06-15 01:53:05 +00:00
assar
ea6e16bc20 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
ru
bf0e940d3c Restore -M -N support for -m.
PR:		20808
2001-06-14 15:45:09 +00:00
ru
95c8aa86ca Removed -h option. 2001-06-14 14:21:11 +00:00
ru
4218706f3d 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
dd
eaa2b71bee 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
e0f60f3756 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
mikeh
3979a82a11 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
schweikh
ec5e03bd09 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
roam
eaaabb7358 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
schweikh
bdb89dc451 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
obrien
b39990d7f9 Allow -u to work with UID's also.
Submitted by:	Seth Kingsley <seth.kingsley@windriver.com>
2001-06-12 15:58:31 +00:00
ru
6d6ba0ea8e 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
dd
a4104a3872 ANSI C prohibits text after #endif.
Reviewed by:	md5(1)
2001-06-12 03:44:35 +00:00
ume
9cbadc39d1 Mention about -rl behavior change. Now, MTU is printed. 2001-06-11 17:34:25 +00:00
ume
ed4c1f2911 Add missing column for Mtu in header when -rl is specified. 2001-06-11 17:32:53 +00:00
ume
832f8d2249 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
ache
f07123d0f1 ISO_ -> ISO 2001-06-11 04:24:43 +00:00
ache
0dbc366325 ISO_ -> ISO 2001-06-11 03:45:33 +00:00
ache
d4b6bbfc98 ISO_ -> ISO 2001-06-11 03:08:46 +00:00
ache
096a6eced8 ISO_ -> ISO 2001-06-11 02:59:46 +00:00
ache
2575a21628 Handle ASCII and US-ASCII aliases 2001-06-10 23:26:47 +00:00
ache
151cf8cd8a Install additional en_US links 2001-06-10 22:40:39 +00:00
ache
1988303641 Remove "SU" - not valid country code
Fix locale comparison with "C", add "POSIX"
2001-06-10 21:06:01 +00:00
ache
3686cdeeac Add more *.US-ASCII entries 2001-06-10 20:53:18 +00:00
ache
b1ccfa4658 Add Latin15 entries 2001-06-10 20:42:46 +00:00
ache
081b21dba9 Add new and Latin15 names 2001-06-10 18:03:53 +00:00
ache
aaea398d3d Understand new locale names and Latin15 2001-06-10 17:26:35 +00:00
ru
b6e786accf 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
phk
92f5bc0eec 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
sobomax
6c2547ab1f Correct cross-reference:
portmap.8 --> rpcbind.8

Submitted by:	.Xr testing script
2001-06-07 16:59:19 +00:00
jlemon
87d6ade9a7 Null terminate buffer.
PR: 23150
Submitted by: Dan Nelson <dnelson@emsphone.com>
MFC in: 1 week
2001-06-07 05:26:26 +00:00
dd
b10afe2606 Silence the remaining warnings and clamp down with WARNS=2.
Not objected to by:	-audit
2001-06-07 02:57:58 +00:00
jlemon
08bbb9b6f5 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
ru
f8f4f45d97 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
phk
0c609abe71 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
sobomax
20a33c88c5 - 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
mikeh
3f5e632ad1 Use S_IXUSR instead of hardcoded values.
Reviewed by:	md5
2001-06-02 03:10:07 +00:00
ru
5143a6d9aa 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
ume
8888e65159 Do retry next entry in addrinfo during connect.
MFC after:	1 week
2001-06-01 13:43:20 +00:00
tmm
cacf0242b2 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
des
e576be9a24 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
dd
b5f1d72b5f Correct a typo.
PR:		22885
Submitted by:	Rene de Vries <rene@tunix.nl>
2001-06-01 02:53:32 +00:00
dd
4c27d7fa93 Correct some typos.
PR:		27251
Submitted by:	Pekka Savola <pekkas@netcore.fi>
2001-06-01 02:28:15 +00:00
dd
afa7c3de74 Don't install setgid kmem. 2001-06-01 01:14:28 +00:00
tmm
b1d338257d 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
dd
5d0075dbe1 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
ru
5ecf3be225 Display -tcp w/o load average so that all statistics fits on a 80x25 screen. 2001-05-31 07:14:52 +00:00
ru
262e245e85 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
ru
0ca37f1781 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
ru
28c43881ca 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
dd
6948305539 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
dd
affa73f3b3 Don't claim to ignore interrupts.
PR:		27747
Submitted by:	Gerhard Sittig <Gerhard.Sittig@gmx.net>
2001-05-30 02:39:53 +00:00
dd
29ab76864e Remove home-grown prototypes of time() and localtime().
Reviewed by:	md5(1)
2001-05-30 02:38:10 +00:00
dd
6c001393ec 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
phk
9dfeaf738e Remove MFS 2001-05-29 20:39:47 +00:00
imp
0925b2a595 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
gshapiro
2dc2275139 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
phk
ffbd616b16 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
phk
2595178f4b Call kvm_close() before exit for consistency.
PR:		24654
Submitted by:	Daniel Hemmerich zartik@yahoo.com
2001-05-28 21:30:31 +00:00
ru
03c37077e5 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
ru
68d3eccc3a 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
ru
13b0e9b8e7 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
dd
ec2af058ec Silence warnings (most about constness) and clamp down with WARNS=2.
Tested on i386 and alpha.
2001-05-28 06:14:48 +00:00
mikeh
b657acfbd1 Fix overflowing on nul character.
PR:		bin/16926
MFC after:	1 week
2001-05-28 03:49:23 +00:00
dd
315d04216a 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
dd
0c7673b25e Silence warnings and compile with WARNS=2 on i386 and alpha. 2001-05-28 00:55:50 +00:00
dd
dda28cb6eb 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
mikeh
aa40e2eac7 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
des
c652271f23 Damn. Fix typo in previous commit. 2001-05-27 10:46:19 +00:00
kris
338a0b8095 Fix a trivial warning and clamp down with WARNS=2
MFC after:      1 week
2001-05-26 22:47:58 +00:00
kris
98b6fe6f08 Fix a trivial warning and clamp down with WARNS=2
MFC after:	1 week
2001-05-26 22:45:14 +00:00
kris
ddc5c05478 Fix some trivial warnings and clamp down with WARNS=2
MFC after:	1 week
2001-05-26 22:39:33 +00:00
kris
fa1f42013f Fix WARNS=2 warnings on alpha and i386 and clamp it down 2001-05-26 21:49:29 +00:00
des
b7626578b0 When running on a tty, install an authentication callback. 2001-05-26 19:51:05 +00:00
markm
bcb0f2f3e2 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
tmm
420a2e019f 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
tmm
5ea7c0331a 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
d7e9eefb46 Mark error() as __printflike() and fix a non-exploitable format string
error.

MFC after:	1 week
2001-05-25 23:15:05 +00:00
tmm
bc55d64bd1 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
ru
8094d979ca - 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
ru
0c045c5d54 Make it clear that -P is the default.
PR:		docs/27629
2001-05-25 07:32:58 +00:00
phk
32050df423 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
ru
4474a53d43 Backout rev. 1.22 as the change that caused problems was also backed out. 2001-05-24 08:47:57 +00:00
phk
de4b15c512 define _KERNEL before including <sys/conf.h> 2001-05-23 23:03:00 +00:00
phk
3c306fcab0 We don't need to include <sys/conf.h> 2001-05-23 23:01:37 +00:00
dillon
a2bd71dbaf 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
obrien
60e5f6597e Note that sys.mk is read before any other file (even Makefile) 2001-05-23 18:21:36 +00:00
pirzyk
c043349b60 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
tg
d3711647e2 Update BIOS time.
Submitted by:	Igor Serikov <bt@turtle.pangeatech.com>
2001-05-22 11:33:38 +00:00
tg
39e8f234c4 Beautify debugging output. 2001-05-22 11:33:17 +00:00
tg
5ff7125205 Fix slice handling. Add 6 (`big' DOS partition) as a legal systemID. 2001-05-22 11:32:38 +00:00
tg
21dff572d9 Silence some debugging output when installing Borland's Turbo C. 2001-05-22 11:32:15 +00:00
tg
3f61b37d6e Fix boot order (really try A:, then C:, unless the `boot' option is
specified in .doscmdrc).
2001-05-22 11:31:39 +00:00
tg
d56823d7f2 Implement file truncation (DOS function 0x21, sub 0x40).
PR:		20925
Submitted by:	Tatsuya Kudoh <cdr@cosmonet.org>
2001-05-22 11:31:08 +00:00
tg
2486cc2c02 Correct typo to get DOS function 0x51 (get PSP) to work.
PR:		15547
Submitted by:	Atushi Sakauchi <sakauchi@yamame.to>
2001-05-22 11:30:22 +00:00
tg
4a353a58b9 DOS function 0x0a (buffered keyboard input) returned immediately.
PR:		15531
Submitted by:	Atushi Sakauchi <sakauchi@yamame.to>
2001-05-22 11:29:31 +00:00
tg
1877189382 Fix DOS function 4c (exit with return code).
PR:		15528
Submitted by:	Atushi Sakauchi <sakauchi@yamame.to>
2001-05-22 11:28:28 +00:00
ru
c78dfea20c mdoc(7) police: fix markup.
Submitted by:	roam, ru
2001-05-22 07:05:39 +00:00
eric
aee1b05511 Remove an accidentaly added extra blank line.
Approved by:	murray
2001-05-22 06:20:27 +00:00
guido
700525303e Disable SIGHUP while getting the login name.
Reviewed by:	security-officer
2001-05-21 20:19:59 +00:00
ru
2a37b01164 Work around the side effect of src/include/Makefile,v 1.137 changes.
(The proper fix is to add missing #include directives.)
2001-05-21 17:06:26 +00:00
dd
79b7ca8187 Print commas in the group list in user(). current() already did this.
Reviewed by:	ru, sheldonh
Inspired by:	OpenBSD, NetBSD
2001-05-20 20:32:13 +00:00
kris
3704482b08 Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after:      1 week
2001-05-20 06:21:12 +00:00
kris
345ed876ad Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after:	1 week
2001-05-20 06:18:37 +00:00
kris
0788a7a330 Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC After:	1 week
2001-05-20 06:16:53 +00:00
kris
65be28ca85 This passes WARNS=2 on alpha and i386 2001-05-20 06:15:09 +00:00
sobomax
491129cbdf Move scrshot(1) functionality into vidcontrol(1).
Suggested by:		many
Not objected to by:	nik (scrshot co-author)
2001-05-19 06:47:36 +00:00
gshapiro
5201154685 String operations could silently truncate long strings, leaving the output
corrupted.  Mark's patch fixes this be removing the MAXTOK limitation on
substring operations and allowing the putback buffer size to be the limiting
factor.  If the putback buffer size if reached, m4 gives an error instead of
silently truncating the string.

PR:		bin/26619
Submitted by:	Mark Peek <mark-ml@whistle.com>
MFC after:	5 days
2001-05-18 18:35:34 +00:00
nik
f6b3b57bdd I appear to be badly out of practice. Remember to flush the output stream
when mixing printf and write.
2001-05-18 14:07:51 +00:00
ru
52a9144c8b Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
ru
0565ca3c5b Remove GCC-ism (-Wall). 2001-05-18 10:40:34 +00:00
ru
89fc7497bd mdoc(7) police: Fix markup and spelling. 2001-05-18 10:39:41 +00:00
ru
4048b83188 Don't leak memory when compiling text following the a', c' or `i' command.
Testcase:

echo FOO | sed "/FOO/c\\
`jot -b 'aaaa\' 500`"

Submitted by:	Max Khon <fjoe@newst.net>
2001-05-18 09:48:17 +00:00
nik
b3fa78683d Add scrshot to the i386 specific section. If someone can test this on the
Alpha I'd appreciate it.
2001-05-18 09:06:00 +00:00
sobomax
34a18784ef By default build make(1) as a static binary. It costs only 100k of additional
disk space, buf provides measureable speed increase for make-intensive
operations, such as pkg_version(1), `make world' and so on.

MFC after:	1 week
2001-05-18 09:05:56 +00:00
nik
1136460dcc New scrshot utility, using the CONS_SCRSHOT ioctl. Usage is
scrshot /dev/ttyv0 > shot.scr

See the shot2{txt,png} utilities (soon to be) in the ports collection.

Reviewed by:	-arch
2001-05-18 09:00:51 +00:00
obrien
0e7e1d4ade Missed a few things. 2001-05-18 05:46:40 +00:00
obrien
f45fae89c2 In a word -- style(9). 2001-05-18 05:33:42 +00:00
obrien
de8cebdec8 Add the "prompt" and "passwd_prompt" fields to /etc/login.conf,
which makes lgoin more like getty in its ability to be configured.

Submitted by:	tlambert (code only)
2001-05-18 04:55:16 +00:00
obrien
ba39ea3893 Fix the rcsid's. 2001-05-17 09:38:49 +00:00
eric
5d8c743866 Check for the expiration of an account and its password in the proper
order.

Reviewed by:	-audit (silence)
Approved by:	murray
Obtained from:	OpenBSD
MFC after:	5 days
2001-05-17 03:10:04 +00:00
ru
b9f33f3993 mdoc(7) police: fix markup. 2001-05-16 13:53:19 +00:00
phk
9c6cf1aa44 Fix an array which was too small.
PR:		27380
Submitted by:	Samuel Greear <sgreear@vsni.com>
2001-05-16 11:13:16 +00:00
ru
f46bc2e2e9 mdoc(7) police: fix markup (demonstrates new -xwidth modifier). 2001-05-16 10:18:20 +00:00
dd
13db4bb4b3 Add a -J replstr option that allows the user to tell xargs to insert
the data read from standard input at a specific point in the command
line arguments rather than at the end.

Submitted by:	dd, gad
Reviewed by:	gad, brian
2001-05-15 00:31:19 +00:00
eric
13fb775e00 Add some gravitational values.
Approved by:	murray
2001-05-12 21:21:38 +00:00
dd
f7d244cc07 Document the -h option. 2001-05-11 23:53:46 +00:00
mikeh
0746a554bf Allow mail(1) to be able to read Eudora mailboxes by transforming
lines that end in <CR><LF> to just <LF>.

Reviewed by:	imp
Obtained from:	OpenBSD
2001-05-11 03:07:11 +00:00
sheldonh
cf69042ef6 Handle sbsize as a size, not a number.
Submitted by:	Paul Herman <pherman@frenchfries.net>
2001-05-10 17:15:06 +00:00
obrien
c5e2cc3302 Tell the user what group they must be in to su to root.
Submitted by:	Seth Kingsley <sethk@osd.bsdi.com>
2001-05-10 07:37:25 +00:00
ru
4590d54485 mdoc(7) police: fix markup. 2001-05-10 07:29:35 +00:00
schweikh
c81b45062f Here comes the forgotten C source, oopsy.
Turned the shell script into a binary fixing several minor buglets.
Mention _POSIX_SOURCE feature test macro in man page.
PR:           bin/19337
Submitted by: schweikh
Reviewed by:  joerg, bde
MFC after:    2 weeks
2001-05-08 20:27:14 +00:00
schweikh
3f3636cf89 Turned the shell script into a binary fixing several minor buglets.
Mention _POSIX_SOURCE feature test macro in man page.
PR:		bin/19337
Submitted by:	myself way back when I was a nobody :-) (schweikh)
Reviewed by:	joerg, bde
MFC after:	2 weeks
2001-05-08 19:47:01 +00:00
kris
fd84041b00 When opening the file to broadcast, do it with the user's gid, not the
egid (tty).

Obtained from:	OpenBSD
Submitted by:	Maxime Henrion <mux@qualys.com>
Reviewed by:	imp
2001-05-08 11:11:42 +00:00
ru
0a9fa3241f Restore printing of routes cloned from a RTF_CLONING parent
(e.g., ARP table entries) with the default routing display.

PR:		bin/26970
Reviewed by:	wollman
MFC after:	3 days
2001-05-07 12:29:36 +00:00
brian
8927370f68 Fix markup
Spotted by:	Jens Schweikhardt <schweikh@schweikhardt.net>
2001-05-05 09:02:24 +00:00
brian
5ff7127b68 Add nl(1)
PR:		27078
Obtained from:	NetBSD
2001-05-04 17:25:23 +00:00
phk
e51263b8a6 They add the following commands:
-anewer
   -cnewer
   -mnewer
   -okdir
   -newer[acm][acmt]

 With it, you can form queries like

     find . -newerct '1 minute ago' -print

 As an extra bonus, the program is ANSI-fied - the original version
 relies on some obscure features of K&R C.

(This PR was submitted in 1999, and the submittor has kept the patch
updated ever since, hats off for him guys, and how about you close a PR ??)

PR:		9374
Submitted by:	Martin Birgmeier <Martin.Birgmeier@aon.at>
2001-05-03 18:05:35 +00:00
obrien
ed39fc393a Fix minor style issue from previous commit. 2001-05-03 00:35:53 +00:00
obrien
21fd43ad54 Fix $FreeBSD$ style. 2001-05-02 23:57:49 +00:00
obrien
538e761e02 * include/elf.h has been repo copied to include/elf-hints.h, and it no
longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.
2001-05-02 23:56:21 +00:00
dd
a5f704a929 Alphabetize command-line options in the synopsis. 2001-05-02 06:41:46 +00:00
markm
f00ce688f2 Clean out some cruft that has been put in a better (central) place. 2001-05-01 10:30:08 +00:00
markm
9f745ed9e1 Compensate for header dethreading. 2001-05-01 08:46:02 +00:00
dd
841942d18f mdoc(7) police: remove hard sentence breaks. 2001-04-30 23:20:43 +00:00
peter
d6c8621988 Disable llib. The previous commit does not go anywhere near far enough
to enable this.
1: it was running xlint out of the object directory, which is not
safe (ie: run a 5.x binary on a 4.x world - no libc.so.5, or run an
alpha binary on x86).
2: lint has /usr/libexec/lint1 and /usr/libexec/lint2 hard coded in.
This is the same as problem 1.
3: lint has got /usr/bin/cc hard coded in as well.  Also, see problem 1.
There are probably more problems, but these are enough of a showstopper.
2001-04-29 03:19:58 +00:00
grog
4b9d9cbaac Revert consequences of changes to mount.h, part 2.
Requested by:	bde
2001-04-29 02:45:39 +00:00
markm
b28ae3ab9a Dike out Kerberos(IV) support on the grounds that better kerberos
support can be gotten via PAM.
2001-04-28 13:44:14 +00:00
markm
200ed6ce48 Dike out the Kerberos(IV) support on the grounds that better kerberos
support can be already obtained via PAM.
2001-04-28 13:40:52 +00:00
markm
3fd4820a39 Enable (optional) static linking. 2001-04-28 08:06:33 +00:00
ache
c58782ad28 Fix wrong (char) cast (instead of unsigned char) causing highlighting of all
8bit characters due to famous sign extension bug.
2001-04-27 22:35:44 +00:00
jhb
cea5d733b2 Check the new kern.smp.active sysctl rather than the non-existent
smp.smp_active sysctl to determine if we are running on an SMP machine.
2001-04-27 19:33:50 +00:00
ru
e27059862d mdoc(7) police: fix markup.
(Shows how powerful new -mdoc is.)
2001-04-27 10:13:20 +00:00
schweikh
89bf59e333 Fix a grammar bogon. 2001-04-26 17:16:59 +00:00
asmodai
cfead2f77c Remove XXX_BROKEN_GCC from the Makefile.
This compiles just fine with recent gcc's.
2001-04-26 09:44:41 +00:00
dd
8d8609277a mdoc(7) police: remove hard sentence breaks. 2001-04-26 06:10:46 +00:00
fenner
2947d98f45 Add missing break when printing IPv6 multicast addresses.
Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type
 a multicast sockaddr_dl is.
2001-04-26 06:02:03 +00:00
will
443f4823f6 Remove GCC-ism (-Wall).
Submitted by:	bde
2001-04-26 04:40:57 +00:00
ru
f6842a25aa Add -Wall. 2001-04-25 14:59:16 +00:00
ru
9c66711298 -Wall cleanup. 2001-04-25 14:45:36 +00:00
ru
d2b01e69fa unifdef -UWANT_ENV_PWD.
No one ever going to use this bugfeature.
2001-04-25 14:44:42 +00:00
ru
eaf5ab661c Make ${.OBJDIR} canonical.
Reviewed by:	bde
2001-04-25 14:22:38 +00:00
dougb
fa10273007 Reverse order of from and to in order to match reality.
PR:		26631
Submitted by:	Glenn Johnson, glennpj@charter.net
2001-04-25 07:43:45 +00:00
dd
3b8fad2c59 Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).
PR:		26810
Reviewed by:	dwmalone
2001-04-25 05:42:53 +00:00
asmodai
ae091bd9b2 Wrap lint calling in a variable.
Set LINT to the obj path, since we need to use the new lint's features
to create .ln files.  We do not want to use the installed version for that,
since that might create files according to the old lint.

This is still a work in progress to clean this all up, but it gets
through buildworld, which was the problem at hand.
2001-04-24 20:23:37 +00:00
asmodai
4c41346aa3 Add build-tools target to the description file, requisite of making
lint a build-tool.

Also re-enable llib.
2001-04-24 20:20:41 +00:00
kris
fb2fd90f05 Call usage() if given more than 1 argument.
Submitted by:	"Andrew R. Reiter" <arr@watson.org>
Obtained from:	OpenBSD
2001-04-24 10:39:17 +00:00
asmodai
816a59ecce Keep my dirty paws off of the $NetBSD$ id's. They're tabbed and should
remain so.

Submitted by:   bde/obrien
2001-04-23 20:07:21 +00:00
grog
119c82ccab Include correct header files, in preparation for fixing sys/mount.h.
Suggested-by:	phk
2001-04-23 08:11:54 +00:00
asmodai
c9040658ef Keep my dirty paws off of the $NetBSD$ id's. They're tabbed and should
remain so.

Submitted by:	bde/obrien
2001-04-22 17:06:12 +00:00
asmodai
2b492bb508 Aesthetics: fix placement of $NetBSD$ (use space instead of tab) 2001-04-21 11:17:44 +00:00
knu
a90e4c46cf Correct and update Japanese holidays.
PR:		misc/26703
Submitted by:	SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
2001-04-20 13:44:21 +00:00
asmodai
b66840f81e Properly constify the rcsid[]. 2001-04-20 09:43:30 +00:00
asmodai
c6f8831e8e Add $FreeBSD$ to the files which didn't have it yet.
Fix the .c files, so that the $FreeBSD$ is contained within the rcsid. [bde]
2001-04-20 09:33:57 +00:00
obrien
40b1ea413b Fix damage I did in rev 1.4 that broke formatting this example:
void foo(struct bar *bar) { return 0; }
2001-04-20 07:41:23 +00:00
asmodai
fbae347995 Change uses of mktemp() to mkstemp().
Call cc -E, not cpp, this allows lint to be unaware of any
machine-dependent defines that cc(1) may normally define.

Change fork() to vfork() and exit() to _exit().

Reuse temporary file so that multiple files passed can be processed without
problems.
2001-04-19 15:40:04 +00:00
asmodai
e1720f746e Change SYNOPSIS to use mdoc keeps.
Obtained from:	NetBSD
2001-04-19 14:48:36 +00:00
asmodai
e0f59af9db Fix some mdoc usage.
Obtained from:	NetBSD
2001-04-19 14:20:54 +00:00
asmodai
baa2a0efea Fix english grammar: then does -> than.
Obtained from:	NetBSD
2001-04-19 14:06:12 +00:00
asmodai
0bcdf5ba8e Add a comma after e.g.. This syncs us more with NetBSD and looks more
aesthetically correct.

Obtained from:	NetBSD
2001-04-19 14:02:36 +00:00
asmodai
095629503c Fix spelling of comparison (was: comparision).
Add $FreeBSD$.

Obtained from:	NetBSD/OpenBSD
2001-04-19 11:10:51 +00:00
ache
b534ec273a Add Russian message catalog
PR:		26663
Submitted by:	Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2001-04-19 10:32:25 +00:00
ru
2d1b95a96f mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
n_hibma
af860f7491 Remove a bogus %s from a printf.
Submitted by:	kris
2001-04-17 15:00:03 +00:00
jesper
264c033577 Fix typo s/thissystem/this system/
Submitted by:	Stephen <sdk@shell.yuck.net>
2001-04-16 21:14:13 +00:00
gshapiro
3f95f71144 Clean up temporary file(s) and directory when m4 exits without falling
through main() (e.g., signals or calls to errx()).

PR:		conf/25715
2001-04-16 18:36:35 +00:00
ru
b460306b71 mdoc(7) police: cosmetics. 2001-04-16 15:14:07 +00:00
dd
02c02ffeef Grammar police: "its", not "it's", is the possessive form of "it". 2001-04-15 19:53:47 +00:00
alfred
9c4024b5ed Turn -b (BSD socket compat mode) back on by default, as we don't have TLI/XTI 2001-04-13 23:20:16 +00:00
dd
89302146ee mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.
Reviewed by:	ru
2001-04-13 19:59:47 +00:00
ru
00852eaaa7 mdoc(7) police: Fixed typo and markup in rev.1.11. 2001-04-13 09:15:16 +00:00
brian
e47f3b7b9f o The -s limit is ARG_MAX - 4K, not ARG_MAX - 2K.
o Mention that the current environment is part of the -s calculation.
o Add a BUGS section that warns against executing a program that increases
  the size of the argument list or the size of the environment.

  I have wondered for a while what the difference is between

    get a big list | xargs sudo command

  which fails and

    get a big list | sudo xargs command

  which succeeds.  The answer is that in the first case, sudo expands
  the environment and pushes the amount of data passed into execve over
  the E2BIG threshold.
2001-04-10 23:16:55 +00:00
ru
ef2dbc1fb0 beforeinstall -> SCRIPTS. 2001-04-07 11:21:35 +00:00
ru
49e5408725 Execute this script in a "C" locale environment.
Currently, cs_CZ.ISO_8859-2 locale's collation sequence is
broken, and this caused grep(1) to skip some include files.

Reported by:	Michal Mertl <mime@traveller.cz>
2001-04-06 14:40:26 +00:00
iedowse
467415a2ba Add IPv6 support to showmount(8). This replaces IPv4-specific code
with calls to the new protocol-independent clnt_*_create functions
provided by ti-rpc. Martin submitted a more complex patch to achieve
this, but it turns out that clnt_create() does everything we need.

Reviewed by:	Martin Blapp <mb@imp.ch>
2001-04-05 17:18:36 +00:00
bde
3750cde6a8 Fixed a null pointer bug in rev.1.10. Rev.1.10 was supposed to to
move the "for safety" zeroing of unused members of timebuf to a better
place.  It actually moved the zeroing to a worse place and didn't add
necessary braces.

Fixed a nearby older bug.  timebuf.tm_gmtoff was sometimes used even
when timebuf was invalid.  Even when it is zeroed, a failing mktime()
might set it to nonzero.

PR:		25243
2001-04-04 15:09:54 +00:00
dwmalone
fc732ffe20 Round up before checking if the width is smaller than the widest
column, otherwise we may divide by zero later.

PR:		26283
Reviewed by:	roam
2001-04-03 18:03:29 +00:00
ru
d042566442 Drop support for -DRELEASE_BUILD_FIXIT and -DCRUNCHED_BINARY in
${CFLAGS}.  The only supported method thus is -DRELEASE_CRUNCH.
2001-04-03 13:34:35 +00:00
ru
567c484883 Do not override `realinstall' target, use ${PROGNAME}. 2001-04-02 12:06:00 +00:00
ru
5c4fced5ff Do not override `realinstall' target, use ${PROGNAME}. 2001-04-02 11:54:59 +00:00
ru
9f322d84b5 libtelnet.a is gone; add a special hack for `make release' fixit floppy. 2001-03-31 17:04:49 +00:00
phk
117d022017 Don't core dump when given "-i -a". Problem caused by a mistaken
dereference of a kernel-pointer in userland.

PR:		26168
Submitted by:	Peter Pentchev <roam@orbitel.bg>
2001-03-30 19:16:04 +00:00
eric
e7a634d197 Include a missing header, and change a mktemp(3), mkdir(2) sequence to
mkdtemp(3).

Approved by:	murray
2001-03-29 20:33:57 +00:00
gallatin
5fb024dfe1 numdirtybuffers is an int, not a long. 2001-03-29 02:18:19 +00:00
joerg
239977e43f Update message #56. Maxim didn't merge the English version here since
partially merging the line would have exceeded 80 characters.

Reminded by:	sobomax
2001-03-28 21:33:30 +00:00
joerg
d2636800bf There was only a single message to be translated into German here. 2001-03-28 21:02:56 +00:00
des
30512a1dcf Bring the usage message in synch with reality.
PR:		bin/26160
2001-03-28 21:01:07 +00:00
sobomax
1012e7d28c Add Ukrainian translation.
Submitted by:	Olexander Kunytsa <kunia@wolf.istc.kiev.ua>
2001-03-28 16:51:02 +00:00
ache
323ee87c02 Back out my fseeko -> fseek(END) change - we need to position on what we
displayed last, not to the end of file
2001-03-28 13:10:17 +00:00
ru
98c6ecb383 Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.
Approved by:	markm
2001-03-28 12:08:22 +00:00
ache
b3c7f151dc Restore part of my fix spammed in v1.23:
fseeko(file_size, SEEK_SET) -> fseek(0L, SEEK_END)
1) File may grows between operations, so fseeko to file_size may miss
2) 0L, SEEK_END is the same code using in tail in all other places
2001-03-27 23:24:25 +00:00
dwmalone
17ede005a9 Fix tail to work on files bigger than 2GB.
PR:		14786
Reviewed by:	iedowse
2001-03-27 20:37:34 +00:00
markm
f767ca7e60 Add full PAM support for account management and sessions.
The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux
package's PAM patches to the BSD login.c

Submitted by:	"David J. MacKenzie" <djm@web.us.uu.net>
2001-03-27 19:40:51 +00:00
sobomax
e903de39f3 Describe details of importing. 2001-03-27 16:27:31 +00:00
ru
ba83ff266d Traverse ${DESTDIR}/usr/include in lexographical order.
This should fix problems reported recently on -current.
2001-03-27 16:15:25 +00:00
ache
aec4c6204b Add comment explaining why size not passed directly to mmap, i.e. not relay
on its check.
KNF multi-line comments
(inspired by bde)
2001-03-27 15:53:48 +00:00
ru
17f756a033 Do not override the ``install'' target. 2001-03-27 15:14:49 +00:00
sobomax
04b851ee00 Update FreeBSD translations to match 1.4.1 (actually just copied Enslish
messages as I don't know de, pl and fr).
2001-03-27 13:53:08 +00:00
sobomax
ea073d6e59 Resolve conflicts. 2001-03-27 13:51:18 +00:00
sobomax
cc58906153 This commit was generated by cvs2svn to compensate for changes in r74853,
which included commits to RCS files with non-trunk default branches.
2001-03-27 13:38:19 +00:00