6267 Commits

Author SHA1 Message Date
obrien
7ea86c6d90 Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
trhodes
23174ba968 Don't truncate the output file before making sure that we can
read at least 1 byte from the input file without problems.  This
fixes a bug in uncompress(1) that causes the accidental removal
of files that happen to have the same name as the output file,
even when the uncompression fails and is aborted, i.e.:

$ echo hello world > hello
$ touch hello.Z
$ ls -l hello*
-rw-rw-r--  1 giorgos  giorgos  12 Jun 14 13:33 hello
-rw-rw-r--  1 giorgos  giorgos   0 Jun 14 13:33 hello.Z
$ ./uncompress -f hello
uncompress: hello.Z: Inappropriate file type or format
$ ls -l hello*
-rw-rw-r--  1 giorgos  giorgos  0 Jun 14 13:33 hello.Z
$

PR:		46787
Submitted by:	keramida
2003-06-14 13:41:31 +00:00
markm
0a322f49b1 Fix all WARNS. Checked with "make WARNS=9". Remove unused file. 2003-06-14 13:00:21 +00:00
mux
56e414d2aa - Use _PATH_TTY and _PATH_DEVNULL macros.
- Don't fail if we can't open /dev/null since this can happen if
  xargs is jail'ed or chroot'ed.

These fixes were submitted by Todd Miller from the OpenBSD project.
There was one problem in those fixes that broke -o, which is corrected
here and should be committed to the OpenBSD repo by Todd soon.

MFC in:	3 days
2003-06-13 17:05:41 +00:00
jmallett
d187b499cb Use waitpid, instead of wait3, which is more portable.
Submitted by:	"Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from:	OpenBSD
Reviewed by:	tjr
2003-06-13 07:37:45 +00:00
jmallett
fc99696af3 Remove redundant return; from void function.
Submitted by:	"Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from:	OpenBSD
2003-06-13 07:25:15 +00:00
mike
e9ac0091c2 Drop maintainership of whois(1). If someone needs a review they can
find me in the whois.c revision history.
2003-06-12 02:46:47 +00:00
erwin
ae671c580c add my birthday 2003-06-11 09:04:53 +00:00
trhodes
d46752fb9c Revert 1.52. This should have been added to fetch.3.
Discussed with:	des, ru
2003-06-10 20:34:50 +00:00
markm
d152e35c14 Revert part of the last commit. This fixes tail for pipes.
Submitted by:	joerg
2003-06-10 16:49:14 +00:00
ache
a9b19bb5c6 Add (unsigned char) cast to ctype macros 2003-06-10 02:18:00 +00:00
ache
386bc52485 Use setlocale & nl_langinfo to parse locale name 2003-06-10 02:15:00 +00:00
ache
dbd5811216 Remove deprecated locale names 2003-06-10 01:54:10 +00:00
charnier
2d8c3025e5 Introduce options definition the standard way. command -> utility. 2003-06-09 19:37:45 +00:00
charnier
567bdfa6b2 Introduce options definition the standard way. Do not uppercase first
letter in FILES section.
2003-06-09 19:35:56 +00:00
charnier
b14a9fc5e6 Introduce options definition the standard way. 2003-06-09 19:32:02 +00:00
charnier
f41e5c9c45 Revert previous commit, from Bruce:
This is a style bug.  err() is declared is non-returning so that every
  use of it doesn't need to be encrufted with NOTREACHED.  It's too bad
  that only gcc understands the declaration.

Asked by:	bde@
2003-06-09 19:21:35 +00:00
jmallett
000dad93ab Add sysctlbyname(3) support, and use that for uname -i, in preparation for
replacing the committed static OID version with a string-based OID_AUTO
version.
2003-06-09 10:23:43 +00:00
jmallett
f315e03eaf Make kernel identification (`ident' in the config(8) driver) available to
userland, and the kernel.  In the kernel by way of the 'ident[]' variable
akin to all the other stuff generated by newvers.sh.  In userland it is
available to sysctl consumers via KERN_IDENT or 'kern.ident'.  It is exported
by uname(1) by the -i flag.

Reviewed by:	hackers@
2003-06-09 09:38:20 +00:00
will
c0f54c2235 REST IN PEACE
Alan Eldridge
Born December 15, 1961 in Iowa
Died June 6, 2003 in Denver, Colorado

Thank you for your contributions, you
will be greatly missed.

http://freebsd.kde.org/memoriam/alane.php

(This change suggested by ru@ - thanks).
2003-06-08 21:31:10 +00:00
ru
a3c466e480 The sorting is by month/day/year/login. 2003-06-08 16:37:40 +00:00
ru
4e81f78d34 Submitted by: hmp 2003-06-08 15:01:44 +00:00
charnier
9c2207d724 command -> utility. Add section number to .Xr 2003-06-08 14:38:02 +00:00
charnier
7fdb309164 The .Nm utility 2003-06-08 14:36:22 +00:00
charnier
11aca63bf3 command -> utility 2003-06-08 14:35:11 +00:00
charnier
5f2eefe79b Add section number to .Xr 2003-06-08 13:58:08 +00:00
charnier
32299344de typo 2003-06-08 13:51:40 +00:00
charnier
b0319d6cd2 The .Nm utility 2003-06-08 13:47:20 +00:00
charnier
91c98c2c53 The .Xr utility 2003-06-08 13:45:37 +00:00
charnier
d078b9423e The .Xr files 2003-06-08 13:43:56 +00:00
charnier
6dc80df9f4 Add NOTREACHED after err() inside of a switch statement. 2003-06-08 13:39:32 +00:00
obrien
7c18a9f411 Consistently use __inline for pure c89 compilers.
Submitted by:	Tim Kientzle <kientzle@acm.org>
2003-06-07 18:12:30 +00:00
mux
df4d18c70c Finish the implementation of the -p switch so that it
actually works.  I have no idea why this wasn't finished
and happened to try to use it.
2003-06-07 14:36:49 +00:00
osa
e9955b188c Add my birthday.
Approved by:	fjoe (mentor)
2003-06-06 15:08:32 +00:00
kuriyama
f0a040c72b Use
cat ${.ALLSRC} > ${.TARGET}
rather than
	ln -sf ${.ALLSRC} ${.TARGET}
not to depends on absolute-path of symbolic links.

Commented by:  marcel, obrien, bde
2003-06-06 13:46:55 +00:00
marcel
a7ad93e446 Use cat(1) instead of cp(1) so as not to break -DNOCLEAN builds
when the file permissions of source files don't allow writing.
2003-06-06 05:38:09 +00:00
fanf
e503a716d1 Do not dribble zero bytes into the output, by replacing an obfuscated if
whose true and false clauses were equivalent with a check that we are
not about to stumble off the end of the line.

Reported by:	peter
Pointy hat to:	fanf
2003-06-05 12:10:19 +00:00
fanf
2001590435 Fix substitution when the regex matches the zero-length string.
There are two bugs: in the s///g case, the substitution didn't occur
at the end of the line; in the s///N case, the code didn't count
forwards along the line properly. See the sg, s3, s4, and s5 tests
in src/tools/regression/usr.bin/sed/.

Reviewed by:	tjr
2003-06-04 15:31:55 +00:00
fanf
fd4b814ebf MAINTAINER line moved to MAINTAINERS file. 2003-06-04 10:01:10 +00:00
ache
5b07ec4fbc Change fatal to warnx() for unknown encoding 2003-06-03 16:58:31 +00:00
peter
cd6f53b88d Two enhancements for kdump.
1) add a "-p pid", which is rather useful for selecting a single pid in
a combined trace file (eg: with ktrace -i).
2) display binary genio data in a more precise format.
2003-06-03 01:44:43 +00:00
ache
7b3c2b7e5f Hardcore supported encodings list 2003-06-02 19:54:29 +00:00
ru
683fd8c50f Assorted mdoc(7) fixes. 2003-06-02 11:19:24 +00:00
tjr
f9c2081f4f Give the -o option before any filename operands when invoking the sort
utility. 1003.1-2001 does not allow sort to accept the -o option after
the operands (Base Definitions, 12.2 Utility Syntax Guidelines,
Guideline 9).
2003-06-01 22:37:38 +00:00
tjr
dfd248ebc6 Split the env(1) manpage off from printenv(1); there is not much point
in keeping them together. Mention that printenv is obsolescent.
2003-06-01 06:29:47 +00:00
tjr
564a07d9be Close files after opening them to avoiding leaking descriptors and memory. 2003-06-01 06:15:30 +00:00
schweikh
b8e383ac78 Rewrite this csh program as a /bin/sh program. This appears to be
the last csh script needed for a buildworld. You should now be able
to buildworld on a system that was compiled with NO_TCSH=true.
Verified to produce the same result for the one file being generated
during buildworld, share/doc/papers/kernmalloc/appendix.ms.

Reviewed by:	hackers@
MFC after:	2 weeks
2003-05-31 21:02:50 +00:00
ru
c8ec44c56d Assorted mdoc(7) fixes. 2003-05-30 21:27:29 +00:00
mdodd
8b2214412d Remove uninitialized local variable in favor of global.
PR:		 bin/52685
Submitted by:	 Alexander Nedotsukov <bland@mail.ru>
Approved by:	 re (scottl)
2003-05-26 04:58:26 +00:00
ru
8ec4f151e2 Erase whitspace at EOL.
Approved by:	re (blanket)
2003-05-22 13:10:32 +00:00