Fixed a sloppy common-style definitions.

This commit is contained in:
Bruce Evans 1997-11-20 20:07:59 +00:00
parent 76d3eadb53
commit d73424aa6b
3 changed files with 13 additions and 10 deletions

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kern_linker.c,v 1.2 1997/08/02 14:31:28 bde Exp $
* $Id: kern_linker.c,v 1.3 1997/11/06 19:29:10 phk Exp $
*/
#include <sys/param.h>
@ -38,6 +38,8 @@
#include <sys/module.h>
#include <sys/linker.h>
linker_file_t linker_current_file;
static struct lock lock; /* lock for the file list */
static linker_class_list_t classes;
static linker_file_list_t files;

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: link_aout.c,v 1.3 1997/10/24 05:29:07 jmg Exp $
* $Id: link_aout.c,v 1.4 1997/11/07 08:52:59 phk Exp $
*/
#include <sys/param.h>
@ -44,6 +44,13 @@ static int link_aout_lookup_symbol(linker_file_t, const char*,
caddr_t*, size_t*);
static void link_aout_unload(linker_file_t);
/*
* The file representing the currently running kernel. This contains
* the global symbol table.
*/
static linker_file_t linker_kernel_file;
static struct linker_class_ops link_aout_class_ops = {
link_aout_load_file,
};

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: linker.h,v 1.1 1997/05/07 16:05:45 dfr Exp $
*/
#ifndef _SYS_LINKER_H_
@ -105,17 +105,11 @@ struct linker_class {
struct linker_class_ops *ops;
};
/*
* The file representing the currently running kernel. This contains
* the global symbol table.
*/
linker_file_t linker_kernel_file;
/*
* The file which is currently loading. Used to register modules with
* the files which contain them.
*/
linker_file_t linker_current_file;
extern linker_file_t linker_current_file;
/*
* Add a new file class to the linker.