Commit Graph

4636 Commits

Author SHA1 Message Date
Mark Murray
16b07a33f9 WARNS=2 fixes, remove register keyword, use __FBSDID() 2001-12-11 22:36:26 +00:00
Mark Murray
9ba3a235b1 WARNS=2 fixes, use __FBSDID(), kill register keyword. 2001-12-11 22:34:38 +00:00
Mark Murray
6f223d2222 Temporarily "protect" this against the coming WARNS=2 default as it
is "hard to fix" (meaning I will come back to fix it if nobody gets
there first).
2001-12-11 22:33:11 +00:00
Mark Murray
8878836d7b Remove WARNS=2 as this is to be the default. 2001-12-11 22:31:01 +00:00
Mark Murray
2c062c85e5 WARNS=2 fix, use __FBSDID().
WARNS=2 is not in Makefile, as this will be the default.
2001-12-11 22:29:53 +00:00
Mark Murray
1c6cde4bb5 Use FBSDID(), WARNS=2 fix.
Mkaefile does not use WARNS=2 beacuse this will be made default.
2001-12-11 22:27:26 +00:00
Mark Murray
d46847c026 Use __FBSDID(). remove WARNS=2 as this is going to be default. 2001-12-11 22:25:43 +00:00
Mark Murray
7a8fb588c7 WARNS=2 fix, use __FBSDID().
Not added to Makefgile as WARNS=2 will be made default.
2001-12-11 22:23:53 +00:00
Mark Murray
075f293932 WARNS=2 fix, use __FBSDID().
Not added to Makefile as WARNS=2 will be made default.
2001-12-11 22:22:15 +00:00
Mark Murray
8b56c58be4 WARNS=2 fix, use __FBSDID() and sort includes.
WARNS=2 not added to Makefile as it is to become default.
2001-12-11 22:18:47 +00:00
Mark Murray
e1a50fc693 WARNS=2 fix, but do not set this im Makefile, because this ill be the
default for src/usr.bin/
2001-12-11 22:13:02 +00:00
Mark Murray
082d8262b0 WARNS=2 fixes
__FBSDID() additions
some include file sorting.
Some Makefile sorting.

WARNS?=2 is not added to the Makefile, because it is going to be
default for usr.bin/
NO_WERROR is set because there are rpc*.h file issues.
2001-12-11 22:08:58 +00:00
David Malone
9f5b04e925 Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
2001-12-10 21:13:08 +00:00
Dag-Erling Smørgrav
62f6d0b88e Set fetchDebug if v_level is 3 or more.
PR:		bin/32615
MFC after:	1 week
2001-12-09 15:07:26 +00:00
Jordan K. Hubbard
cd7377a368 Don't assume that the number of fds to select on is known quantity (in
this case 16).  Use dynamic FD_SETs and calculated high-water marks
throughout.
Obtained from:	OpenBSD and Apple's Radar database
MFC after:	2 days
2001-12-08 21:51:34 +00:00
Mike Barcroft
3334b16966 Add support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
PR:	30676
2001-12-08 21:22:42 +00:00
Warner Losh
bc505f7742 Only use __FBSDID if it is defined. This fixes the 4.4-release (but
not stable) -> current upgrade path.

Reviewed by: markm
2001-12-08 02:28:16 +00:00
David Malone
9d26129dba Yes seems to be warns clean on alpha and i386. 2001-12-03 21:42:15 +00:00
David Malone
6215f63b5e Some warns cleanups - I think this is still not warns clean on the alpha. 2001-12-03 21:40:07 +00:00
David Malone
57a4972d78 Warns cleanup. Add FreeBSD ID to Makefile. 2001-12-03 21:39:04 +00:00
David Malone
c83caf7b8d Warns cleanups. Add FreeBSD ID to Makefile. 2001-12-03 21:37:35 +00:00
David Malone
0fce1f20c8 Warns cleanup - don't declare ttyname(). Add FreeBSD ID to Makefile. 2001-12-03 21:33:59 +00:00
David Malone
c86e1d1f86 Warns cleanups. Add missing prototype. 2001-12-03 21:32:54 +00:00
David Malone
0050672a16 Fix one warning - still not warns clean. 2001-12-03 21:32:01 +00:00
David Malone
47e68d542a Strip seems to be warns clean on i386 and alpha. 2001-12-03 21:28:37 +00:00
David Malone
45af1a4cbd Warns cleanups. 2001-12-03 21:27:45 +00:00
David Malone
6e878749df Warns cleanups. This makes the showmount code warns clean, but some
of the rpc headers aren't.
2001-12-03 21:25:28 +00:00
David Malone
b139689c6b Warns cleanups. Add FreeBSD ID. 2001-12-03 21:22:56 +00:00
David Malone
586ffa2e8a Warns cleanups, add FreeBSD IDs. 2001-12-03 21:20:37 +00:00
David Malone
73f631edfa Warnc cleanups. Add FreeBSD IDs. 2001-12-03 21:15:40 +00:00
David Malone
054bbc7bc3 Warns cleanups. Don't use gccism -Wall. 2001-12-03 21:13:03 +00:00
David Malone
9178fa121e Nohup seems to be warns clean on alpha and i386. Add FreeBSD id to Makefile. 2001-12-03 21:12:03 +00:00
David Malone
ae1a490de6 Warns cleanup. Add FreeBSD ID to Makefile and nice.c. 2001-12-03 21:10:47 +00:00
David Malone
9ff5e898db Warns cleanups. 2001-12-03 21:07:23 +00:00
David Malone
1627c04d8c Warns cleanup. Add FreeBSD ID to Makefile. 2001-12-03 21:06:20 +00:00
David Malone
106b1a8c91 Warns cleanup - not ready for WARNS=2 yet. 2001-12-03 21:04:50 +00:00
David Malone
fae4fbf838 Warns cleanups. Add FreeBSD ID to Makefile. 2001-12-03 21:03:39 +00:00
David Malone
4285ad09c9 Warns cleanups:
Signal handlers are supposed to take an int as an arg.
Don't locally declare crypt or ttyname.
2001-12-03 21:01:52 +00:00
David Malone
7f6475cec1 Warns cleanups:
Declare functions in advance of using them
There is no printf specifies %k - I think it was supposed to be %s.
2001-12-03 21:00:33 +00:00
David Malone
1e49c24583 Warns cleanup. 2001-12-03 20:58:56 +00:00
David Malone
b268886863 Warns cleanup (just make main return an int). 2001-12-03 20:57:49 +00:00
David Malone
5748d9ba6f Cast off_t to long long before printing. Use %ll instead of %q incase
long long and quad_t are not the same.
2001-12-03 20:56:16 +00:00
John Hay
dcb9e45113 Merge from crypto/telnet/telnet/commands.c. Add the necessary paths to
the kerberos libraries and includes.
2001-12-03 17:53:09 +00:00
Mark Murray
7a32b4b1c6 Merge from master (crypto) telnet. WARNS fixes for alpha. 2001-12-03 12:41:19 +00:00
Mark Murray
151aa6c35a Use __FBSDID(). 2001-12-03 01:15:28 +00:00
Mark Murray
863475aa48 Reorder Makefile for style. 2001-12-03 01:09:17 +00:00
Mark Murray
d0effe7563 WARNS=2 and -Wall are not both needed. (The second is a subset of the
first)
2001-12-03 00:16:52 +00:00
Mark Murray
f86b9f6d64 Use __FBSDID(). 2001-12-03 00:07:59 +00:00
Mark Murray
7f1afe0e0e Style fixes.
Use __FBSDID().
Be consistent WRT ANSI use.

OK'ed by:	obrien
2001-12-03 00:00:22 +00:00
Mark Murray
546c7f6629 Use __FBSDID().
Use a better choice than size_t for vertain variables.
Fix some comment alignment.
2001-12-02 23:58:38 +00:00
Mark Murray
9240706953 Use __FBSDID(). 2001-12-02 23:52:47 +00:00
Mark Murray
6e47870b77 Style stuff.
Sort includes.
Remove 'register'
Use __FBSDID().
2001-12-02 23:44:42 +00:00
Mark Murray
3945c68f93 WARNS=2 fixup.
Use __FBSDID().
Set NO_WERROR because this would rely on some lex(1) fixes that
cannot be committed yet.
2001-12-02 23:40:46 +00:00
Mark Murray
84c0ff2233 Use __FBSDID(). 2001-12-02 23:34:16 +00:00
Mark Murray
6af414cb2e Turn on WARNS=2.
Use __FBSDID().
2001-12-02 23:29:26 +00:00
Mark Murray
47faf12380 WARNS=2 fixes. Also, use __FBSDID(), and sort includes. 2001-12-02 23:12:33 +00:00
Mark Murray
b802e87095 Protect "make world", as I am doing some (potentially) dangerous
WARNS=2 fixes.

Add a commented out WARNS=2 to indicate future intentions.
2001-12-02 23:10:57 +00:00
Mark Murray
58cb8b9466 Turn on WARNS=2. this compiles cleanly. 2001-12-02 23:09:09 +00:00
Mark Murray
f614104aeb Slight makefile style.
Use __FBSDID().
2001-12-02 23:04:14 +00:00
Mark Murray
cbc4699c32 Use __FBSDID(). 2001-12-02 22:46:47 +00:00
Mark Murray
9e1e9c4421 WARNS=2 fixup (mostly. Some are Hard To Fix(tm), so NO_WERROR is set)
Use __FBSDID().
Sort some headers.
2001-12-02 22:44:14 +00:00
Mark Murray
f1b6a5418e Use __FBSDID(). 2001-12-02 21:24:03 +00:00
Mark Murray
1a8b24c257 Use __FBSDID(). Also do a bit of cosmetic #if and header-order
cleaning-up.
2001-12-02 20:54:57 +00:00
Mark Murray
01823518f5 Use __FBSDID(). 2001-12-02 20:45:24 +00:00
Mark Murray
4100f6cb7d Use __FBSDID(). 2001-12-02 20:40:22 +00:00
Mark Murray
51e2220c27 Use __FBSDID() 2001-12-02 20:23:02 +00:00
Mark Murray
4e030ba6cb WARNS=2 fix, remove 'register' and use __FBSDID(). 2001-12-02 20:13:42 +00:00
Mark Murray
9b3e907904 WARNS=2 fixup. 2001-12-02 13:55:09 +00:00
Mark Murray
ef0ea716d2 WARNS=2 fixup 2001-12-02 13:48:40 +00:00
Mark Murray
acd1ad8825 WARNS=2 fixup. 2001-12-02 13:36:14 +00:00
Mark Murray
cb08795bb0 WARNS=2 fix and 'register' removal. 2001-12-02 13:31:22 +00:00
Mark Murray
bcdc82df70 WARNS=2 fixup. 2001-12-02 13:18:59 +00:00
Mark Murray
3fa15ce5d8 WARNS=2 fixup.
kill 'register' keyword.
2001-12-02 12:54:40 +00:00
Mark Murray
865eb33a74 WARNS=2 fixup. 2001-12-02 12:36:35 +00:00
Mark Murray
3ce6c35745 WARNS=2 fixup. 2001-12-02 12:26:18 +00:00
Mark Murray
3e9203d750 Style. Use __P() macro (Yuk!). 2001-12-02 12:19:26 +00:00
Mark Murray
13ac0cdca3 WARNS=2 fixup.
Turn on YP (NIS) while I'm about it.
2001-12-02 12:17:20 +00:00
Mark Murray
c38cc7439c WARNS=2 fixups. 2001-12-02 12:09:41 +00:00
Mark Murray
a9648779a5 Sort includes. 2001-12-02 00:06:22 +00:00
Mark Murray
d2f6cd8fd5 Style fixups.
Sort function declarations, includes. Make consistent WRT use of _P()
macro (ugh!)

Inspired by:	bde
2001-12-01 21:12:04 +00:00
Bruce Evans
42f9157b63 Work around world breakage in previous commit. The bug is in
<security/pam_misc.h>.  It declares a function parameter named 'send',
so nothing that includes both <unistd.h> (which declares send(2)) and
<security/pam_misc.h> be compiled with WARNS=2 unless NO_WERRROR is
set.

Fixed order of WARNS.
2001-12-01 19:48:59 +00:00
Mark Murray
e317b97026 WARNS=2 fixes.
Reviewed by:	bde (a while back)
2001-12-01 17:46:46 +00:00
Mark Murray
4b0ef38df3 Remove the 'irq' string from the irqN part of the "interrupts" display.
This allows us to see the irq number when device names ate too long.
2001-12-01 17:41:37 +00:00
Mark Murray
f906e265a6 WARNS=2 and s/register//.
Set NO_WERROR=true because there are some flex(1) issues that need
to be dealt with.
2001-12-01 17:34:42 +00:00
Mark Murray
33cc94ddaf Merge the (in)complete ANSIfication work from src/crypto/telnet. 2001-11-30 22:37:28 +00:00
Mark Murray
6f1129fac7 After running "make unifdef", commit the result. This code is now
a complete subset of the crypto (master) code.
2001-11-30 22:09:10 +00:00
Mark Murray
b3c1c587b6 Diff-reduce WRT src/secure/*telnet*/Makefile.
Also, add an "unifdef:" target, so that the telnet sources can
be remade from the crypto sources in src/crypto/telnet.
2001-11-30 21:34:51 +00:00
Ruslan Ermilov
bd7142087b - Make ip_rtaddr() global, and use it to look up the correct source
address in icmp_reflect().
- Two new "struct icmpstat" members: icps_badaddr and icps_noroute.

PR:		kern/31575
Obtained from:	BSD/OS
MFC after:	1 week
2001-11-30 10:40:28 +00:00
Brian S. Dean
3494d26527 killall operates on all processes owned by the real uid, not the
effective uid.

MFC after:	3 days
2001-11-30 00:30:28 +00:00
Andrey A. Chernov
8b8722d2b2 Rewrite buffer handling code a bit to handle large values.
Add more checks for data overflow.
2001-11-28 09:50:24 +00:00
Andrey A. Chernov
99beb3fadf Increase internal buffer space 2001-11-28 09:26:57 +00:00
Andrey A. Chernov
d262b81bdb Add safeguard to prevent charmap symbol length overflowing 2001-11-27 23:39:14 +00:00
Andrey A. Chernov
1f23b5ad1a Move extern definitions to common.h
Increase charmap symbol length to 64
2001-11-27 23:11:05 +00:00
Thomas Gellekum
566d333580 Remove check for the DISPLAY environment variable. It's easier to use
the `-x' option to get an X window than to temporarily disable DISPLAY.

PR:		32180
2001-11-27 13:14:49 +00:00
Ruslan Ermilov
19cb87ad5a ${BINDIR} already has the leading slash. 2001-11-27 09:54:02 +00:00
Ruslan Ermilov
703407b695 Put the "tip" in exactly the same place where it was in rev. 1.169. 2001-11-27 09:42:50 +00:00
Mark Murray
e68347de23 Some CVS surgery has been done to tip(1) to clean out a commit that I
should have done differently.

Restore tip(1) to the build. I will return to this with a clean
import to tip in due course.
2001-11-26 23:18:21 +00:00
Mark Murray
4398bb2f00 After some CVS surgery to remove an unwise commit, restore some
post-UUCP-removal stuff:

1) Link cu(1) to tip(1).
2) Force removal of system immutable bit. (Was needed by UUCP's
   insecure cu(1).
2001-11-26 23:13:33 +00:00
Mark Murray
94e8b5d221 Temporarily remove tip/cu from the build while repo-surgery is done. 2001-11-26 22:35:10 +00:00
Ian Dowse
aee1bac713 Since kqueue support was added to tail, the "-F" option (check for
renames/rotations) only detected cases where the file itself was
moved or deleted. If part of the path to the file (or a symlink
in the path) was changed instead, tail would not notice.

Fix this by ensuring that we stat the path at least once every
second in the -F case to check for changes. We still use kqueue
when possible to inform us quickly when the file has changed.

PR:		bin/24955
Submitted by:	Maxim Konovalov <maxim@macomnet.ru>
MFC after:	1 week
2001-11-25 18:03:28 +00:00