Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Fix the build: XXX this might^Wwill break module au...



details:   https://anonhg.NetBSD.org/src/rev/a8aa75c4e4d2
branches:  trunk
changeset: 828500:a8aa75c4e4d2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 16 18:42:22 2017 +0000

description:
Fix the build: XXX this might^Wwill break module autoloading...
It is the general issue about symbol replacement during module loading and
unloading...

diffstat:

 sys/kern/kern_stub.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r ca28b6c684e1 -r a8aa75c4e4d2 sys/kern/kern_stub.c
--- a/sys/kern/kern_stub.c      Sat Dec 16 18:31:36 2017 +0000
+++ b/sys/kern/kern_stub.c      Sat Dec 16 18:42:22 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_stub.c,v 1.43 2016/11/02 00:11:59 pgoyette Exp $  */
+/*     $NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $  */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,10 +62,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.43 2016/11/02 00:11:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.44 2017/12/16 18:42:22 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ktrace.h"
+#include "opt_sysv.h"
 #endif
 
 #include <sys/param.h>
@@ -86,6 +87,19 @@
     bus_space_handle_t);
 
 /*
+ * SYSV Semaphores, Shared Memory, Message Queues
+ */
+#ifndef SYSVMSG
+__strong_alias(msgctl1,enosys);
+#endif
+#ifndef SYSVSHM
+__strong_alias(shmctl1,enosys);
+#endif
+#ifndef SYSVSEM
+__strong_alias(semctl1,enosys);
+#endif
+
+/*
  * ktrace stubs.  ktruser() goes to enosys as we want to fail the syscall,
  * but not kill the process: utrace() is a debugging feature.
  */



Home | Main Index | Thread Index | Old Index