markm
90f91e7879
Remove advertising clause from University of California Regent's license,
...
per letter dated July 22, 1999.
Approved by: core, imp
2004-04-09 19:58:40 +00:00
markm
0b0ae8e16e
Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)
...
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).
There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".
Tested on: i386 sparc64
2004-03-05 08:10:19 +00:00
obrien
19105c8312
Use __FBSDID() to quiet GCC 3.3 warnings.
2003-05-03 18:41:59 +00:00
keramida
db29ab160b
Spell "utilities" correctly.
2003-02-28 00:55:18 +00:00
ru
d5d524487f
More fixes.
...
Submitted by: Andy Farkas <andyf@speednet.com.au>
Reviewed by: das
2003-02-25 07:41:33 +00:00
ru
4227865460
mdoc(7) police: Tidy up.
2003-02-24 23:02:37 +00:00
das
859f2bea3a
Clarify about NSWAPDEV, add a DIAGNOSTICS section pointing to
...
swapon(2), and correct HISTORY.
Reviewed by: mike (mentor)
2003-02-24 08:52:06 +00:00
das
9f419c5edf
- Add a clearer error message for the case where swapon hits the
...
NSWAPDEV limit.
- Don't warn about devices that are not in use in 'swapoff -a'.
- Re-add behavior mistakenly removed in revision 1.44:
If using 'swapon -a', do not warn if the device is already in use.
PR: 46633
Submitted by: Andy Farkas <andyf@speednet.com.au> (in part)
Reviewed by: mike (mentor)
2003-02-24 08:51:31 +00:00
mike
565badda7f
Remove hack from rev 1.15; getbsize(3)'s original interface has been
...
restored.
2002-12-30 18:24:14 +00:00
mike
8dbf6198d3
Make the first argument to getbsize(3) a `size_t *'. This is a hack
...
since getbsize(3) should have `int *' as its first parameter.
2002-12-30 05:35:06 +00:00
dillon
954749368b
Add 'swapctl' - as a hardlink to swapon/swapoff, and augment swapon with
...
swapctl functionality. The idea is to create a swapctl command that is
fairly close to the OpenBSD and NetBSD version. FreeBSD does not implement
swap priority (and it would be a mistake if we did) so we didn't bother with
that part of it.
Submitted by: Eirik Nygaard <eirikn@bluezone.no>
Augmented by: dillon (extensively)
Reviewed by: David Schultz <dschultz@uclink.Berkeley.EDU>
2002-12-28 23:39:47 +00:00
dillon
b43fb3e920
This is David Schultz's swapoff code which I am finally able to commit.
...
This should be considered highly experimental for the moment.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 3 weeks
2002-12-15 19:17:57 +00:00
trhodes
136be46680
s/filesystem/file system/g as discussed on -developers
2002-08-21 18:11:48 +00:00
charnier
a82970a04e
The .Nm utility.
2002-07-06 19:35:14 +00:00
imp
ec2a00af74
o remove __P
...
o remove main prototype
2002-03-21 13:20:49 +00:00
obrien
73c6870b18
Remove 'register' keyword.
...
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
"register" -- just how many free registers do people think machines have?)
2002-03-20 17:55:10 +00:00
obrien
9baf2f1b03
Default to WARNS=2.
...
Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
2001-12-04 02:19:58 +00:00
dd
0f445ae1d8
Set WARNS=2 on programs which compile cleanly.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-15 10:30:46 +00:00
ru
7cef49ff86
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 11:04:34 +00:00
dd
ef9ae51ffe
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 23:04:23 +00:00
ru
4944787dbf
vnconfig(8) -> mdconfig(8).
2001-04-10 16:29:41 +00:00
ru
86642a4ab4
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
ru
56b5d7535b
Set the default manual section for sbin/ to 8.
2001-03-20 18:13:31 +00:00
ru
ea31070695
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
imp
7fec3d2787
Add include of errno.h where needed, remove extern int errno where not.
...
These commits were inspired by a similar commit to netbsd.
2000-04-14 06:15:01 +00:00
gsutter
d975becf84
correct wording in BUGS section; it's not possible to dismount swap
...
devices, but it's certainly possible to make use of them.
PR: 17013
Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
2000-02-28 21:29:37 +00:00
nik
a9b8cbd24d
Mention /dev/vn0b and /dev/vntab. ascii -> ASCII transform had
...
already happened in an earlier commit.
PR: docs/13645
Submitted by: Stephen Roznowski <sjr@home.com>
1999-09-26 00:05:45 +00:00
phantom
353c1a6746
Correct spelling : ascii -> ASCII
...
PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp
1999-09-20 09:15:23 +00:00
peter
76f0c923fe
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
jkoshy
a53a51c064
Refer to current names for swap partitions in the `FILES' section.
...
PR: docs/11709
Submitted by: Matthew D. Fuller <fullermd@over-yonder.net>
1999-05-17 05:19:13 +00:00
charnier
3c48dac533
.Nm swapon -> .Nm.
...
Sort #includes. Add rcsid.
1998-08-03 06:35:01 +00:00
steve
74cbc4dc5c
Revert last commit and SEE ALSO pstat(8) instead.
...
Submitted by: Bruce Evans
1998-02-01 06:46:37 +00:00
steve
c71566911e
SEE ALSO swapinfo(8).
...
PR: 5447
Submitted by: Craig Leres <leres@ee.lbl.gov>
1998-01-25 17:28:52 +00:00
imp
015fbf2e02
.Xr vnconfig 8. This was suggested by Dworkin Muller <dworkin@village.org>
...
when he tried to figure out how to swap to a file and had to ask me for
help.
1997-08-26 00:32:06 +00:00
charnier
359e756ecf
Use warn(3).
1997-06-19 14:40:41 +00:00
imp
167db52912
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 03:33:12 +00:00
peter
4968036f61
Revert $FreeBSD$ to $Id$
1997-02-22 14:40:44 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
89dea7c61d
add missing comma(s) in .Xr macros
1996-09-23 22:24:39 +00:00
jkh
1cb64d5cca
Make the noauto flag usable for swap devices too. Closes PR#1542
...
Submitted-By: David Leonard <d@scry.dstc.edu.au>
1996-09-06 06:01:05 +00:00
dg
9dfe5706e1
Take out special error message for EINVAL...we really do want it to be
...
"invalid argument".
1995-05-14 02:18:18 +00:00
phk
3b792acf3c
Fix -Wall warnings.
...
Yes I have better things to do, but just now I'm waiting...
1995-02-23 07:05:01 +00:00
jkh
10402791e8
fstab is in section 5, not section 8.
...
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
wollman
57ea13e98c
Convert to our man installation style. Also fixed long-standing bug
...
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
rgrimes
d038e02fd6
BSD 4.4 Lite sbin Sources
...
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00