summaryrefslogtreecommitdiffstats
path: root/sys/sys/linker.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/linker.h')
-rw-r--r--sys/sys/linker.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/sys/linker.h b/sys/sys/linker.h
index cc6b3e7..60c47b5 100644
--- a/sys/sys/linker.h
+++ b/sys/sys/linker.h
@@ -42,7 +42,7 @@ MALLOC_DECLARE(M_LINKER);
* Object representing a file which has been loaded by the linker.
*/
typedef struct linker_file* linker_file_t;
-typedef TAILQ_HEAD(, struct linker_file) linker_file_list_t;
+typedef TAILQ_HEAD(, linker_file) linker_file_list_t;
typedef caddr_t linker_sym_t; /* opaque symbol */
typedef c_caddr_t c_linker_sym_t; /* const opaque symbol */
@@ -57,7 +57,7 @@ typedef struct linker_symval {
} linker_symval_t;
struct common_symbol {
- STAILQ_ENTRY(struct common_symbol) link;
+ STAILQ_ENTRY(common_symbol) link;
char* name;
caddr_t address;
};
@@ -68,27 +68,27 @@ struct linker_file {
int userrefs; /* kldload(2) count */
int flags;
#define LINKER_FILE_LINKED 0x1 /* file has been fully linked */
- TAILQ_ENTRY(struct linker_file) link; /* list of all loaded files */
+ TAILQ_ENTRY(linker_file) link; /* list of all loaded files */
char* filename; /* file which was loaded */
int id; /* unique id */
caddr_t address; /* load address */
size_t size; /* size of file */
int ndeps; /* number of dependancies */
linker_file_t* deps; /* list of dependancies */
- STAILQ_HEAD(, struct common_symbol) common; /* list of common symbols */
- TAILQ_HEAD(, struct module) modules; /* modules in this file */
- TAILQ_ENTRY(struct linker_file) loaded; /* preload dependency support */
+ STAILQ_HEAD(, common_symbol) common; /* list of common symbols */
+ TAILQ_HEAD(, module) modules; /* modules in this file */
+ TAILQ_ENTRY(linker_file) loaded; /* preload dependency support */
};
/*
* Object implementing a class of file (a.out, elf, etc.)
*/
typedef struct linker_class *linker_class_t;
-typedef TAILQ_HEAD(, struct linker_class) linker_class_list_t;
+typedef TAILQ_HEAD(, linker_class) linker_class_list_t;
struct linker_class {
KOBJ_CLASS_FIELDS;
- TAILQ_ENTRY(struct linker_class) link; /* list of all file classes */
+ TAILQ_ENTRY(linker_class) link; /* list of all file classes */
};
/*
OpenPOWER on IntegriCloud