summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-01 10:41:48 +0000
committerbde <bde@FreeBSD.org>1997-04-01 10:41:48 +0000
commit895862c7f07ae0584a722b20317396d6befc7ba3 (patch)
tree46622023baf45d5e22d635dd03554bc29cfb291a /sys/kern
parented79da997e0677afb8e9fd59fc8600a2d696d558 (diff)
downloadFreeBSD-src-895862c7f07ae0584a722b20317396d6befc7ba3.zip
FreeBSD-src-895862c7f07ae0584a722b20317396d6befc7ba3.tar.gz
Use OID_AUTO instead of magic number for old sysctl debug.elf_trace. The
magic number conflicted with the one for the Lite2 sysctl debug.busyprt. Staticized some variables. Removed unused #includes.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/imgact_elf.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 525d76d..0934705 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -26,14 +26,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: imgact_elf.c,v 1.16 1997/02/22 09:38:56 peter Exp $
+ * $Id: imgact_elf.c,v 1.17 1997/03/23 03:36:16 bde Exp $
*/
#include "opt_rlimit.h"
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/resourcevar.h>
#include <sys/exec.h>
#include <sys/mman.h>
#include <sys/imgact.h>
@@ -45,7 +44,6 @@
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/proc.h>
-#include <sys/sysproto.h>
#include <sys/syscall.h>
#include <sys/signalvar.h>
#include <sys/sysctl.h>
@@ -61,8 +59,6 @@
#include <vm/vm_extern.h>
#include <machine/md_var.h>
-#include <i386/linux/linux_syscall.h>
-#include <i386/linux/linux.h>
#define MAX_PHDR 32 /* XXX enough ? */
@@ -75,8 +71,8 @@ static int elf_load_file __P((struct proc *p, char *file, u_long *addr, u_long *
static int elf_freebsd_fixup __P((int **stack_base, struct image_params *imgp));
int exec_elf_imgact __P((struct image_params *imgp));
-int elf_trace = 0;
-SYSCTL_INT(_debug, 1, elf_trace, CTLFLAG_RW, &elf_trace, 0, "");
+static int elf_trace = 0;
+SYSCTL_INT(_debug, OID_AUTO, elf_trace, CTLFLAG_RW, &elf_trace, 0, "");
#define UPRINTF if (elf_trace) uprintf
static struct sysentvec elf_freebsd_sysvec = {
@@ -744,6 +740,6 @@ elf_freebsd_fixup(int **stack_base, struct image_params *imgp)
* Since `const' objects end up in the text segment, TEXT_SET is the
* correct directive to use.
*/
-const struct execsw elf_execsw = {exec_elf_imgact, "ELF"};
+static const struct execsw elf_execsw = {exec_elf_imgact, "ELF"};
TEXT_SET(execsw_set, elf_execsw);
OpenPOWER on IntegriCloud