Commit Graph

4978 Commits

Author SHA1 Message Date
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
55cfa593f8 Style nits. 2002-04-15 09:33:34 +00:00
Ruslan Ermilov
6370bbfe57 Don't unnecessarily include .mk files. 2002-04-15 09:33:00 +00:00
Jeff Roberson
6f2671750e Remove malloc_type's ks_limit.
Updated the kmemzones logic such that the ks_size bitmap can be used as an
index into it to report the size of the zone used.

Create the kern.malloc sysctl which replaces the kvm mechanism to report
similar data.  This will provide an easy place for statistics aggregation if
malloc_type statistics become per cpu data.

Add some code ifdef'd under MALLOC_PROFILING to facilitate a tool for sizing
the malloc buckets.
2002-04-15 04:05:53 +00:00
Dag-Erling Smørgrav
5f0ae68a18 PAMified passwd(1). Some NIS-related issues remain to be solved, but this
should work for everyday use.

Sponsored by:	DARPA, NAI Labs
2002-04-15 03:02:57 +00:00
Dag-Erling Smørgrav
a2fefc8d1d Skip zombies. Add an option (-z) to revert to the historical behaviour
of trying to kill zombies (which has no effect except emit a few error
messages)
2002-04-14 22:25:57 +00:00
David E. O'Brien
75a778e9f8 Back out rev 1.17, it breaks dependencies.
With rev 1.7 one cannot build src/bin/sh -- because make fails to create
the buildtools before trying to use them.  Actually it does compile the
buildtools into .o's before trying to use them, but not all the way into
binaries.
2002-04-14 04:15:34 +00:00
David E. O'Brien
6f98638581 Clean up the 1/2 a** committing from Thu, 3 May 2001 11:05:39 -0700 (PDT).
Since then we have living with a GPL'ed find(1) due to grabbing getdate.y
from src/contrib/cvs and its user of the GPL'ed xtime.h.  I don't even want
to think about how this could have affected people using our source base.

Would it have been too much trouble to do then what I did now?
Copied getdate.y (public domain) to usr.bin/find and change to use
standard system headers.  find(1) now compiles simply with out having
to go to extra effort to do so.

Pointed hat to:	phk
Build fixed on:	gcc 3.1 using platforms
2002-04-14 01:30:20 +00:00
Dag-Erling Smørgrav
839316e581 Remove bogus dependency on rlogin. 2002-04-13 23:31:27 +00:00
David Malone
3cd2a58926 Warns cleanups:
1) Add missing initialisers.
2) Avoid shadowing rcswhich.
3) Use intmax_t and %j for printing rather than quad_t and %q.
4) Don't modify a variable twice between sequence points.
2002-04-13 21:28:17 +00:00
David Malone
72c7c2e625 Remove previously unneeded and now incorrect cast of user_from_uid()
to a char *.
Fix up vendor ID.
2002-04-13 21:09:55 +00:00
David Malone
13685eeec2 Fix up vendor IDs.
Put a sequence point between writing to a variable and using it.
2002-04-13 20:59:48 +00:00
David E. O'Brien
ade4ded301 Revision 1.17 seems to break a subsequent buildworld (i.e. with the new
make installed) in gnu/usr.bin/groff/src/preproc/eqn (which, being a
build tool itself, is built with the original make during buildworld).

The problem seems to be that in str_concat(), the string is not
terminated when the length of the second string is 0.
This apparently can happen during null suffix rule processing.

Submitted by:	tmm
2002-04-13 19:36:47 +00:00
David Malone
8da9a6b0c5 Add some constness to make this WARNS clean again. 2002-04-13 18:38:16 +00:00
David E. O'Brien
79f407f91e Fix a minor lint warning. 2002-04-13 12:20:51 +00:00
David E. O'Brien
664a5a88d4 Prefer BSDmakefile over makefile and Makefile.
Submitted by:	jmallett
Obtained from:	OpenBSD
2002-04-13 12:18:00 +00:00
David E. O'Brien
9b24805230 Fix copyrights, and undo SCS ID damage. 2002-04-13 10:57:56 +00:00
Jeroen Ruigrok van der Werven
e2cf520799 Fix a missed conversion of lld to llu for the uint64_t ks_calls and cast
to unsigned long long.

Don't be too overzealous with the printing of ks_calls in the total
statistics, cut back from 20 to 13 positions to print (which should last
a couple of years easily (20 digits is enough for 3168 years of calls at a
measly billion (10^9) calls per second.)).

Submitted by:	bde
2002-04-13 10:32:36 +00:00
David E. O'Brien
4d1f4209a6 Update SCM ID method. 2002-04-13 10:17:18 +00:00
David E. O'Brien
302d0b1426 Make str_concat handle NULL arguments properly (a-la how ODE-2.3.6 make does).
Submitted by:	jmallett
Inspired by:	CMU BUILDTOOLS4 coredumping, ODE-2.3.6 make(1)
2002-04-13 10:13:39 +00:00
David E. O'Brien
a59e308cd7 De'register. 2002-04-13 10:05:30 +00:00
David E. O'Brien
46f905209d Constify str_concat()
Submitted by:	jmallett
2002-04-13 09:49:33 +00:00
David E. O'Brien
da363cd56a Check to make sure fdopen() succeeds in make(1).
Submitted by:	jmallett
Inspired by:	NetBSD
2002-04-13 09:10:07 +00:00
Philippe Charnier
5bf3fd2b9c Do not print error message twice. 2002-04-12 21:36:54 +00:00
Philippe Charnier
91966d21ff .Ar filename ... is equivalent to .Ar. 2002-04-12 21:31:24 +00:00
Philippe Charnier
4ed27a6f0a Replace err() with errx(), errno is garbage in this context. 2002-04-12 21:25:16 +00:00
Philippe Charnier
17de5908ce Reduce the number of spelling mistakes. 2002-04-12 21:18:05 +00:00
Maxim Sobolev
efaed24f7d Fix an ages-old bug in sed(1), which resulted in the absolutely valid
substitution expressions in the form `s,[fooexp],[barexp],;...' treated
as invalid when the third `,' is (_POSIX2_LINE_MAX * N)-th character in
the line.

MFC after:	2 weeks
2002-04-12 19:46:05 +00:00
Ruslan Ermilov
733bc9072b Revert last change, to be revisited later. 2002-04-12 16:50:52 +00:00
Philippe Charnier
2cafd1dca7 Un.Ar makefile. The add of .Ar was part of my last commit.
Asked by:	ru
2002-04-12 16:05:53 +00:00
Philippe Charnier
cb497d661f Reorder #include. Cast arg #2 of lseek to an off_t when constant. No need to
test if failsafe memory allocation fails, it can't. perror -> warn. Use
failsafe memory allocation provided.

Use .Pa and .Ar. Uppercase (first letter) programname after dot.
2002-04-12 13:23:33 +00:00
Philippe Charnier
7151087354 Make `make WARNS=3' succeed, notably, use %d to printf daddr_t value.
Use `.Nm Ns .' instead of `.Nm .' Add FBSDID. Do not put spaces inside []
in usage string.
2002-04-12 13:16:04 +00:00
Philippe Charnier
20c58ba5f7 Document that only superuser can use -c option. Add FBSDID. Make use of uid_t
to silent lint. fprintf -> err conversion. Add some FALLTHROUGH and NOTREACHED
comment to silent lint.
2002-04-12 13:11:42 +00:00
Philippe Charnier
4b952f84cb Add FBSDID. Do not put spaces inside [] in usage string. Test memory allocation
return code. Correct and update C example in man page. Uppercase program name
(.Nm) after a dot.
2002-04-12 13:08:00 +00:00
Ruslan Ermilov
f5a331218f Temporarily unconnect "doscmd" from build until I can fix
its broken Makefile.  The breakage is now fatal after the
bsd.prog.mk,v 1.109 change.
2002-04-12 11:22:44 +00:00
Hajimu UMEMOTO
4dac6235cf IPv6 support for tftp/tftpd.
Obtained from:	KAME
MFC after:	2 weeks
2002-04-11 17:14:22 +00:00
Ruslan Ermilov
b2490f915f I now don't seem to be able to reproduce the -DNOCLEAN buildworld
breakage with ioctl.c.  The .depend file should track dependencies
just fine, and the worst we can have is to miss new ioctls.

But I still think it's a good idea to have -DNOCLEAN build produce
the same ioctl.c as it would without -DNOCLEAN.

Prodded for a long time by:	bde
2002-04-11 14:49:32 +00:00
Tom Rhodes
a8d50686f5 find.1 does not encourage users to DTRT when piping to xargs(1)
PR:			36602
Submitted by:		Joshua Goodall <joshua@roughtrade.net>
No objections from:	ru
MFC after:		2 days
2002-04-10 16:39:22 +00:00
Maxim Konovalov
8143906680 o Fix an arguments number check in -n case.
o Remove duplicated prio check, donice() makes it for us.

Spotted by:	David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after:	1 week
2002-04-10 13:38:09 +00:00
Maxim Konovalov
d006e72a51 Implement POSIX -n option, cleanup an arguments parsing a bit.
PR:		bin/34076, bin/35929
Reviewed by:	bde
Obtained from:	NetBSD
MFC after:	1 week
2002-04-10 11:09:46 +00:00
Maxim Konovalov
d9db58c9dc style(9) cleanup.
Reviewed by:	bde
MFC after:	1 week
2002-04-10 10:59:19 +00:00
David E. O'Brien
259b7fa9b9 Style. 2002-04-10 03:10:03 +00:00
David E. O'Brien
17026331d6 Quiet uninitialized warnings. 2002-04-10 03:00:50 +00:00
Tom Rhodes
3e4d070b93 compress(1) has an erroneous description of zcat, fixed.
PR:	36453
No objections from:	ru
2002-04-09 20:40:24 +00:00
Bosko Milekic
e5f7f97622 Introduce NO_RCMNDS flag so as to not compile rsh, rlogin, and rcp on will,
and document in share/examples/etc/make.conf

Submitted by: Aleksandar Simic <asimic@dsl.pipex.com>
MFC after: 1 week
2002-04-09 18:25:44 +00:00
Ruslan Ermilov
c3e3cbe16e No longer needed to #ifdef __FBSDID, this is now handled by Makefile.inc1. 2002-04-09 11:39:05 +00:00
Ruslan Ermilov
8b04285f30 Style. 2002-04-09 07:05:24 +00:00
Ruslan Ermilov
498e32cef0 Make this compile in a standalone environment.
Tidy up CLEANFILES.
Use built-in rules for building "maketab".
2002-04-09 07:03:32 +00:00
Jeroen Ruigrok van der Werven
9e74ac9de4 Cast totreq to unsigned long long, as needed on 64-bit machines.
Pointed out by:	jeff
2002-04-08 21:06:14 +00:00
Andrey A. Chernov
9af48ddfd9 Remove it in favour of GNU sort 2002-04-08 20:50:12 +00:00