linker: Make linker.h more self-contained

struct kld_file_stat embeds a reference to MAXPATHLEN, defined in
param.h.

PR:		280432
MFC after:	2 weeks

(cherry picked from commit f44029e322446469f116bbd26d51ba857083bacb)
This commit is contained in:
Mark Johnston 2024-10-26 14:05:56 +00:00
parent fc3c731bbf
commit da80e62f96
8 changed files with 2 additions and 7 deletions

View file

@ -32,7 +32,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldfind "const char *file"

View file

@ -32,7 +32,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldfirstmod "int fileid"

View file

@ -32,7 +32,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldload "const char *file"

View file

@ -32,7 +32,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldnext "int fileid"

View file

@ -32,7 +32,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldstat "int fileid" "struct kld_file_stat *stat"

View file

@ -31,7 +31,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldsym "int fileid" "int cmd" "void *data"

View file

@ -32,7 +32,6 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/param.h
.In sys/linker.h
.Ft int
.Fn kldunload "int fileid"

View file

@ -29,6 +29,8 @@
#ifndef _SYS_LINKER_H_
#define _SYS_LINKER_H_
#include <sys/param.h>
#ifdef _KERNEL
#include <machine/elf.h>