X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=insmod.c;h=469d056d3364c40fcc1dac050fa871a32f49554f;hb=9b2297a34e35be143155769a470331af2f2b9330;hp=00646887755be1c51baab0dd13d087648c91fdf4;hpb=ef40aa81c5024bc305a4e95f6edb76bae258cc2b;p=oweals%2Fbusybox.git diff --git a/insmod.c b/insmod.c index 006468877..469d056d3 100644 --- a/insmod.c +++ b/insmod.c @@ -38,9 +38,9 @@ #include #include #include +#include #include #include -#include //---------------------------------------------------------------------------- //--------modutils module.h, lines 45-242 @@ -71,7 +71,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $" +#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -277,7 +277,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.11 2000/06/26 11:16:22 andersen Exp $" +#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -530,6 +530,9 @@ _syscall2(int, new_sys_init_module, const char *, name, _syscall5(int, old_sys_init_module, const char *, name, char *, code, unsigned, codesize, struct old_mod_routines *, routines, struct old_symbol_table *, symtab) +#ifndef __NR_query_module +#define __NR_query_module 167 +#endif _syscall5(int, query_module, const char *, name, int, which, void *, buf, size_t, bufsize, size_t*, ret); #ifndef BB_RMMOD