Maxim Sobolev
633d2bc579
Add new option -F to specify alternative location of the /etc/fstab
...
file.
MFC after: 1 month
2011-10-25 01:47:33 +00:00
Ed Schouten
f6d189a9e4
Raise WARNS for various tools where possible.
...
Submitted by: Marius Nünnerich <marius@nuenneri.ch>
2010-01-17 21:56:27 +00:00
Ruslan Ermilov
106d839190
Switch the default WARNS level for sbin/ to 6.
...
Submitted by: Ulrich Spörlein
2009-10-19 16:00:24 +00:00
Mike Makonnen
45a5dc937d
Add a -q flag to swapon(8) to suppress informational messages. Use it in
...
rc.d.
Note: errors are not affected by this flag.
2008-06-23 22:17:08 +00:00
Pawel Jakub Dawidek
2e64768c87
- Change the meaning of -h flag from giving the output in megabytes to
...
giving the output in a human-readable form. This behaviour is consistent
with most of system tools.
- Add -m and -g options to give output in megabytes and gigabytes
respectively.
2008-05-20 12:24:31 +00:00
Ruslan Ermilov
8d646af581
Sync program's usage() with manpage's SYNOPSIS.
2005-02-10 09:19:34 +00:00
Ruslan Ermilov
6087df9e8b
Sort sections.
2005-01-18 10:09:38 +00:00
David Schultz
6004362e66
Don't include sys/user.h merely for its side-effect of recursively
...
including other headers.
2004-11-27 06:51:39 +00:00
Mark Murray
4c723140a4
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
Mark Murray
16fc3635f7
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
David E. O'Brien
c69284ca08
Use __FBSDID() to quiet GCC 3.3 warnings.
2003-05-03 18:41:59 +00:00
Giorgos Keramidas
f5b4f7c9eb
Spell "utilities" correctly.
2003-02-28 00:55:18 +00:00
Ruslan Ermilov
15f6525003
More fixes.
...
Submitted by: Andy Farkas <andyf@speednet.com.au>
Reviewed by: das
2003-02-25 07:41:33 +00:00
Ruslan Ermilov
031e8f07e9
mdoc(7) police: Tidy up.
2003-02-24 23:02:37 +00:00
David Schultz
1281f763a9
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
David Schultz
4937798d56
- 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 Barcroft
9255f32701
Remove hack from rev 1.15; getbsize(3)'s original interface has been
...
restored.
2002-12-30 18:24:14 +00:00
Mike Barcroft
69095b0264
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
Matthew Dillon
a420c8119a
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
Matthew Dillon
92da00bb24
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
Tom Rhodes
ce66ddb763
s/filesystem/file system/g as discussed on -developers
2002-08-21 18:11:48 +00:00
Philippe Charnier
629e80effb
The .Nm utility.
2002-07-06 19:35:14 +00:00
Warner Losh
d476a036e2
o remove __P
...
o remove main prototype
2002-03-21 13:20:49 +00:00
David E. O'Brien
3d438ad61f
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
David E. O'Brien
2d68bf45bf
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
Dima Dorfman
b91c884fda
Set WARNS=2 on programs which compile cleanly.
...
Submitted by: Mike Barcroft <mike@q9media.com>
2001-07-15 10:30:46 +00:00
Ruslan Ermilov
9fe48c6e8d
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 11:04:34 +00:00
Dima Dorfman
cafefe8c1b
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 23:04:23 +00:00
Ruslan Ermilov
7e3ba257a8
vnconfig(8) -> mdconfig(8).
2001-04-10 16:29:41 +00:00
Ruslan Ermilov
0a5779d45b
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
Ruslan Ermilov
fe655281c5
Set the default manual section for sbin/ to 8.
2001-03-20 18:13:31 +00:00
Ruslan Ermilov
7c7fb079b9
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
Warner Losh
37736675d1
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
Gregory Sutter
9eac7384ba
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 Clayton
7e6fca8523
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
Alexey Zelkin
c6d6e7726f
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 Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Joseph Koshy
9c4134e136
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
Philippe Charnier
e798a806ce
.Nm swapon -> .Nm.
...
Sort #includes. Add rcsid.
1998-08-03 06:35:01 +00:00
Steve Price
84b9f7a718
Revert last commit and SEE ALSO pstat(8) instead.
...
Submitted by: Bruce Evans
1998-02-01 06:46:37 +00:00
Steve Price
1717267a28
SEE ALSO swapinfo(8).
...
PR: 5447
Submitted by: Craig Leres <leres@ee.lbl.gov>
1998-01-25 17:28:52 +00:00
Warner Losh
c9c3deeddc
.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
Philippe Charnier
6da7f3783b
Use warn(3).
1997-06-19 14:40:41 +00:00
Warner Losh
8d64695c7c
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 Wemm
c0ec1f37ef
Revert $FreeBSD$ to $Id$
1997-02-22 14:40:44 +00:00
Jordan K. Hubbard
1130b656e5
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
Wolfram Schneider
e0e5145ce6
add missing comma(s) in .Xr macros
1996-09-23 22:24:39 +00:00
Jordan K. Hubbard
7fc4a454e2
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
David Greenman
43e6fcd576
Take out special error message for EINVAL...we really do want it to be
...
"invalid argument".
1995-05-14 02:18:18 +00:00
Poul-Henning Kamp
38994f93ce
Fix -Wall warnings.
...
Yes I have better things to do, but just now I'm waiting...
1995-02-23 07:05:01 +00:00
Jordan K. Hubbard
571a258ad5
fstab is in section 5, not section 8.
...
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
Garrett Wollman
404c1a5fc1
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
Rodney W. Grimes
8fae3551ec
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