Bill Fenner
13ca3c01ec
Clean up some .Os macro uses: quotes are not needed, multiple arguments
...
don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental"
isn't an OS name.
1999-02-15 08:34:14 +00:00
Alexander Langer
43d1df332e
Removed occurrences of consecutive repeated words (such as "the the").
1999-02-12 02:12:08 +00:00
Garrett Wollman
bd98a81593
Fix synopsis to match 1003.2. Add text describing the way in which
...
our implementation does not meet 1003.2 (rather than the now outdated
``is expected to comply' language).
1999-01-28 17:41:02 +00:00
Julian Elischer
88c5ea4574
Enable Linux threads support by default.
...
This takes the conditionals out of the code that has been tested by
various people for a while.
ps and friends (libkvm) will need a recompile as some proc structure
changes are made.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
1999-01-26 02:38:12 +00:00
Daniel O'Callaghan
fd5a0a9b4b
Example "19%y" changed to "%Y" to discourage poor usage.
1999-01-13 07:01:07 +00:00
Julian Elischer
d8c85307b2
Re-enable the options in ps(1) that were disabled with the Linux
...
threads support.
Submitted by: "Richard Seaman, Jr." <dick@tar.com>
1999-01-13 03:11:43 +00:00
Julian Elischer
6626c6045c
Reviewed by: Luoqi Chen, Jordan Hubbard
...
Submitted by: "Richard Seaman, Jr." <lists@tar.com>
Obtained from: linux :-)
Code to allow Linux Threads to run under FreeBSD.
By default not enabled
This code is dependent on the conditional
COMPAT_LINUX_THREADS (suggested by Garret)
This is not yet a 'real' option but will be within some number of hours.
1998-12-19 02:55:34 +00:00
Joseph Koshy
c83e7c5041
Add references to test(1) and expr(1).
1998-12-18 03:51:18 +00:00
Joseph Koshy
e5bf7bf46c
Add cross-references to test(1) and expr(1) respectively.
...
PR: docs/9111
Submitted by: Josh Gilliam <josh@quick.net>
1998-12-18 03:16:47 +00:00
Peter Wemm
dd4cdf587c
Cleaning out old stuff from one of my source trees:
...
use mkdtemp() rather than mktemp() and fix a trivial memory leak.
1998-12-16 05:29:09 +00:00
Warner Losh
a207266e91
Free memory from setmode.
...
Obtained from: OpenBSD
1998-12-16 04:45:35 +00:00
Warner Losh
0fd975510f
Use getcwd in stead of using getwd so that we try harder to avoid
...
overflowing a buffer.
Obtained from: Either OpenBSD or a discussion in bugtraq.
1998-12-16 04:44:32 +00:00
Warner Losh
a4324714a9
Free memory obtained from setmode.
...
Obtained from: OpenBSD
1998-12-16 04:42:33 +00:00
Bruce Evans
d3f062f04e
Don't put compiler warning flags in leaf Makefiles.
1998-12-07 12:50:48 +00:00
Bruce Evans
ed334a37cd
CFLAGS+= -Wall -Wformat for all of src/bin. All warnings except 2 minor
...
ones in rmail have been fixed.
1998-12-07 12:44:12 +00:00
Bruce Evans
f58a6c7a68
Fixed printf format errors.
1998-12-07 12:37:11 +00:00
Bruce Evans
3b53d3803e
Fixed warnx format errors in printf and csh, and snprintf format errors
...
in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx.
(The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy
args.)
1998-12-07 12:14:04 +00:00
Bruce Evans
b98f433d36
Fixed -Wall regression (broken in rev.1.12). Removed unused includes.
1998-12-07 10:25:48 +00:00
Bruce Evans
9776f3dbad
Fixed printf format errors (new bugs in rev.1.7). Fixed a spelling error
...
(rev.1.7 blew away most of rev.1.2-1.6; I'm only fixing blowing away of
rev.1.4).
1998-12-07 10:16:58 +00:00
Archie Cobbs
fa146c5335
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
1998-12-06 22:58:23 +00:00
David E. O'Brien
f46ecf8bc9
Rev 1.13 fixes PR bin/8958
1998-12-06 05:49:29 +00:00
David E. O'Brien
f08c1d5e48
There is a bug in /bin/pax -s option processing. The code assumes that all
...
pattern matches will occur at offset zero of the source string. The bug causes
the input source string pointer to be incremented by the offset of the end of
the match, instead of it's length. The fix is to only increment the pointer by
the length of the pattern match (eo-so).
Of course, the one example in the man page shows a situation where the match
occurs at offset 0.
Submitted by: John W. DeBoskey <jwd@unx.sas.com>
Obtained from: freebsd-current@freebsd.org
1998-12-05 10:29:10 +00:00
Bill Fumerola
0bd063bcd3
Fix typo. "If the an entry" --> "If an entry"
...
PR: docs/8140
Submitted by: Sue Blake <sue@vedanix.welearn.com.au>
1998-12-02 23:20:11 +00:00
Bill Fumerola
969385c1d5
superceded -> superseded, which after some debate on #FreeBSD is in
...
fact the proper spelling.
PR: docs/8697
Submitted by: Sascha Blank <blank@fox.uni-trier.de>
1998-11-30 23:05:38 +00:00
Bill Fumerola
d234f408fe
changable -> changeable
...
PR: docs/8697
Submitted by: Sascha Blank <blank@fox.uni-trier.de>
1998-11-30 22:56:44 +00:00
Bruce Evans
7d159f8837
Describe `bs=n' more precisely. Fixed some English errors.
...
Obtained from: OpenBSD
1998-11-29 13:54:20 +00:00
Doug Rabson
eb235b13c7
Fix formatting of %CPU value on alpha.
...
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
1998-11-25 09:34:00 +00:00
Jordan K. Hubbard
f21a1a1015
Indicate that the thing not found was not /bin/pwd but rather $CWD (or .).
1998-11-21 08:45:22 +00:00
Bruce Evans
40fc4ee2de
Don't use mmap() for non-regular files, since st_size is only meaningful
...
for regular files. This fixes recent breakage of cp'ing from /dev/zero.
/dev/zero doesn't support mmap(), but the device driver mmap routines are
not called for mapping 0 bytes, so the error was not detected. mmap()
can't even be used for cp'ing special files that support mmap(), since
there is general way to determine the file size.
1998-11-18 11:47:45 +00:00
Wolfram Schneider
146726f36f
Use mmap for file coping. 5-10% faster than the read system call.
1998-11-14 23:43:11 +00:00
Mike Smith
e45520f76e
Fix behaviour for 'mkdir -m 777 / /tmp/foo'. Play "guess the style bug"
...
with Bruce again.
Reported by: bde
1998-10-23 06:28:40 +00:00
Mike Smith
16c0b5195c
Honour the spirit rather than the implementation of the previous changes;
...
if we are invoked with -m, use chmod() on the final directory component
in order to ensure the mode is correctly set.
1998-10-22 21:42:20 +00:00
Mike Smith
37a182e2b2
Make this compile, and honour the spirit of the original design while
...
incorporating the intended fix. Attempt to address some of the
putative style bugs introduced. Others doubtless remain.
Embarrassed by: bde
1998-10-20 08:04:15 +00:00
Mike Smith
2426ecdfa2
- mkdir -m should call chmod because the high-order bits get ignored
...
by the kernel as a security feature of some sort.
Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
1998-10-20 06:37:01 +00:00
Mike Smith
4757e52686
- Fix off-by-one problem in tar where filenames of length 100
...
and dirnames of length 99 don't archive.
Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
Obtained from: OpenBSD
1998-10-20 05:52:33 +00:00
Dag-Erling Smørgrav
1fd98d7d88
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
...
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
1998-10-13 14:52:33 +00:00
Dag-Erling Smørgrav
0ffc35a465
Doh. What was I smoking when I wrote this?
...
PR: bin/8301
Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
1998-10-13 12:19:31 +00:00
Joseph Koshy
22f6653381
Correct a grammatical nit and remove ambiguity about the effect of
...
the -p option.
PR: 8229
Submitted-by: Sheldon Hearn <axl@iafrica.com>
1998-10-13 08:52:29 +00:00
Mark Murray
bacda65d14
Add JKH's auth.conf-file parser to turn Kerberos on/off in userland.
1998-10-09 06:31:45 +00:00
Jordan K. Hubbard
9a54dc6faf
Null commit, just to test something. Please ignore.
1998-10-04 00:41:08 +00:00
Alexander Langer
f97fe12243
Added missing #include <string.h>
1998-10-03 16:29:59 +00:00
Kenneth D. Merry
c8c7ba2b9a
Fix 'chio params' so that it actually prints out the current picker.
...
(This was broken when the volume tag changes went in.)
Submitted by: Josef Karthauser <joe@pavilion.net>
1998-10-01 23:30:14 +00:00
Justin T. Gibbs
20bf9a142c
Updated the ch(4) driver and chio(1) command to include volume
...
tag support. These changes have been tested with a Breeze Hill
Q47 DLT and a DEC DLT2500 media changer. The latter has no
volume tag support.
The chio(1) command was updated to include various flags to the
status subcommand. These flags can be used to select additional
information to be displayed (like volume tags).
A new chio(1) subcommand named 'voltag' has been added which allows
for changes to volume tags inside the media changer controller.
This could not be tested as the Q47 does not provide the functio-
nality.
Submitted by: Hans Huebner
1998-09-15 07:48:51 +00:00
Doug Rabson
3929d51888
Portability fixes when sizeof(int) != sizeof(long).
1998-09-14 08:32:20 +00:00
Warner Losh
d1762d1fbe
Fix minor style bugs noticed by the Bruce Filter.[tm]
...
Bruce-Filter-By: bde
1998-09-13 19:54:54 +00:00
Tor Egge
5557a02a60
Be more consistent with handling of quote mark control character.
...
Don't output double-quotes inside variable expansion/arithmetic
expansion region in here-documents. When leaving the arithmetic
expansion syntax mode, adjust the dblquote flag according to
previous syntax, in order to avoid splitting of quoted variables.
1998-09-13 19:24:57 +00:00
Warner Losh
a5da09996c
Silence -Wall -W -Wkitchen-sink. Use ssize_t in preference to int,
...
make a char * const that should have been. Use new style function
declaration for main. Mostly a Bruce Filter[tm] test commit.
1998-09-11 05:48:06 +00:00
Martin Cracauer
9bbfa41541
Narrow down conditions to break wait() to process traps.
...
Improve comments.
1998-09-10 22:09:11 +00:00
Bruce Evans
e36039e731
Fixed breakage of %CPU and %MEM in the previous commit. sysctlbyname()
...
was called with wrong args so it always failed.
PR: 7881
1998-09-10 18:06:28 +00:00
Martin Cracauer
e6ac45dde2
Fix an inefficiency I introduced in my last commit.
...
Include "expand.h" vom memalloc.c to pull function declartion into scope
1998-09-10 14:51:06 +00:00