diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
| commit | 4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 (patch) | |
| tree | 54fd1b2695a591d2306d41264df67c53077b752c /toolbox/lsmod.c | |
| download | system_core-4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53.tar.gz system_core-4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53.tar.bz2 system_core-4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53.zip | |
Initial Contribution
Diffstat (limited to 'toolbox/lsmod.c')
| -rw-r--r-- | toolbox/lsmod.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toolbox/lsmod.c b/toolbox/lsmod.c new file mode 100644 index 00000000..8b55ee61 --- /dev/null +++ b/toolbox/lsmod.c @@ -0,0 +1,10 @@ +#include <stdio.h> + +extern int cat_main(int argc, char **argv); + +int lsmod_main(int argc, char **argv) +{ + char *cat_argv[] = { "cat", "/proc/modules", NULL }; + return cat_main(2, cat_argv); +} + |
