aboutsummaryrefslogtreecommitdiff
path: root/modutils/lsmod.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix from uClinux-dist for proper exit status if reading /proc/modules failedvapier2006-06-061-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15295 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-031-15/+2
| | | | | | | | | and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@15272 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko turning static const int (which gets emitted intolandley2006-03-101-11/+13
| | | | | | | the busybox binary) into enums (which don't). git-svn-id: svn://busybox.net/trunk/busybox@14513 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-2/+2
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just use bb_xfopen()vapier2006-01-031-4/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13060 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tweak the "pretty lsmod for 2.6" patch to be seperately selectable.landley2005-05-041-1/+2
| | | | | | | Patch from Takeharu Kato. git-svn-id: svn://busybox.net/trunk/busybox@10248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Takeharu Kato said:landley2005-05-031-1/+42
| | | | | | | | | | I found that lsmod in busybox does not support linux-2.6. I fix this issue(it is caused by changes of /proc/modules format). If you use lsmod in busybox with kernel-2.6, please use this patch. git-svn-id: svn://busybox.net/trunk/busybox@10243 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Steven Scholz writes:andersen2003-08-061-1/+0
| | | | | | | | | | | | | | | | | the output of lsmod (busybox-1.00-pre2) contains IMHO one "\n" too much when using CONFIG_FEATURE_CHECK_TAINTED_MODULE: ~ # lsmod Module Size Used by Tainted: P ds 8364 1 m8xx_pcmcia 5388 1 pcmcia_core 40736 0 [ds m8xx_pcmcia] and this patch from Steven fixes the problem git-svn-id: svn://busybox.net/trunk/busybox@7172 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-5/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Robert Schwebel fixing a missing \nandersen2003-01-111-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6318 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rmmod -a removed modules recursivelytimr2002-12-141-17/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6214 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cleanuptimr2002-12-131-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6213 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix needless formatting differences vs modutilsandersen2002-10-181-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doh! I screwed up applying vodz' patch.andersen2002-10-121-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@5643 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch61 from vodz:andersen2002-10-101-16/+10
| | | | | | | | | | | | New complex patch for decrease size devel version. Requires previous patch. Also removed small problems from dutmp and tar applets. Also includes vodz' last_patch61_2: Last patch correcting comment for #endif and more integrated with libbb (very reduce size if used "cat" applet also). Requires last_patch61 for modutils/config.in. git-svn-id: svn://busybox.net/trunk/busybox@5640 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix missing \n noticed by Robert Schwebelandersen2002-10-081-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5627 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support module taintingandersen2002-09-161-2/+32
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@5492 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply lash_patch35 from vodz, which brings several nice size_optimizations.andersen2002-04-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4548 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-5/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix infinite loop and reallocate if too many modules.kraai2001-04-131-8/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2343 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewandersen2001-04-051-2/+1
| | | | | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupandersen2001-03-091-0/+1
| | | | | | | | warnings with glibc 2.2 and use always use xfopen -Erik git-svn-id: svn://busybox.net/trunk/busybox@2021 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make output match the real lsmod -- print (autoclean) typeandersen2001-02-241-6/+6
| | | | | | | | stuff first not last. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1929 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-1/+1
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesandersen2001-02-011-4/+0
| | | | | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-1/+1
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more bugs fixed -- found doing regression testingandersen2001-01-241-7/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-11/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add missing newlines to error messages.kraai2000-12-181-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1465 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-4/+4
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added insmod support for ARM, and lsmod support for older kernels,andersen2000-12-061-0/+38
| | | | | | | | | thanks to Alcove, Julien Gaulmin <julien.gaulmin@alcove.fr> and Nicolas Ferre <nicolas.ferre@alcove.fr>. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1385 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clean up output.kraai2000-09-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1068 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Formatting cleanup patch from Bryan Rittmeyer <bryan@ixiacom.com>.andersen2000-09-121-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1036 69ca8d6d-28ef-0310-b511-8ec308f3f277
* MAke lsmod act just like modutils lsmod, by printing which modules useandersen2000-09-101-0/+20
| | | | | | | | other modules, and state info like (deleted) and such. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1029 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lsmod now uses the query_module syscall, rather then /procandersen2000-08-211-10/+72
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@959 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Centralize handling of --help.kraai2000-07-191-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add usage messages for applets without them.kraai2000-07-191-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Moved functions used by "lsmod" from cat.c to utility.cproski2000-07-171-3/+3
| | | | | | | | Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes git-svn-id: svn://busybox.net/trunk/busybox@870 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-1/+1
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change BB_FEATURE_USE_DEVPS_N_DEVMTAB to the simplererik2000-03-081-1/+1
| | | | | | | | BB_FEATURE_USE_DEVPS_PATCH. -Erik git-svn-id: svn://busybox.net/trunk/busybox@401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed up lsmod so it works with my devmodules kernel driver,erik2000-03-081-4/+7
| | | | | | | | and with /proc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@399 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bugs related to finding PIDs.erik2000-03-071-3/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-2/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added lsmoderik1999-12-151-0/+35
-Erik git-svn-id: svn://busybox.net/trunk/busybox@235 69ca8d6d-28ef-0310-b511-8ec308f3f277