Commit Graph

97 Commits

Author SHA1 Message Date
schweikh
5660698d88 Fix typos; add FreeBSD Id where missing. 2003-01-01 18:13:45 +00:00
schweikh
28d78933e7 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
ru
e0adc3f9fc mdoc(7) police: overhaul.
Approved by:	re
2002-12-11 17:13:09 +00:00
ru
82ab7695b8 mdoc(7) police: Fixed the declaration of the -column list.
Approved by:	re
2002-12-11 16:59:01 +00:00
benno
1a0581d9c4 Teach lint about powerpc.
Approved by:	re (rwatson)
2002-12-09 23:27:47 +00:00
ru
a910154b3a 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
ru
34a52f8114 Need to run lint1 from ${WORLDTMP}/usr/libexec during buildworld.
Spotted by:	fjoe
2002-10-23 12:05:27 +00:00
peter
3c7c11fd3e 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
iedowse
686dd19cd1 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
markm
1efa02c36e Merge conflicts. 2002-07-19 16:38:21 +00:00
markm
dbad63b748 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
markm
e290933e4d Snapshot of NetBSD's (x)lint. Little functionality, just some code
tidy-ups.
2002-07-19 15:19:23 +00:00
phk
3c7615175a #include <sys/time.h> before <sys/stat.h> to get timespec. 2002-06-21 09:23:12 +00:00
ru
c3d9a54b10 Make sure the file in Attic is really "dead".
Problem found by:	ken
2002-05-07 06:57:04 +00:00
des
c91c856b3e 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
charnier
a426ff29b9 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ru
d11a810718 Don't unnecessarily include bsd.own.mk.
(This is apparently required in NetBSD).
2002-04-15 09:37:12 +00:00
ru
689087deb0 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
10f2580061 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
imp
6b8e9d623c remove __P 2002-03-22 01:42:45 +00:00
peter
6642e6034e Add an ia64 targparam.h 2002-03-21 07:33:31 +00:00
ru
7e31302c93 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
markm
d3ef203db2 Build lint libraries. 2002-03-17 10:00:56 +00:00
ru
2a35acf479 Argh, I constantly keep forgetting about these XXX's I put. 2002-03-15 17:01:05 +00:00
ru
40e185da9b 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
markm
5c060984bf Try harder to lint without nonstandard stuff. 2002-03-11 11:32:55 +00:00
markm
d2b419ab6f Punt to attic file that moved in latest import. 2002-03-11 11:28:56 +00:00
markm
283a853f3b 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
markm
c5636055d3 Fix silly one line error. (Half a .if statement left behind). 2002-03-11 11:20:45 +00:00
jake
d6dc8b9e3f Add sparc64 ifdefs. 2002-03-10 01:34:22 +00:00
markm
07752e7a26 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
markm
b311cf6429 Merge conflicts, fix Makefiles and remove (re)moved file(s). 2002-03-03 15:12:50 +00:00
markm
a9c0aaa0e8 Import of NetBSD's (x)lint, snapshotted at 2002-3-3. 2002-03-03 13:17:00 +00:00
markm
d8c90fc810 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
markm
ed30bd73a1 WARNS=2 fixes. 2001-12-11 22:52:36 +00:00
dfr
dc5e9e5308 Make this build on ia64. 2001-10-09 20:04:02 +00:00
obrien
b3b6224f0a Expand x{malloc,calloc,realloc,strdup} in-place.
(even found some unchecked naked uses)
2001-07-24 14:02:07 +00:00
kris
ccae6d3ac0 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
836d84ae24 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
ru
b82c51dbbe mdoc(7) police: fix markup.
(Shows how powerful new -mdoc is.)
2001-04-27 10:13:20 +00:00
asmodai
24d1124088 Remove XXX_BROKEN_GCC from the Makefile.
This compiles just fine with recent gcc's.
2001-04-26 09:44:41 +00:00
asmodai
eea3567fde 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
b9778ca9f6 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
asmodai
7574aefa1e 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
asmodai
b0efe6e395 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
639d10d873 Aesthetics: fix placement of $NetBSD$ (use space instead of tab) 2001-04-21 11:17:44 +00:00
asmodai
30b2a5d12a Properly constify the rcsid[]. 2001-04-20 09:43:30 +00:00
asmodai
1cd8533570 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
asmodai
e60cb25d65 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
9d394a89d2 Change SYNOPSIS to use mdoc keeps.
Obtained from:	NetBSD
2001-04-19 14:48:36 +00:00