Commit Graph

4875 Commits

Author SHA1 Message Date
Mike Barcroft
fd8e4ebc8c o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
  Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
  and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
2002-02-18 20:35:27 +00:00
Gregory Neil Shapiro
095dae9d7a Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
Chris D. Faulhaber
96c066cc83 Ensure err is a useful value to prevent using fputs() with a NULL stream.
MFC after:	1 week
2002-02-17 20:53:56 +00:00
Daniel Eischen
a06523b4f6 Don't rely on <sys/signal.h> to include <sys/ucontext.h>. 2002-02-17 17:19:14 +00:00
David E. O'Brien
2024994319 Add support such that if LD_TRACE_LOADED_OBJECTS_ALL is defined to a
non-empty string in the environment; we indicate which objects caused
each object to be loaded.

PR:		30908
Submitted-by:	Mike Meyer <mwm@mired.org>
2002-02-17 07:04:32 +00:00
Juli Mallett
8a998f1ea1 This commit was generated by cvs2svn to compensate for changes in r90744,
which included commits to RCS files with non-trunk default branches.
2002-02-16 21:27:48 +00:00
Juli Mallett
e3d8671772 Import OpenBSD m4 as of today. 2002-02-16 21:27:48 +00:00
Dag-Erling Smørgrav
8e7cf3debf If downloading to a temporary file, set the timestamp on the temp file, not
on the file we're replacing.

PR:		bin/34992
Submitted by:	Shunichiro Ariura <syun1rou@blackshell.org>
MFC after:	1 week
2002-02-16 14:02:57 +00:00
Mike Barcroft
1a7fa91e8d Add header to prototype exit(3). Fix a style bug. 2002-02-16 09:25:49 +00:00
Mike Barcroft
aa7b0c75c5 Un-deprecate the -p option. We now have two ways to output to stdout:
`-o /dev/stdout' or `-p'.

Requested by:	grog, nectar
2002-02-16 09:18:33 +00:00
Alexey Zelkin
e0c90a7bd5 * Don't SEGFAULT on attempt to write nothing (if no source files were
specified)
* Don't print currline if it's NULL

MFC after: 3 days
2002-02-13 13:00:33 +00:00
Yoichi NAKAYAMA
9d6e4fa0a5 Add myself. 2002-02-11 13:13:02 +00:00
Peter Pentchev
fef3edecbb Describe the '+' option in the -t trace string.
PR:		34668
Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Reviewed by:	dd
Approved by:	dd
MFC after:	1 week
2002-02-11 09:03:34 +00:00
Mark Murray
e35f9517d6 Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3. 2002-02-08 23:07:37 +00:00
Mark Murray
91bd71d206 Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
Dag-Erling Smørgrav
4525f3a803 Fix the code that selects the default binary type if the actual type can't
be determined.

PR:		bin/34698
Submitted by:	(in part) Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after:	1 weeks
2002-02-08 12:42:55 +00:00
Peter Wemm
77dcd09d42 GRR. Unbreak WARNS=2.
cc1: warnings being treated as errors
usr.bin/finger/lprint.c: In function `lprint':
usr.bin/finger/lprint.c:191: warning: precision is not type int (arg 2)
*** Error code 1

Pointy hat to:	markm
2002-02-08 07:52:51 +00:00
Peter Wemm
cf467a82df GRR. This was not WARNS=2 clean. You cannot printf a 'long' with
'%qd'.

usr.bin/du/du.c:288: warning: long long int format, long int arg (arg 2)

Pointy hat to:	markm
2002-02-08 07:49:13 +00:00
Maxim Sobolev
97b79abc86 Inspect ELF header and reject any non-FreeBSD shared objects.
MFC after:	2 weeks
2002-02-08 04:08:57 +00:00
Andrew Gallatin
f9393c5e72 add missing <string.h> to give strcpy() a prototype 2002-02-08 03:01:03 +00:00
Maxim Konovalov
ccd5850d31 Add myself.
Reviewed by:	ru
Approved by:	ru
2002-02-07 09:24:44 +00:00
Mark Murray
23d79449c5 Backout -Werror protection. No need to walk all over the upcoming
GCC3 changeover.
2002-02-06 18:13:12 +00:00
Dag-Erling Smørgrav
dc584ddbc5 ANSIfy and remove some dead code.
Sponsored by:	DARPA, NAI Labs
2002-02-06 15:26:07 +00:00
Dag-Erling Smørgrav
ed4d1c46a2 Apply the following mechanical transformations in preparation for
ansification and constification:

    s{\s+__P\((\(.*?\))\)}{$1}g;
    s{\(\s+}{\(}g;
    s{\s+\)}{\)}g;
    s{\s+,}{,}g;
    s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
    s{return ([^\(].*?);}{return ($1);}g;
    s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
    s{\s+$}{\n};g

Also add $FreeBSD$ where needed.

MFC after:	1 week
2002-02-06 13:30:31 +00:00
Alfred Perlstein
8858373f83 The clnt_create(KEYSERVSOCK, CRYPT_PROG, CRYPT_VERS, "unix") hacks
were removed and replaced them with clnt_tp_create, now the af_local
support is fixed.

I also removed the hack how rpcinfo contacted rpcbind, now we can
relay on clnt_tp_create create the client-handle for us.  Only
rpcbind itself needs a hardcoded socket-path.

Submitted by: mbr

Also add $FreeBSD
2002-02-05 19:26:04 +00:00
Maxim Sobolev
c6de4ce791 Allow ldd(1) be used on shared libraries in addition to executables. 2002-02-04 10:33:48 +00:00
Maxim Sobolev
fc41545e4e GC meaningless assignment.
MFC after:	3 days
2002-02-04 10:23:23 +00:00
Kris Kennaway
c698668189 Silence some WFORMAT=1 warnings 2002-02-04 02:37:09 +00:00
Kris Kennaway
01d7192418 Mark a function as __printflike()
MFC after:	1 week
2002-02-04 02:12:49 +00:00
Mike Barcroft
f971bd0623 Use new ID scheme.
Fix a bug that caused .br domains to be queried twice, by only
recursively following ARIN referrals when querying ARIN.

PR:		34291
MFC after:	7 days
2002-02-03 07:35:32 +00:00
Maxim Sobolev
de78df64c7 Complete bzip2-1.0.2 import.
MFC in:		14 days
2002-02-01 16:33:40 +00:00
Mike Barcroft
4185049582 Add -a option (SUSv3) to split(1).
Submitted by:	Tim J. Robbins <tim@robbins.dropbear.id.au>
MFC after:	1 month
2002-02-01 06:55:18 +00:00
Dag-Erling Smørgrav
c60ed00a43 Still with asbestos longjohns on, completely PAMify login(1) and remove
code made redundant by various PAM modules (primarily pam_unix(8)).

Sponsored by:	DARPA, NAI Labs
2002-01-30 19:10:21 +00:00
Dag-Erling Smørgrav
554b9a6e8e Back out rev 1.78, which is incorrect now that the PAM modules have been
fixed to accept a NULL PAM_RHOST.
2002-01-29 23:27:54 +00:00
Mike Barcroft
c3751af262 Add -o option (POSIX.1-2001) to uudecode(1). Deprecate the -p option
(which allows one to redirect output to stdout); `-o /dev/stdout' is
recommended instead.

Submitted by:	Joseph Mallett <jmallett@xMach.org>
MFC after:	2 weeks
2002-01-27 18:21:23 +00:00
David Malone
ecca80bd97 Make usage message and man page synopsis reflect the fact that -n
and -c are mutually exclusive.

PR:		34233
Submitted by:	Gary W. Swearingen <swear@blarg.net>
MFC after:	3 days
2002-01-24 22:27:50 +00:00
David Malone
24bd57cbbd Add new option HAVE_STRERROR to CFLAGS. 2002-01-24 17:59:39 +00:00
Dag-Erling Smørgrav
905fd6f3ee Don't set PAM_RHOST, this is a local login.
Sponsored by:	DARPA, NAI Labs
2002-01-24 16:20:17 +00:00
Philippe Charnier
57906e00c6 Show arguments of command line options
Reviewed by:	ru
2002-01-22 19:49:48 +00:00
Mike Barcroft
e1bc822ebe o Remove the -V [version number] option, since our version of at(1) no
longer resembles the original.
o Remove references to `you' in the manual.

Submitted by:	Joe Halpin <joe.halpin@attbi.com>
2002-01-22 03:04:15 +00:00
Dag-Erling Smørgrav
f2c44ccec8 When running on a local terminal, set PAM_RHOST to the local hostname.
Sponsored by:	DARPA, NAI Labs
2002-01-21 16:19:38 +00:00
Mike Heffner
94ef258fee Link mail(1) to mailx per POSIX. Mail(1) isn't 100% POSIX compliant,
but it is pretty close.

Not objected to by: -standards
2002-01-19 23:47:21 +00:00
Matthew Dillon
170ac683f2 I've been meaning to do this for a while. Add an underscore to the
time_to_xxx() and xxx_to_time() functions.  e.g. _time_to_xxx()
instead of time_to_xxx(), to make it more obvious that these are
stopgap functions & placemarkers and not meant to create a defacto
standard.  They will eventually be replaced when a real standard
comes out of committee.
2002-01-19 23:20:02 +00:00
Andrey A. Chernov
07977587ab Back out PAM_CRED_ERR addition 2002-01-19 18:06:05 +00:00
Andrey A. Chernov
3e4f7c7f99 Add PAM_CRED_ERR as valid failure case 2002-01-19 09:01:17 +00:00
Ruslan Ermilov
62eaa6eed1 mdoc(7) police: bump document date for the -p change, tidy up the markup. 2002-01-17 10:38:32 +00:00
Mike Barcroft
00e39e5ea1 Fix a typo introduced in the previous delta. The mistake was mine
rather than the submitter's.
2002-01-17 07:48:12 +00:00
Ruslan Ermilov
ab47d79913 Document fetch(1) reaction to SIGINFO.
PR:		docs/33640
Submitted by:	Maxim Konovalov <maxim@macomnet.ru>
Approved by:	des
2002-01-16 16:16:08 +00:00
Ruslan Ermilov
3e4f59ce06 Replace reference to ANSI C draft with standard.
PR:		docs/30731
2002-01-16 14:55:18 +00:00
Ruslan Ermilov
491a842962 yp(4) -> yp(8).
PR:		docs/30797
2002-01-14 16:59:03 +00:00
Yoshihiro Takahashi
1c6d3890d6 'uname -p' prints the value of hw.machine_arch instead of hw.machine.
Reviewed by:		imp
No response from:	-arch
MFC after:		3 weeks
2002-01-14 12:49:46 +00:00
Mike Barcroft
d81986de07 Implement the POSIX 1003.1-2001 -r and -t options in at(1). Fix some
minor issues in the rest of the source and manual.

Submitted by:	Joe Halpin <joe.halpin@attbi.com>
Obtained from:	touch(1) (partially)
MFC after:	1 month
2002-01-13 20:21:08 +00:00
Jens Schweikhardt
e3e5c7667e Make substitutions in internal macros like $(@F:.o=.c) work.
This should not affect our build process, as

	find /usr/src -name Makefile | xargs grep '@[DF]'

has no matches (other than FreeBSD.org email addresses :-)

PR:		bin/24377
Submitted by:	Mark Valentine <mark@thuvia.demon.co.uk>
Reviewed by:	Matthew Emmerton <matt@gsicomp.on.ca>
MFC after:	4 weeks
2002-01-12 10:45:27 +00:00
Ruslan Ermilov
deba245176 Don't format lines that look like troff requests, for
compatibility with old fmt(1).  New option -n permits
formatting of lines beginning with a dot character.

PR:		bin/31392
MFC after:	3 days
2002-01-11 19:06:48 +00:00
Ruslan Ermilov
3e048b5912 mdoc(7) police: oops, forgot about those interim XXX'es. 2002-01-10 14:27:04 +00:00
Ruslan Ermilov
81135783d1 mdoc(7) police: tidy up. 2002-01-10 14:25:34 +00:00
Giorgos Keramidas
1309232c90 - Add 4-digit year variants in the manpage, since at(1) already
understands them.

PR:		docs/32843
Submitted by:	Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2002-01-10 08:21:31 +00:00
John Baldwin
a4e5fd57ac Replace -I${.OBJDIR} with -I. and split the CFLAGS line up into two lines.
Requested by:	bde
2002-01-08 11:08:20 +00:00
John Baldwin
72b1c1af40 Remove gcc specific compiler flags, at least one of which doesn't work with
gcc 3.0.2.  (-fstrict-prototypes)
2002-01-08 08:53:12 +00:00
John Baldwin
e2bac28d84 Use -I${.OBJDIR} -I${.CURDIR} rather than -I. so that this compiles in a
cross-build environment.
2002-01-08 08:13:23 +00:00
Paul Saab
fb05bfba06 Update for less v371 2002-01-07 20:37:33 +00:00
Thomas Gellekum
c758c65e54 Add some missing years, fix Bach's birthday entry. 2002-01-07 13:35:31 +00:00
Greg Lehey
8ba4cafacb Remove duplicate entry for Descartes.
PR:		33630
Submitted by:	Christopher Elkins <chrise@scardini.com>
MFC after:	2 weeks
2002-01-07 05:07:03 +00:00
David Malone
f4bd8d8deb Update Judaic for year 2002. Name Josef as maintainer.
PR:		33389
Submitted by:	Josef Grosch <jgrosch@mooseriver.com>
2002-01-05 18:10:19 +00:00
Guido van Rooij
b50764b00b Argh...argv->argc 2002-01-04 13:46:57 +00:00
Guido van Rooij
57aa7d5027 Fix the coredump that occurs when, from the tfpt prompt, a 'c' command is
issued without an argument.
2002-01-04 13:42:14 +00:00
Andrey A. Chernov
fa041d0395 Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
OKAZAKI Tetsurou
2e2962c816 Add myself. 2002-01-02 16:02:51 +00:00
Wolfram Schneider
2f367644e0 A global is used even though the value is
passed through the function call.

Submitted by: "Crist J . Clark" <cjc@freebsd.org>
2002-01-01 21:16:10 +00:00
Greg Lehey
c854ea50c4 Correct typos. 2001-12-31 23:59:53 +00:00
Alfred Perlstein
09bf11699f Print open(2) flags in hex instread of decimal for clarity. 2001-12-30 23:11:52 +00:00
Andrey A. Chernov
6d994e13c8 Use LC_ALL to pick LC_COLLATE too (for strcoll()) 2001-12-30 19:30:10 +00:00
Bruce Evans
b84c8f34fd Fixed bitrot in DPADD in rev.1.8. 2001-12-29 14:03:03 +00:00
Mike Heffner
9b12c3f313 Fix comment. 2001-12-23 06:12:41 +00:00
Mike Heffner
69131e4050 Add support for ~_, ~x, ~i, ~a, ~A, ~<, and ~r! tilde-escapes. Improve
tilde-escapes documentation.

Mostly obtained from:	NetBSD
2001-12-22 22:16:48 +00:00
Mark Murray
afb5951f89 Re-enable tip, now that the import and merge are done. 2001-12-20 14:27:23 +00:00
Mark Murray
65785b55c1 Fix merge conflicts, and because this still has a zillion warnings,
protect the build with a WARNS=2.

Fix the build.
2001-12-20 14:25:46 +00:00
Mark Murray
cb6e1ca59f Bring files back from the dead prior to remote commit to fix import
conflicts.
2001-12-20 13:40:48 +00:00
Mark Murray
0f3bdf5df9 Import of OpenBSD's tip (which was the tip code of a month ago, modulo
OpenBSD commits).
2001-12-20 13:06:50 +00:00
Mark Murray
bee3021df8 Temporarily remove tip(1) from the build while I upgrade it. 2001-12-20 13:01:47 +00:00
Andrey A. Chernov
5089267998 Add missing {} to 'for'. It fix coredump (result of NetBSD changes merge) 2001-12-19 22:25:11 +00:00
Andrey A. Chernov
6d48fa4387 Add (unsigned char) cast to ctype macros
ftell->ftello, fseek->fseeko
File 'newsize' type int->off_t
Add visible (long) cast to fsize() when it called to small one message file and
result is assigned to long.
2001-12-19 21:50:22 +00:00
Warner Losh
c07dd20b43 xinstall is part of the upgrade path for 4.4-RELEASE as well.
Do the usualy ifdef trick here.

Reported by: dworkin muller <addr-removed> and faried nawaz <fn@hungry.com>
2001-12-19 06:05:42 +00:00
Mike Heffner
856f23ed35 Sync with most of NetBSD's changes, including:
*) Sync with 4.4BSD-Lite2
 *) Set usecs for utimes()
 *) Add 'inc' command and 'autoinc' option that check for new mail
    manually and automatically, respectively
 *) Use POSIX signal handling and tty semantics
 *) Handle long lines correctly when paging messages
 *) Add ability to explicitly search 'To:' line
 *) Various manpage cleanups
 *) Support overriding '~/.mailrc' with $MAILRC
 *) Support 'askbcc' and 'asksub' options
 *) Fix various bugs

Reviewed by:	ru (mail.1)
Obtained from:	NetBSD
2001-12-18 20:52:09 +00:00
Josef Karthauser
60c3e0f72a Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon.
Submitted by:	banshee <banshee@pork.abattoir.com>
MFC after:	7 days
2001-12-18 11:25:58 +00:00
Ruslan Ermilov
2bdd8946cb Oops, forgot to remove the `beforeinstall' block. 2001-12-17 16:04:40 +00:00
Ruslan Ermilov
ccaec6d133 Install files via FILES. 2001-12-17 16:02:15 +00:00
Ruslan Ermilov
a7aaf57e4a FILES support for bsd.prog.mk. See bsd.README for details.
Stolen from:	NetBSD
2001-12-17 13:59:35 +00:00
Brian Feldman
fca066fe02 Add support for devfs. In other words, for -CURRENT, make work at all
again for normal device nodes.
2001-12-17 13:42:46 +00:00
Mike Barcroft
42e82026b7 Fix a typo. Don't call options flags. Remove some documentation that
is no longer applicable to whois.  Bump document date.
2001-12-16 01:44:49 +00:00
Sheldon Hearn
23eb26fa51 Kernel support for smbfs is only built on the i386 at the moment, so
limit the building and installation of the userland utilities to that
architecture for now.

Reported by:	bmah
2001-12-14 23:11:45 +00:00
Sheldon Hearn
85519b003a Add bmake glue for src/contrib/smbfs and connect userland smbfs
support to the build.

The MFC reminder below is subject to <re@FreeBSD.org> approval
prior to 4.5-RELEASE.

Reviewed by:	bp, fjoe
MFC:	1 week
2001-12-14 11:41:22 +00:00
Ruslan Ermilov
9a665c3136 mdoc(7) police overhaul. 2001-12-14 09:48:03 +00:00
Mike Heffner
bfacd15a50 Connect lukemftp to the build as the default ftp client. Lukemftp
supports most of the previous features of FreeBSD ftp, but has been
better maintained and includes new features.
2001-12-13 23:46:44 +00:00
Mark Murray
dd22788a1d UUCP is gone from base. 2001-12-13 18:27:08 +00:00
Ruslan Ermilov
f8daa5a649 Fold example text into 80 column width display.
PR:		docs/32676
Submitted by:	Rich Morin <rdm@cfcl.com>
2001-12-13 09:13:01 +00:00
Mark Murray
d3f6a11798 Remove to-be-default WARNS?=2 2001-12-12 23:29:13 +00:00
Mark Murray
d20f95e121 Minor style stuff, use __FBSDID(), remove to-be-default WARNS=2. 2001-12-12 23:23:52 +00:00
Mark Murray
e74bf75f1c WARNS=2 partial fix; use NO_WERROR to protect against some hard-to-fix warnings.
Use __FBSDID(), kill register keyword.
2001-12-12 23:20:16 +00:00
Mark Murray
f1d37c20c0 WARNS=2 fixes, use __FBSDID, remove GCC-specific flags. 2001-12-12 23:09:07 +00:00
Mark Murray
b093d3e0e9 WARNS=2 fixes, Use __FBSDID(), kill register keyword. 2001-12-12 23:02:30 +00:00
Mark Murray
5584ad32ad Fix the time of an intmax_t calculation; it is unsigned. Also print
it with the correct formatting (%ju, not %lld). GCC's -Wformat does
not understand this, so turn on NO_WERROR.
2001-12-12 22:46:56 +00:00
Mike Heffner
8080703a26 Print the path with the shortest absolute length, rather than
arbitrarily selecting one.

PR:		bin/14361
Approved by:	wosch
MFC after:	1 week
2001-12-12 20:38:07 +00:00
Philippe Charnier
a9c9a0d15f Make clear that -w gets an argument. Add __FBSDID and remove unused
#include
2001-12-12 18:25:53 +00:00
Philippe Charnier
93b3633be5 Remove unused #includes. lex -> Lex, yacc -> Yacc, ... Some .Nm to .Em
conversions. Sort #includes. Spelling. use errx() instead of err() when
explicit message is given.
2001-12-12 18:24:42 +00:00
Philippe Charnier
b0a2f60daf Start option definition with: ``The following options are available''
Use .Ev for env variables.
Remove unused #includes, and sort others.
2001-12-12 18:22:09 +00:00
Mike Heffner
864be88825 I'm working on cleaning this up, however it probably won't be done for
awhile. Turn off WARNS so that this doesn't break the build when WARNS
is turned on higher up. Also add $FreeBSD$.
2001-12-12 15:42:19 +00:00
Ruslan Ermilov
7f96dac84d More "const" poisoning, and only use NO_WERROR if we're bootstrapping. 2001-12-12 08:49:51 +00:00
Mark Murray
9ff712b0f5 WARNS=2 fixes with NO_WERROR set, as there are some header issues
with namelists. use __FBSDID().
2001-12-12 00:13:37 +00:00
Mark Murray
131f7ce586 Remove WARNS?=2 and -Wall. WARNS?=2 is going to be the default. 2001-12-12 00:06:52 +00:00
Mark Murray
19964b3233 Protect this against the coming WARNS=2 default. 2001-12-12 00:05:16 +00:00
Mark Murray
814e3a92a9 WARNS=2 fixes, use __FBSDID(). 2001-12-12 00:01:16 +00:00
Mark Murray
caa648017b WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().
2001-12-11 23:51:14 +00:00
Mark Murray
ed155aba4a WARNS=2 fixes. use __FBSDID(). 2001-12-11 23:44:53 +00:00
Mark Murray
8049f797e3 WARNS=2 fixes. NO_WERROR set as there are some hard-to-fix
signed/unsigned comparisons. Use __FBSDID().
2001-12-11 23:43:15 +00:00
Mark Murray
34ec24f029 WARNS=2 fixes, use __FBSDID(). 2001-12-11 23:39:38 +00:00
Mark Murray
1a9e1c9da1 WARNS=2 is going to be the default, so don't specify it. Use __FBSDID(). 2001-12-11 23:38:24 +00:00
Mark Murray
787324755c WARNS=2 fixes, use __FBSDID(), kill register keyword. 2001-12-11 23:36:25 +00:00
Mark Murray
1be5d70444 Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.
Use __FBSDID().
2001-12-11 23:34:02 +00:00
Mark Murray
defd4957cc WARNS=2 fixes, use __FBSDID(). 2001-12-11 23:29:45 +00:00
Mark Murray
7e52b238c7 WARNS=2 is going to become the default, so remove it from here. 2001-12-11 23:27:23 +00:00
Mark Murray
1a27f4f2c3 WARNS=2 fixes. 2001-12-11 23:25:13 +00:00
Mark Murray
54750e1d8a WARNS=2 fixes, use __FBSDID(), kill register keyword. 2001-12-11 23:20:23 +00:00
Mark Murray
b6a5c4e0e4 WARNS=2 is to become the default, so remove. Use __FBSDID(). 2001-12-11 23:18:25 +00:00
Mark Murray
043c9b9b34 WARNS=2 fixes, use __FBSDID(). 2001-12-11 23:16:25 +00:00
Mark Murray
49601c4327 WARNS=2 is to become the default, so remove it from here. 2001-12-11 23:14:43 +00:00
Mark Murray
2a33bb3513 Protect this from the coming WARNS=2 default. 2001-12-11 23:12:44 +00:00
Mark Murray
573560d5f7 WARNS=2 fix, kill register keyword, use __FBSDID().
NO_WERROR set because of hard-to-fix warnings originating in
system headers.
2001-12-11 23:10:26 +00:00
Mark Murray
e4d5827537 Protect this against the to-come WARNS=2 default. 2001-12-11 23:05:06 +00:00
Mark Murray
89886a7e99 WARNS=2 fix, add externs.h to centralise external prototypes,
use __FBSDID(), kill register keyword.
2001-12-11 23:02:44 +00:00
Mark Murray
d6bf632706 WARNS=2 fixes, but set NO_WERROR, as there are some HardToFix(tm)
warnings originating in system headers.
2001-12-11 22:59:36 +00:00
Mark Murray
1a25827b5e Remove WARNS=2 as this is to become default. 2001-12-11 22:56:05 +00:00
Mark Murray
c451c0e6bd WARNS=2 fixes, use __FBSDID(), kill register keyword. 2001-12-11 22:54:36 +00:00
Mark Murray
313750d480 WARNS=2 fixes. 2001-12-11 22:52:36 +00:00
Mark Murray
7423f8b10b WARNS=2, use __FBSDID(), set NO_WERROR, as there are "dirty" files used
during the bootstrap phase.
2001-12-11 22:46:42 +00:00
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