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
Andrey A. Chernov
00dfed40da
Disconnect sort
2002-04-08 20:44:36 +00:00
David E. O'Brien
28def05c25
Some things don't compile on ia64 and sparc64 yet.
2002-04-08 20:36:39 +00:00
Ruslan Ermilov
f2f306b622
Align for const poisoning in -lutil.
2002-04-08 11:07:51 +00:00
Jeroen Ruigrok van der Werven
9333bd2aa6
Change totreq to uint64_t from a long (the PR has an int64_t, which didn't
...
make sense to me) and change the printf argument from %8ld to %20llu to
accompany the printing of the totals.
Realigned the header printed above it as well.
PR: 32342
Submitted by: ryan beasley <ryanb@goddamnbastard.org>
Reviewed by: jeff, Tim J Robbins
2002-04-08 10:39:12 +00:00
Murray Stokely
b77b9b9a90
GCC 3.1 cleanup - add a break after default: at the end of a switch
...
statement.
2002-04-08 08:34:00 +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
Juli Mallett
ae17860040
Fix sed(1) in the case where a last line is specified and hold space is not
...
specified, and then the first part of the pattern space is deleted, when
there are two or more input lines, as this results in subtraction of one from
an unsigned integral value of '0'. That bogus value is used in one case
for a loop (that will run far too many times in this case) and a function to
search for a value within a specified range of memory, however now the range
of memory is obscenely large and a segmentation fault will occur. This is
fixed by checking for and appropriately handling a nil pattern space as if
the specified search in memory failed, as indeed it obviously will with nil
pattern space.
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
PR: bin/34813
Reviewed by: mike
MFC after: 1 day
2002-04-07 02:29:56 +00:00
David E. O'Brien
12b1cc8f72
Use the new features of cdefs.h.
2002-04-06 21:09:31 +00:00
David E. O'Brien
528b02ffd0
Fix style.
2002-04-06 21:03:33 +00:00
Andrey A. Chernov
50cd73c1a7
Remove old sort files to _actually_ build it from contrib sources
...
Forgotten by: des
2002-04-06 20:22:06 +00:00
Dag-Erling Smørgrav
22b3e77111
Rename a couple of local variables to avoid warnings.
...
Sponsored by: DARPA, NAI Labs
2002-04-06 19:04:22 +00:00
Dag-Erling Smørgrav
aa5619ca9e
Build a working version of sort(1) from contrib. Use netbsd.h as a hack
...
to avoid bringing the sources off the vendor branch just to #ifdef out
the RCS and SCCS IDs.
2002-04-06 13:59:43 +00:00