markm
3382584a53
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
f1849df8d1
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
43cf45d89f
Use __FBSDID() to quiet GCC 3.3 warnings.
2003-05-03 18:41:59 +00:00
keramida
aa4daa78b9
Spell "utilities" correctly.
2003-02-28 00:55:18 +00:00
ru
80c375c88a
More fixes.
...
Submitted by: Andy Farkas <andyf@speednet.com.au>
Reviewed by: das
2003-02-25 07:41:33 +00:00
ru
e4a35a8d20
mdoc(7) police: Tidy up.
2003-02-24 23:02:37 +00:00
das
fafbe618d5
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
d14a968b7a
- 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
7374376557
Remove hack from rev 1.15; getbsize(3)'s original interface has been
...
restored.
2002-12-30 18:24:14 +00:00
mike
77c2df01c2
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
6ae73c493b
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
c2d085eb9b
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
8dde7c54b8
s/filesystem/file system/g as discussed on -developers
2002-08-21 18:11:48 +00:00
charnier
52d13c5a78
The .Nm utility.
2002-07-06 19:35:14 +00:00
imp
a215ab7b12
o remove __P
...
o remove main prototype
2002-03-21 13:20:49 +00:00
obrien
f0428c61e5
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
a537f22ad4
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
04bb1d656b
Set WARNS=2 on programs which compile cleanly.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-15 10:30:46 +00:00
ru
cb3283b5da
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 11:04:34 +00:00
dd
f5d286af56
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
0a69fb7b38
vnconfig(8) -> mdconfig(8).
2001-04-10 16:29:41 +00:00
ru
e7c03cd6b0
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
ru
e2a472a47a
Set the default manual section for sbin/ to 8.
2001-03-20 18:13:31 +00:00
ru
d16dd614f6
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
imp
0b0d2facd9
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
0588e93f99
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
346a608232
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
34985ba96d
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
e226894fa0
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
jkoshy
4c149f150f
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
1486bebece
.Nm swapon -> .Nm.
...
Sort #includes. Add rcsid.
1998-08-03 06:35:01 +00:00
steve
8a15e93dfc
Revert last commit and SEE ALSO pstat(8) instead.
...
Submitted by: Bruce Evans
1998-02-01 06:46:37 +00:00
steve
65d1eef9d0
SEE ALSO swapinfo(8).
...
PR: 5447
Submitted by: Craig Leres <leres@ee.lbl.gov>
1998-01-25 17:28:52 +00:00
imp
65aa95ca34
.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
5443049119
Use warn(3).
1997-06-19 14:40:41 +00:00
imp
88b6081b7e
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
4997d39dce
Revert $FreeBSD$ to $Id$
1997-02-22 14:40:44 +00:00
jkh
9c0cd3f9df
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
e7eeae0eba
add missing comma(s) in .Xr macros
1996-09-23 22:24:39 +00:00
jkh
7c5699c291
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
da8c2824bd
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
580692df64
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
38ea135171
fstab is in section 5, not section 8.
...
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
wollman
8e1bbb06c3
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