David Malone
57f11f69e7
This now passes a make universe with WARNS=6.
2010-01-07 09:45:15 +00:00
David Malone
c4e3e4f1b5
1) Make usage() as dead2 - it helps the compiler know that some vars
...
are not used uninitialised.
2) Fix some constness problems.
3) Avoid a signedness problem by casting to size_t. If bn != stuff,
than stuff-1-bn should be > 0.
2010-01-05 20:53:55 +00:00
Ed Schouten
b7946da96b
Build usr.bin/ with WARNS=6 by default.
...
Also add some missing $FreeBSD$ to keep svn happy.
2010-01-02 10:27:05 +00:00
Warner Losh
5859ace94f
MFp4(mips2-jnpr):
...
Add mips support.
2008-04-04 21:35:13 +00:00
Christian Brueffer
662cac9f23
Fix some "in in" typos in comments.
...
PR: 121490
Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com>
Approved by: rwatson (mentor), jkoshy
MFC after: 3 days
2008-03-26 07:32:08 +00:00
Yaroslav Tykhiy
9b3d1b0253
Fix a group of typos:
...
preceed -> precede,
preceeded -> preceded,
preceeding -> preceding.
Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com>
2006-12-29 13:08:46 +00:00
Alexander Kabaev
f340c84ebe
Pass "-Wtraditional -Wno-system-headers" to compiler as two separate
...
arguments. GCC4 was unhappy with them combined, while GCC 3.4 did
not care.
2006-09-21 02:05:38 +00:00
Ruslan Ermilov
2d05c776ef
Remove alpha-specific stuff.
2006-08-23 12:12:56 +00:00
Stefan Farfeleder
4ac45ec4cc
Include <err.h> where needed. Add $FreeBSD$ where missing.
2005-08-05 09:07:42 +00:00
Ruslan Ermilov
0227791b40
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
Ruslan Ermilov
e653b48c80
Start the dreaded NOFOO -> NO_FOO conversion.
...
OK'ed by: core
2004-12-21 08:47:35 +00:00
Olivier Houchard
bc67fdeab2
Define PTRDIFF_IS_LONG and SIZEOF_IS_ULONG for arm.
2004-05-14 13:44:36 +00:00
Johan Karlsson
604d24db95
style.Makefile(5):
...
Use WARNS?= instead of WARNS=.
2004-02-23 20:25:27 +00:00
Ruslan Ermilov
47d7e8a96f
Fixed style of DPADD and LDADD assignments as per style.Makefile(5).
2004-02-05 22:44:25 +00:00
Marcel Moolenaar
8d3e35d805
The size of a long double is 16 bytes, not 12 bytes.
2003-11-03 05:09:57 +00:00
Peter Wemm
017ea7dbc2
Move the -Wtraditional warning from the global cpp flags to when the -p
...
(portability warnings) switch is used. Add -Wno-system-headers after it so
that we dont get 500 screenfulls of warnings about #elif in /usr/include.
I'm not entirely happy with this. Maybe cdefs.h shouldn't use #elif and
instead nest #else clauses?
2003-10-26 03:34:13 +00:00
Mark Murray
1dd991a05b
If lint(1) is not "lint", don't try to lint the xlint compat-libs. A
...
third-party lint is probably being used.
2003-06-15 13:03:37 +00:00
David E. O'Brien
d104f0300a
Consistently use __inline for pure c89 compilers.
...
Submitted by: Tim Kientzle <kientzle@acm.org>
2003-06-07 18:12:30 +00:00
Peter Wemm
203fc38a60
Add amd64 settings.
...
Approved by: re (scottl)
2003-05-08 06:33:49 +00:00
David E. O'Brien
b47c8cc7d2
No, forget about rev 1.24. My system wasn't virgin enough when I tested that.
...
Restore rev 1.23.
2003-05-03 23:15:09 +00:00
David E. O'Brien
83ddb07b8f
Forget about rev 1.23. -$ is now spelled -fno-dollars-in-identifiers.
...
Submitted by: kan
2003-05-03 19:57:36 +00:00
David E. O'Brien
804388bb2e
GCC 3.3's cpplib does not impliment -$ (forbid the use of $ in identifiers).
2003-05-03 19:50:41 +00:00
Jens Schweikhardt
3724136741
Fix typos; add FreeBSD Id where missing.
2003-01-01 18:13:45 +00:00
Jens Schweikhardt
d64ada501a
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
Ruslan Ermilov
749757ed33
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-11 17:13:09 +00:00
Ruslan Ermilov
86c8719212
mdoc(7) police: Fixed the declaration of the -column list.
...
Approved by: re
2002-12-11 16:59:01 +00:00
Benno Rice
894dbc508a
Teach lint about powerpc.
...
Approved by: re (rwatson)
2002-12-09 23:27:47 +00:00
Ruslan Ermilov
f2177c5f62
mdoc(7) police:
...
Restore (once again) my fixes from revision 1.20 that got lost in
revision 1.25 merge.
Approved by: re
2002-11-26 15:32:04 +00:00
Ruslan Ermilov
642b1db169
Need to run lint1 from ${WORLDTMP}/usr/libexec during buildworld.
...
Spotted by: fjoe
2002-10-23 12:05:27 +00:00
Peter Wemm
66422f5b7a
Initiate deorbit burn for the i386-only a.out related support. Moves are
...
under way to move the remnants of the a.out toolchain to ports. As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL. It has already lasted WAY beyond
that.
Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.
Tested on: i386 (extensively), alpha
2002-09-17 01:49:00 +00:00
Ian Dowse
83c5a3b583
If the CC environment variable contains multiple words then split
...
it up into separate exec arguments.
Reviewed by: markm
2002-09-01 12:49:27 +00:00
Mark Murray
095dcf9966
Merge conflicts.
2002-07-19 16:38:21 +00:00
Mark Murray
a440a601c1
This commit was generated by cvs2svn to compensate for changes in r100360,
...
which included commits to RCS files with non-trunk default branches.
2002-07-19 15:19:23 +00:00
Mark Murray
e07f5fa8bb
Snapshot of NetBSD's (x)lint. Little functionality, just some code
...
tidy-ups.
2002-07-19 15:19:23 +00:00
Poul-Henning Kamp
0c33afd77a
#include <sys/time.h> before <sys/stat.h> to get timespec.
2002-06-21 09:23:12 +00:00
Ruslan Ermilov
b7a6ce1b2f
Make sure the file in Attic is really "dead".
...
Problem found by: ken
2002-05-07 06:57:04 +00:00
Dag-Erling Smørgrav
d397408818
Usage style sweep: spell "usage" with a small 'u'.
...
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Philippe Charnier
e8937ba009
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
Ruslan Ermilov
d172a32147
Don't unnecessarily include bsd.own.mk.
...
(This is apparently required in NetBSD).
2002-04-15 09:37:12 +00:00
Ruslan Ermilov
ff9ed61c93
FreeBSD prior to 4.4-RELEASE and older versions of 5.0-CURRENT do
...
not have setprogname(3) and getprogname(3), and we need to build
lint(1) as a cross-tool to bootstrap. Versions from lib/libc/gen
can't be compiled either.
PR: bin/36747
2002-04-07 16:53:47 +00:00
Peter Wemm
e3bcba7879
Later versions of gcc object very strongly to the -C flag being passed
...
as -CC. It makes no difference to gcc in the tree, but this change is
necessary for gcc-3.1 to work.
2002-04-07 06:28:38 +00:00
Warner Losh
3f330d7d1a
remove __P
2002-03-22 01:42:45 +00:00
Peter Wemm
c4527df028
Add an ia64 targparam.h
2002-03-21 07:33:31 +00:00
Ruslan Ermilov
bd42830f0f
Make lint(1) a cross-tool.
...
(See commit log for usr.bin/xlint/Makefile,v 1.11 for what was wrong
with enabling build of lint libraries in rev. 1.12.)
This fixes cross-arch compiles (running binaries for a different arch
when generating lint.7 and lint libraries) and cross-branch compiles
(4.x -> 5.0 buildworld should be working again).
2002-03-20 18:25:50 +00:00
Mark Murray
81ebb8b094
Build lint libraries.
2002-03-17 10:00:56 +00:00
Ruslan Ermilov
48851764f9
Argh, I constantly keep forgetting about these XXX's I put.
2002-03-15 17:01:05 +00:00
Ruslan Ermilov
8f5d6dadb2
mdoc(7) police:
...
Restore fixes from revision 1.20 that got lost in revision 1.21 merge.
Fixed some more.
2002-03-15 16:44:52 +00:00
Mark Murray
cae6f50f5a
Try harder to lint without nonstandard stuff.
2002-03-11 11:32:55 +00:00
Mark Murray
724badfb6e
Punt to attic file that moved in latest import.
2002-03-11 11:28:56 +00:00
Mark Murray
7af8da4178
Fix a prototype to match our headers. I am not convinced that doing
...
this in this file is the correct way round. (Maybe our definition of
__assert is wrong?)
Anyway, perhaps we should revisit this later. For the time being,
building lint libraries here does not blow up.
2002-03-11 11:26:17 +00:00
Mark Murray
40a2924f9a
Fix silly one line error. (Half a .if statement left behind).
2002-03-11 11:20:45 +00:00
Jake Burkholder
c57dee1fd1
Add sparc64 ifdefs.
2002-03-10 01:34:22 +00:00
Mark Murray
81fcc44b70
Completeley revert this to the vendor code. This is in preparation to
...
doing some fixing...
...asked for by: bde
2002-03-07 16:45:41 +00:00
Mark Murray
f84f50e683
Merge conflicts, fix Makefiles and remove (re)moved file(s).
2002-03-03 15:12:50 +00:00
Mark Murray
fdd1668006
Import of NetBSD's (x)lint, snapshotted at 2002-3-3.
2002-03-03 13:17:00 +00:00
Mark Murray
675d3eb019
This commit was generated by cvs2svn to compensate for changes in r91586,
...
which included commits to RCS files with non-trunk default branches.
2002-03-03 13:17:00 +00:00
Mark Murray
313750d480
WARNS=2 fixes.
2001-12-11 22:52:36 +00:00
Doug Rabson
8503f9516f
Make this build on ia64.
2001-10-09 20:04:02 +00:00
David E. O'Brien
3c5bf66cec
Expand x{malloc,calloc,realloc,strdup} in-place.
...
(even found some unchecked naked uses)
2001-07-24 14:02:07 +00:00
Kris Kennaway
013fab318c
Mark a function as __printflike() and fix a non-exploitable format string
...
warning.
MFC after: 1 week
2001-07-05 10:08:25 +00:00
Peter Wemm
c8c08ef0e5
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
Ruslan Ermilov
3520eff8da
mdoc(7) police: fix markup.
...
(Shows how powerful new -mdoc is.)
2001-04-27 10:13:20 +00:00
Jeroen Ruigrok van der Werven
c27ec88714
Remove XXX_BROKEN_GCC from the Makefile.
...
This compiles just fine with recent gcc's.
2001-04-26 09:44:41 +00:00
Jeroen Ruigrok van der Werven
b94ea15307
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
Jeroen Ruigrok van der Werven
e41281f1d2
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
Jeroen Ruigrok van der Werven
9dabdff52e
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
Jeroen Ruigrok van der Werven
370795830b
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
Jeroen Ruigrok van der Werven
16a10d334e
Aesthetics: fix placement of $NetBSD$ (use space instead of tab)
2001-04-21 11:17:44 +00:00
Jeroen Ruigrok van der Werven
1b1990f6e2
Properly constify the rcsid[].
2001-04-20 09:43:30 +00:00
Jeroen Ruigrok van der Werven
30fb1fac8d
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
Jeroen Ruigrok van der Werven
998e62958c
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
Jeroen Ruigrok van der Werven
c7bee68f23
Change SYNOPSIS to use mdoc keeps.
...
Obtained from: NetBSD
2001-04-19 14:48:36 +00:00
Jeroen Ruigrok van der Werven
4d380447f7
Fix some mdoc usage.
...
Obtained from: NetBSD
2001-04-19 14:20:54 +00:00
Jeroen Ruigrok van der Werven
db52328cf6
Fix english grammar: then does -> than.
...
Obtained from: NetBSD
2001-04-19 14:06:12 +00:00
Jeroen Ruigrok van der Werven
d808aefa49
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
Jeroen Ruigrok van der Werven
9d083950b7
Fix spelling of comparison (was: comparision).
...
Add $FreeBSD$.
Obtained from: NetBSD/OpenBSD
2001-04-19 11:10:51 +00:00
Ruslan Ermilov
eb0838029f
mdoc(7) police: normalize .Nd.
2001-04-18 15:54:10 +00:00
Ruslan Ermilov
18453f1ad3
Do not override `realinstall' target, use ${PROGNAME}.
2001-04-02 12:06:00 +00:00
Ruslan Ermilov
dc12be5258
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
1bfea903ed
Prepare for mdoc(7)NG.
2001-01-16 09:39:23 +00:00
Ruslan Ermilov
9b88faecd3
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
David E. O'Brien
a8e642f574
Change the spelling of .' to
.' from .OBJDIR since `.' really is where
...
generated files land. Also give precedence to generated files.
2000-12-05 22:10:43 +00:00
David E. O'Brien
2c5569d6ff
The GCC 2.96 snapshots have slightly different rules for finding include
...
files. Mostly -I${.CURDIR} was needed -- especially for YACC generated
files as the new cpp does not look in the ultimate source file
(ie, the .y file)'s directory as told by the "#line" directive. Some were
misspellings of "-I${.CURDIR}" as "-I.".
2000-12-01 09:39:28 +00:00
Ruslan Ermilov
8fe908ef0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
Sheldon Hearn
87faa07bec
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
Sheldon Hearn
b4d07e45c5
Cosmetic change: space instead of tab in front of $FreeBSD$.
...
Submitted by: bde
2000-01-16 08:25:40 +00:00
Sheldon Hearn
3e2d3e2621
Revert previous change, which is reported to have broken world. I
...
did test this through a ``make world'', but of course I already
had a working lint binary (one that does not call cpp -undef)
installed.
Reported by: "Pierre Y. Dampure" <Pierre.Dampure@barclayscapital.com>
2000-01-15 09:00:03 +00:00
Sheldon Hearn
76f1a3e75f
Populate /usr/libdata/lint again. David Malone <dwmalone@maths.tcd.ie>
...
is responsible for getting me to look at the NetBSD makefiles. :-)
Obtained from: NetBSD
2000-01-14 10:02:27 +00:00
Sheldon Hearn
570080640e
Fix lint for the new cpp. Lint is still broken in other ways, but
...
this at least allows the use of lint -i on single files again.
Fiddled rcsid to satisfy commitprep.pl; the original NetBSD tag
is still in the comments.
2000-01-14 09:25:31 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Dmitrij Tejblum
27ff174015
Declaration of strtouq() is not missing from stdlib.h, so don't redeclare
...
it.
1999-08-25 14:22:20 +00:00
Nik Clayton
3be5f1f5ce
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:24:20 +00:00
Eivind Eklund
398eda2c23
Use __XSTRING() from cdefs.h instead of rolling my own.
1999-01-25 11:25:24 +00:00
Eivind Eklund
458a924b1d
I may have forgotten to upgrade this value, but that will never happen
...
again. (Fully clone the value of __FreeBSD__ from the compiler.)
1999-01-23 15:07:10 +00:00
John Hay
9f12d84d0e
__FreeBSD__ is also used here.
...
Forgotten by: Lots of people.
Pointed out by: make world.
1999-01-23 10:59:29 +00:00
Bruce Evans
8d4a858381
Put y.tab.h back in SRCS. This used to be the best way to get
...
dependencies on y.tab.h generated. It will soon be used to tell
bsd.dep.mk that y.tab.h itself needs to be generated.
1998-05-05 13:00:26 +00:00
Bruce Evans
b681d90662
Fixed races in `make -jN' using new yacc rules.
1998-05-04 20:09:06 +00:00
Philippe Charnier
306005e78c
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.
1998-03-23 07:48:45 +00:00
Bruce Evans
99c91e5acc
Fixed `make -jN' for large N. Just put the generated file y.tab.h in
...
SRCS and add a dummy rule to create it. This and cleaning of yacc
output files should all be handled by bsd.prog.mk.
1998-03-06 14:25:45 +00:00