aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-27 08:24:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-27 08:24:39 +0000
commited3ef50c233ffb1b50ea0e7382a8e60b86491009 (patch)
treeecb05ce51890c2cf84ad036543a972ac812320c3 /modutils
parentab050f5522e843bf08994685134adaaac7ffd392 (diff)
downloadbusybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.gz
busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.bz2
busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.zip
Fix header file usage -- there were many unnecessary header files included in
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c7
-rw-r--r--modutils/rmmod.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 6ac2dcda4..b82728a26 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -46,8 +46,11 @@
46#include <dirent.h> 46#include <dirent.h>
47#include <ctype.h> 47#include <ctype.h>
48#include <assert.h> 48#include <assert.h>
49#include <string.h>
49#include <getopt.h> 50#include <getopt.h>
50#include <sys/utsname.h> 51#include <sys/utsname.h>
52#include <sys/syscall.h>
53#include <linux/unistd.h>
51 54
52//---------------------------------------------------------------------------- 55//----------------------------------------------------------------------------
53//--------modutils module.h, lines 45-242 56//--------modutils module.h, lines 45-242
@@ -78,7 +81,7 @@
78#ifndef MODUTILS_MODULE_H 81#ifndef MODUTILS_MODULE_H
79static const int MODUTILS_MODULE_H = 1; 82static const int MODUTILS_MODULE_H = 1;
80 83
81#ident "$Id: insmod.c,v 1.42 2001/01/26 02:23:57 andersen Exp $" 84#ident "$Id: insmod.c,v 1.43 2001/01/27 08:24:37 andersen Exp $"
82 85
83/* This file contains the structures used by the 2.0 and 2.1 kernels. 86/* This file contains the structures used by the 2.0 and 2.1 kernels.
84 We do not use the kernel headers directly because we do not wish 87 We do not use the kernel headers directly because we do not wish
@@ -284,7 +287,7 @@ int delete_module(const char *);
284#ifndef MODUTILS_OBJ_H 287#ifndef MODUTILS_OBJ_H
285static const int MODUTILS_OBJ_H = 1; 288static const int MODUTILS_OBJ_H = 1;
286 289
287#ident "$Id: insmod.c,v 1.42 2001/01/26 02:23:57 andersen Exp $" 290#ident "$Id: insmod.c,v 1.43 2001/01/27 08:24:37 andersen Exp $"
288 291
289/* The relocatable object is manipulated using elfin types. */ 292/* The relocatable object is manipulated using elfin types. */
290 293
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 52adc7bcd..ff08c4ca0 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -25,6 +25,9 @@
25#include <stdio.h> 25#include <stdio.h>
26#include <errno.h> 26#include <errno.h>
27#include <unistd.h> 27#include <unistd.h>
28#include <stdlib.h>
29#include <sys/syscall.h>
30#include <linux/unistd.h>
28#define __LIBRARY__ 31#define __LIBRARY__
29 32
30 33