summaryrefslogtreecommitdiffstats
path: root/sbin/kldstat/kldstat.c
Commit message (Collapse)AuthorAgeFilesLines
* In printfile(), exit the process instead of only printing the warning.kib2010-11-131-2/+3
| | | | | | | | | | This fixes verbose mode when either -i specified non-existent kldfile id, or the file was unloaded between two kldnext(2) calls. While there, fix printfile() definition to be style(9)-compliant. Submitted by: arundel MFC after: 1 week
* Casting size_t to uintmax_t is not necessary anymore. This alsobrueffer2010-05-121-3/+2
| | | | | | | | | removes the need for stdint.h inclusion. PR: 146046 Submitted by: Alexander Best <alexbestms@wwu.de> Reviewed by: kan MFC after: 1 week
* Only show the pathname in verbose output as intended in the last commit ↵thompsa2008-12-221-3/+5
| | | | (r172862).
* Add the full module path name to the kld_file_stat structurejb2007-10-221-2/+2
| | | | | | | | | | | | | | for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days
* Update usage.pjd2005-09-241-1/+1
|
* Add '-q' option, which (when used with '-m' option) just tells if the givenpjd2005-09-231-3/+12
| | | | | | | | module is loaded or compiled into the kernel. This is useful mostly in startup scripts, when module should be loaded only if it wasn't compiled into the kernel nor already loaded, eg.: kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.'
* Synchronize program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+2
|
* Add -m option (find module using modfind() and stat it).fjoe2005-05-041-2/+24
|
* Use a better way to calculate POINTER_WIDTH suggested by pjd@.dwmalone2004-05-301-1/+1
|
* Decide how much space we need to print a pointer usingdwmalone2004-05-281-5/+1
| | | | sizeof(void *) rather than if __alpha__ is defined.
* Validate argument to -i.jmallett2004-03-151-1/+4
|
* Use __FBSDID() to quiet GCC 3.3 warnings.obrien2003-05-031-4/+2
|
* style(9): use NULL when assigning/comparing a char *,johan2003-04-231-3/+3
| | | | | | consitently compare fileid with 0 using == and !=. Reviewed by: silence on @audit
* Make this WARNS=5 clean by using %j and (uintmax_t).johan2003-04-231-2/+4
| | | | Look at by: sebastian.ssmoller@web.de on audit@
* Backout rev 1.8. This really does not give us the version numberps2000-07-011-3/+2
| | | | | | of the kld's. Pointed out by: bp
* display version number of each kld module when usingjmb2000-06-201-2/+3
| | | | the -v flag.
* Properly align the columns of the header on Alpha.marcel1999-12-041-1/+7
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Cosmetic fix (make header align with data)des1998-11-071-2/+2
|
* Sync. usage string and synopsis. Add rcsid.charnier1998-01-051-6/+9
|
* a few code style changes:jmg1997-10-211-17/+12
| | | | | | | | | | | | | 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
* activate the programs that will be used to manipulate kld modulesjmg1997-10-191-4/+9
| | | | | | | | 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) :)
* Add utilities for the kernel linker.dfr1997-05-071-0/+119
OpenPOWER on IntegriCloud