Commit Graph

36 Commits

Author SHA1 Message Date
ru
763b9ae1f8 Switch the default WARNS level for sbin/ to 6.
Submitted by:	Ulrich Spörlein
2009-10-19 16:00:24 +00:00
brueffer
a9a4d856ad Mark up lkm with .Nm, since lkm is name of an api.
Submitted by:	ru
2007-02-13 17:06:15 +00:00
brueffer
6b5f1d5d9e Don't reference lkm(4), it doesn't exist.
PR:		108980
Submitted by:	Yonatan
2007-02-10 08:44:41 +00:00
wkoszek
d85c4ef4cd Bump a date in .Dd field. Last change brought some new functionality.
Spotted by:	brueffer
Approved by:	cognet (mentor)
MFC after:	1 week
2006-02-27 22:48:58 +00:00
wkoszek
69303cd40f Extend kldunload(8) functionality and fix minor problems:
o multiple modules can be unloaded at once (specified either by id or be
  module name)
o exit with EX_USAGE after usage() is called.
o remove unused variables, since we keep command line flags as bitmask,
  in 'opt'.
o 'kldload -n ...' does nothing. Add comment to this options.

Additionally:
o Update manual page to conform new functionality.
o Increace WARNS to 6. Because we can.

Approved by:	cognet (mentor)
MFC after:	1 week
2006-02-27 22:20:57 +00:00
wkoszek
463414cc5c Big style(9) fix. This commit brings no functional change.
Approved by:	cognet (mentor)
MFC after:	1 week
2006-02-27 21:55:47 +00:00
glebius
ac4a47b2e5 - Correctly spell MOD_QUIESCE
- use .Dv for it

MFC after:	3 days
2005-02-09 22:06:16 +00:00
ru
d70f40f805 Document -f in usage(). 2005-01-30 13:23:04 +00:00
ru
6cc4b6c220 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
ru
c56f1c1871 Scheduled mdoc(7) sweep. 2005-01-10 16:17:34 +00:00
phk
b0e6874188 Give kldunload a -f(orce) argument.
Add a MOD_QUIESCE event for modules.  This should return error (EBUSY)
of the module is in use.

MOD_UNLOAD should now only fail if it is impossible (as opposed to
inconvenient) to unload the module.  Valid reasons are memory references
into the module which cannot be tracked down and eliminated.

When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is
not given, MOD_QUIESCE failing will also prevent the unload.

For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as
success.

Document that modules should return EOPNOTSUPP for unknown events.
2004-07-13 19:36:59 +00:00
obrien
19105c8312 Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
johan
f0e2ab20a0 style(9): use NULL when assigning/comparing a char *,
consitently compare fileid with 0 using == and !=.

Reviewed by:	silence on @audit
2003-04-23 20:33:57 +00:00
johan
4c6fe8967c Make this WARNS=5 clean by adding () in 'if (a || (b && c))'.
Look at by:	sebastian.ssmoller@web.de on audit@
2003-04-23 20:26:21 +00:00
charnier
a2accd01f0 The .Nm utility 2002-07-06 19:34:18 +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
ru
7cef49ff86 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 11:04:34 +00:00
ru
52a9144c8b Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +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
bde
4b01b2d6fc Fixed bitrot in usage message (-n is now optional). 1999-09-08 05:46:47 +00:00
n_hibma
8d8f84be50 Show that the -n option is optional
Suggested by:	Bruce Evans <bde@zeta.org.au>
Reviewed by:	dfr
1999-09-06 08:30:25 +00:00
chris
daa0ce629e Add cross-references to respective syscalls. 1999-09-03 16:40:24 +00:00
peter
76f0c923fe $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
n_hibma
1c17b991d7 Add a sensible message if an invalid ID was entered
PR:		8739
Submitted by:	Love lha@stacken.kth.se
Reviewed by:	Doug Rabson <doug@freebsd.org>
1999-07-25 11:00:05 +00:00
obrien
e57e639344 Fill-in the manpages a little. 1998-11-12 11:10:26 +00:00
des
d5017f342c Bitch if both an id and a name are specified. Make the man page and usage
message reflect this. As a bonus, make the -n optional so that 'kldunload
name' works as one would expect.
1998-11-07 00:42:52 +00:00
charnier
f910b5ad8b Lowercase 1st char. in err(3) strings. 1998-07-06 06:59:52 +00:00
charnier
8e69ba3343 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
charnier
25019d11da Sync. usage string and synopsis. Add rcsid. 1998-01-05 07:10:42 +00:00
jmg
e38809b8d9 use += on cflags
Submitted-by:	Steve Price <sprice@hiwaay.net>
1997-10-26 04:58:27 +00:00
jmg
83ab22e89f fix mispelling of kld 1997-10-24 05:30:12 +00:00
jmg
b389f452d8 a few code style changes:
o start function names in column 1
    o sort order of flags in getopt and switch
    o don't try to reference progname
    o unspam some changes introduced by a 2.2.1-R build box instead of a
	-current build box

doc changes:
    o document when these commands first appeared
    o put email address in angle brakets
    o minor mdoc clean up
1997-10-21 09:59:26 +00:00
jmg
075da1dbb9 activate the programs that will be used to manipulate kld modules
fix a few problems with missing headers, warn called with an exit
value, and undeclared getopt vars

these programs now compile -Wall clean (and yes, I know I should use
more than just -Wall) :)
1997-10-19 11:15:45 +00:00
dfr
6a933805fd Add utilities for the kernel linker. 1997-05-07 18:19:54 +00:00