+
+#else /*BB_FEATURE_OLD_MODULE_INTERFACE*/
+
+extern int lsmod_main(int argc, char **argv)
+{
+ int fd, i;
+ char line[128];
+
+ puts("Module Size Used by");
+ fflush(stdout);
+
+ if ((fd = open("/proc/modules", O_RDONLY)) >= 0 ) {
+ while ((i = read(fd, line, sizeof(line))) > 0) {
+ write(fileno(stdout), line, i);
+ }
+ close(fd);
+ return 0;
+ }
+ perror_msg_and_die("/proc/modules");
+ return 1;
+}
+
+#endif /*BB_FEATURE_OLD_MODULE_INTERFACE*/