Make this compile again (mostly).

This commit is contained in:
mycroft 1994-07-24 03:13:30 +00:00
parent 32c32a9989
commit ef30e98b43
2 changed files with 12 additions and 11 deletions

View File

@ -33,7 +33,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $Id: Makefile,v 1.1 1993/06/08 03:53:46 cgd Exp $
# $Id: Makefile,v 1.2 1994/07/24 03:13:30 mycroft Exp $
#
SRCS=kernfsmod.c
@ -45,12 +45,12 @@ KOBJS=kernfs_vfsops.o kernfs_vnops.o
MODOBJ=combined.o
KMOD=kernfsmod
CFLAGS= -DKERNEL
CFLAGS= -DKERNEL -I/sys -I
all: $(MODOBJ)
clean:
rm -f $(OBJS) $(KOBJS) $(MODOBJ) $(KMOD)
rm -f vnode_if.[ch] $(OBJS) $(KOBJS) $(MODOBJ) $(KMOD)
load:
modload -o $(KMOD) -e$(KMOD) $(MODOBJ)
@ -58,11 +58,14 @@ load:
unload:
modunload -n $(KMOD)
kernfs_vfsops.o: /sys/miscfs/kernfs/kernfs_vfsops.c
$(CC) $(CFLAGS) -c -O $@ $<
kernfs_vfsops.o: /sys/miscfs/kernfs/kernfs_vfsops.c vnode_if.h
$(CC) $(CFLAGS) -c -o $@ $<
kernfs_vnops.o: /sys/miscfs/kernfs/kernfs_vnops.c
$(CC) $(CFLAGS) -c -O $@ $<
kernfs_vnops.o: /sys/miscfs/kernfs/kernfs_vnops.c vnode_if.h
$(CC) $(CFLAGS) -c -o $@ $<
vnode_if.h: /sys/kern/vnode_if.sh /sys/kern/vnode_if.src
sh /sys/kern/vnode_if.sh /sys/kern/vnode_if.src
$(MODOBJ): $(OBJS) $(KOBJS)
$(LD) -r -o $(MODOBJ) $(OBJS) $(KOBJS)

View File

@ -33,12 +33,11 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kernfsmod.c,v 1.1 1993/06/08 03:53:47 cgd Exp $
* $Id: kernfsmod.c,v 1.2 1994/07/24 03:13:33 mycroft Exp $
*/
#define printf I_HATE_ANSI
#include <stdio.h>
#undef printf
#include <stdlib.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/systm.h>
@ -46,7 +45,6 @@
#include <sys/mount.h>
#include <sys/exec.h>
#include <sys/lkm.h>
#include <a.out.h>
#include <sys/file.h>
#include <sys/errno.h>
@ -68,7 +66,7 @@ extern struct vfsops kernfs_vfsops;
* change the file system operation: for instance, in ISOFS, this
* could be used to enable/disable Rockridge extensions.
*/
MOD_VFS("kernfs",MOUNT_KERNFS,0,&kernfs_vfsops)
MOD_VFS("kernfs",MOUNT_KERNFS,&kernfs_vfsops)
/*
* This function is called each time the module is loaded. Technically,