Finished updating module event handlers to be compatible with
modeventhand_t.
This commit is contained in:
parent
cfb352de22
commit
f953549219
@ -25,7 +25,7 @@
|
||||
* (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: linux_sysvec.c,v 1.36 1998/10/11 21:08:02 alex Exp $
|
||||
* $Id: linux_sysvec.c,v 1.37 1998/10/16 03:55:00 peter Exp $
|
||||
*/
|
||||
|
||||
/* XXX we use functions that might not exist. */
|
||||
@ -448,14 +448,8 @@ Elf32_Brandinfo *linux_brandlist[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
/*
|
||||
* XXX: this is WRONG, it needs to be SI_SUB_EXEC, but this is just at the
|
||||
* "proof of concept" stage and will be fixed shortly
|
||||
*/
|
||||
static int linux_elf_modevent __P((module_t mod, modeventtype_t type, void *data));
|
||||
|
||||
static int
|
||||
linux_elf_modevent(module_t mod, modeventtype_t type, void *data)
|
||||
linux_elf_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
Elf32_Brandinfo **brandinfo;
|
||||
int error;
|
||||
|
@ -27,7 +27,7 @@
|
||||
* Mellon the rights to redistribute these changes without encumbrance.
|
||||
*
|
||||
* @(#) src/sys/coda/coda_fbsd.cr,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
|
||||
* $Id: coda_fbsd.c,v 1.7 1998/09/29 20:19:45 rvb Exp $
|
||||
* $Id: coda_fbsd.c,v 1.8 1998/11/03 08:55:05 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -90,7 +90,7 @@ int vcdebug = 1;
|
||||
#if !defined(VFS_LKM) || defined(VFS_KLD)
|
||||
|
||||
static int
|
||||
codadev_modevent(module_t mod, modeventtype_t type, void *data)
|
||||
codadev_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
dev_t dev;
|
||||
#ifdef DEVFS
|
||||
|
@ -27,7 +27,7 @@
|
||||
* Mellon the rights to redistribute these changes without encumbrance.
|
||||
*
|
||||
* @(#) src/sys/coda/coda_fbsd.cr,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $
|
||||
* $Id: coda_fbsd.c,v 1.7 1998/09/29 20:19:45 rvb Exp $
|
||||
* $Id: coda_fbsd.c,v 1.8 1998/11/03 08:55:05 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -90,7 +90,7 @@ int vcdebug = 1;
|
||||
#if !defined(VFS_LKM) || defined(VFS_KLD)
|
||||
|
||||
static int
|
||||
codadev_modevent(module_t mod, modeventtype_t type, void *data)
|
||||
codadev_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
dev_t dev;
|
||||
#ifdef DEVFS
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)union_subr.c 8.20 (Berkeley) 5/20/95
|
||||
* $Id: union_subr.c,v 1.31 1998/07/15 04:17:44 bde Exp $
|
||||
* $Id: union_subr.c,v 1.32 1998/11/03 08:01:48 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -1196,7 +1196,8 @@ union_dircheck(struct proc *p, struct vnode **vp, struct file *fp)
|
||||
return error;
|
||||
}
|
||||
|
||||
static int union_modevent(module_t mod, modeventtype_t type, void *data)
|
||||
static int
|
||||
union_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
switch (type) {
|
||||
case MOD_LOAD:
|
||||
|
@ -55,7 +55,7 @@
|
||||
*
|
||||
* W. Metzenthen June 1994.
|
||||
*
|
||||
* $Id: fpu_entry.c,v 1.16 1998/10/18 04:36:58 peter Exp $
|
||||
* $Id: fpu_entry.c,v 1.17 1998/10/18 07:44:33 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -516,7 +516,7 @@ gnufpu_mod(struct lkm_table *lkmtp, int cmd, int ver)
|
||||
#else /* !LKM */
|
||||
|
||||
static int
|
||||
gnufpu_modevent(module_t mod, modeventtype_t type, void *unused)
|
||||
gnufpu_modevent(module_t mod, int type, void *unused)
|
||||
{
|
||||
switch (type) {
|
||||
case MOD_LOAD:
|
||||
|
@ -6,7 +6,7 @@
|
||||
* [expediant "port" of linux 8087 emulator to 386BSD, with apologies -wfj]
|
||||
*
|
||||
* from: 386BSD 0.1
|
||||
* $Id: math_emulate.c,v 1.29 1998/10/18 07:40:29 peter Exp $
|
||||
* $Id: math_emulate.c,v 1.30 1998/10/21 17:10:49 rnordier Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1575,7 +1575,7 @@ fpu_mod(struct lkm_table *lkmtp, int cmd, int ver)
|
||||
#else /* !LKM */
|
||||
|
||||
static int
|
||||
fpu_modevent(module_t mod, modeventtype_t type, void *unused)
|
||||
fpu_modevent(module_t mod, int type, void *unused)
|
||||
{
|
||||
switch (type) {
|
||||
case MOD_LOAD:
|
||||
|
@ -27,7 +27,7 @@
|
||||
* (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: ibcs2_sysvec.c,v 1.9 1998/11/06 16:00:47 peter Exp $
|
||||
* $Id: ibcs2_sysvec.c,v 1.10 1998/11/07 04:34:02 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -67,7 +67,7 @@ struct sysentvec ibcs2_svr3_sysvec = {
|
||||
* the presence of the subsystem.
|
||||
*/
|
||||
static int
|
||||
ibcs2_modevent(module_t mod, modeventtype_t type, void *unused)
|
||||
ibcs2_modevent(module_t mod, int type, void *unused)
|
||||
{
|
||||
/* Do not care */
|
||||
return 0;
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (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: linux_sysvec.c,v 1.36 1998/10/11 21:08:02 alex Exp $
|
||||
* $Id: linux_sysvec.c,v 1.37 1998/10/16 03:55:00 peter Exp $
|
||||
*/
|
||||
|
||||
/* XXX we use functions that might not exist. */
|
||||
@ -448,14 +448,8 @@ Elf32_Brandinfo *linux_brandlist[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
/*
|
||||
* XXX: this is WRONG, it needs to be SI_SUB_EXEC, but this is just at the
|
||||
* "proof of concept" stage and will be fixed shortly
|
||||
*/
|
||||
static int linux_elf_modevent __P((module_t mod, modeventtype_t type, void *data));
|
||||
|
||||
static int
|
||||
linux_elf_modevent(module_t mod, modeventtype_t type, void *data)
|
||||
linux_elf_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
Elf32_Brandinfo **brandinfo;
|
||||
int error;
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)union_subr.c 8.20 (Berkeley) 5/20/95
|
||||
* $Id: union_subr.c,v 1.31 1998/07/15 04:17:44 bde Exp $
|
||||
* $Id: union_subr.c,v 1.32 1998/11/03 08:01:48 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -1196,7 +1196,8 @@ union_dircheck(struct proc *p, struct vnode **vp, struct file *fp)
|
||||
return error;
|
||||
}
|
||||
|
||||
static int union_modevent(module_t mod, modeventtype_t type, void *data)
|
||||
static int
|
||||
union_modevent(module_t mod, int type, void *data)
|
||||
{
|
||||
switch (type) {
|
||||
case MOD_LOAD:
|
||||
|
@ -12,7 +12,7 @@
|
||||
*
|
||||
* This software is provided ``AS IS'' without any warranties of any kind.
|
||||
*
|
||||
* $Id: ip_fw.c,v 1.96 1998/08/23 03:07:14 wollman Exp $
|
||||
* $Id: ip_fw.c,v 1.97 1998/10/16 03:55:01 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1154,7 +1154,7 @@ ipfw_mod(struct lkm_table *lkmtp, int cmd, int ver)
|
||||
}
|
||||
#else
|
||||
static int
|
||||
ipfw_modevent(module_t mod, modeventtype_t type, void *unused)
|
||||
ipfw_modevent(module_t mod, int type, void *unused)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)exec.h 8.3 (Berkeley) 1/21/94
|
||||
* $Id: exec.h,v 1.18 1998/03/02 05:47:40 peter Exp $
|
||||
* $Id: exec.h,v 1.19 1998/10/16 03:55:01 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EXEC_H_
|
||||
@ -85,8 +85,7 @@ int exec_unregister __P((const struct execsw *));
|
||||
#ifndef LKM
|
||||
#include <sys/module.h>
|
||||
#define EXEC_SET(name, execsw_arg) \
|
||||
static int name ## _modevent(module_t mod, modeventtype_t type, \
|
||||
void *data) \
|
||||
static int name ## _modevent(module_t mod, int type, void *data) \
|
||||
{ \
|
||||
struct execsw *exec = (struct execsw *)data; \
|
||||
int error = 0; \
|
||||
|
Loading…
Reference in New Issue
Block a user