GC *_nullop(). Minor nits.

This commit is contained in:
mycroft 1996-02-13 13:12:48 +00:00
parent 5953a056eb
commit 183aec8fa8
7 changed files with 57 additions and 94 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dead_vnops.c,v 1.15 1996/02/13 13:02:40 mycroft Exp $ */
/* $NetBSD: dead_vnops.c,v 1.16 1996/02/13 13:12:48 mycroft Exp $ */
/*
* Copyright (c) 1989, 1993
@ -47,8 +47,8 @@
/*
* Prototypes for dead operations on vnodes.
*/
int dead_badop __P((void *)),
dead_ebadf __P((void *));
int dead_badop __P((void *));
int dead_ebadf __P((void *));
int dead_lookup __P((void *));
#define dead_create dead_badop

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdesc_vnops.c,v 1.30 1996/02/09 22:40:10 christos Exp $ */
/* $NetBSD: fdesc_vnops.c,v 1.31 1996/02/13 13:12:52 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@ -83,10 +83,9 @@ FD_STDIN, FD_STDOUT, FD_STDERR must be a sequence n, n+1, n+2
LIST_HEAD(fdhashhead, fdescnode) *fdhashtbl;
u_long fdhash;
int fdesc_enotsupp __P((void *));
int fdesc_abortop __P((void *));
int fdesc_badop __P((void *));
int fdesc_nullop __P((void *));
int fdesc_enotsupp __P((void *));
int fdesc_lookup __P((void *));
#define fdesc_create fdesc_enotsupp
#define fdesc_mknod fdesc_enotsupp
@ -103,13 +102,14 @@ int fdesc_select __P((void *));
#define fdesc_fsync nullop
#define fdesc_seek nullop
#define fdesc_remove fdesc_enotsupp
int fdesc_link __P((void *));
#define fdesc_rename fdesc_enotsupp
#define fdesc_mkdir fdesc_enotsupp
#define fdesc_rmdir fdesc_enotsupp
int fdesc_link __P((void *));
int fdesc_symlink __P((void *));
int fdesc_readdir __P((void *));
int fdesc_readlink __P((void *));
int fdesc_abortop __P((void *));
int fdesc_inactive __P((void *));
int fdesc_reclaim __P((void *));
#define fdesc_lock nullop
@ -117,8 +117,8 @@ int fdesc_reclaim __P((void *));
#define fdesc_bmap fdesc_badop
#define fdesc_strategy fdesc_badop
int fdesc_print __P((void *));
#define fdesc_islocked nullop
int fdesc_pathconf __P((void *));
#define fdesc_islocked nullop
#define fdesc_advlock fdesc_enotsupp
#define fdesc_blkatoff fdesc_enotsupp
#define fdesc_valloc fdesc_enotsupp
@ -1029,15 +1029,3 @@ fdesc_badop(v)
panic("fdesc: bad op");
/* NOTREACHED */
}
/*
* /dev/fd vnode null operation
*/
/*ARGSUSED*/
int
fdesc_nullop(v)
void *v;
{
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: kernfs_vnops.c,v 1.41 1996/02/09 22:40:24 christos Exp $ */
/* $NetBSD: kernfs_vnops.c,v 1.42 1996/02/13 13:12:55 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@ -108,9 +108,9 @@ struct kern_target {
};
static int nkern_targets = sizeof(kern_targets) / sizeof(kern_targets[0]);
int kernfs_enotsupp __P((void *));
int kernfs_badop __P((void *));
int kernfs_nullop __P((void *));
int kernfs_enotsupp __P((void *));
int kernfs_lookup __P((void *));
#define kernfs_create kernfs_enotsupp
#define kernfs_mknod kernfs_enotsupp
@ -803,16 +803,3 @@ kernfs_badop(v)
panic("kernfs: bad op");
return 0;
}
/*
* kernfs vnode null operation
*/
/*ARGSUSED*/
int
kernfs_nullop(v)
void *v;
{
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: portal_vnops.c,v 1.16 1996/02/09 22:40:43 christos Exp $ */
/* $NetBSD: portal_vnops.c,v 1.17 1996/02/13 13:12:57 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993
@ -69,9 +69,9 @@ static int portal_fileid = PORTAL_ROOTFILEID+1;
static void portal_closefd __P((struct proc *, int));
static int portal_connect __P((struct socket *, struct socket *));
int portal_enotsupp __P((void *));
int portal_badop __P((void *));
int portal_nullop __P((void *));
int portal_enotsupp __P((void *));
int portal_lookup __P((void *));
#define portal_create portal_enotsupp
#define portal_mknod portal_enotsupp
@ -755,16 +755,3 @@ portal_badop(v)
panic("portal: bad op");
/* NOTREACHED */
}
/*
* Portal vnode null operation
*/
/*ARGSUSED*/
int
portal_nullop(v)
void *v;
{
return (0);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_vnops.c,v 1.38 1996/02/12 15:01:44 christos Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.39 1996/02/13 13:12:59 mycroft Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -98,6 +98,7 @@ static pid_t atopid __P((const char *, u_int));
* Prototypes for procfs vnode ops
*/
int procfs_badop __P((void *));
int procfs_lookup __P((void *));
#define procfs_create procfs_badop
#define procfs_mknod procfs_badop

View File

@ -1,4 +1,4 @@
/* $NetBSD: specdev.h,v 1.11 1996/02/09 22:40:58 christos Exp $ */
/* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */
/*
* Copyright (c) 1990, 1993
@ -82,8 +82,8 @@ struct flock;
struct buf;
struct uio;
int spec_badop __P((void *)),
spec_ebadf __P((void *));
int spec_badop __P((void *));
int spec_ebadf __P((void *));
int spec_lookup __P((void *));
#define spec_create spec_badop

View File

@ -1,4 +1,4 @@
/* $NetBSD: union_vnops.c,v 1.27 1996/02/09 22:41:14 christos Exp $ */
/* $NetBSD: union_vnops.c,v 1.28 1996/02/13 13:13:03 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993, 1994 The Regents of the University of California.
@ -58,42 +58,42 @@
* Global vfs data structures
*/
int union_lookup __P((void *));
int union_create __P((void *));
int union_whiteout __P((void *));
int union_mknod __P((void *));
int union_open __P((void *));
int union_close __P((void *));
int union_access __P((void *));
int union_getattr __P((void *));
int union_setattr __P((void *));
int union_read __P((void *));
int union_write __P((void *));
int union_lease __P((void *));
int union_ioctl __P((void *));
int union_select __P((void *));
int union_mmap __P((void *));
int union_fsync __P((void *));
int union_seek __P((void *));
int union_remove __P((void *));
int union_link __P((void *));
int union_rename __P((void *));
int union_mkdir __P((void *));
int union_rmdir __P((void *));
int union_symlink __P((void *));
int union_readdir __P((void *));
int union_readlink __P((void *));
int union_abortop __P((void *));
int union_inactive __P((void *));
int union_reclaim __P((void *));
int union_lock __P((void *));
int union_unlock __P((void *));
int union_bmap __P((void *));
int union_print __P((void *));
int union_islocked __P((void *));
int union_pathconf __P((void *));
int union_advlock __P((void *));
int union_strategy __P((void *));
int union_lookup __P((void *));
int union_create __P((void *));
int union_whiteout __P((void *));
int union_mknod __P((void *));
int union_open __P((void *));
int union_close __P((void *));
int union_access __P((void *));
int union_getattr __P((void *));
int union_setattr __P((void *));
int union_read __P((void *));
int union_write __P((void *));
int union_lease __P((void *));
int union_ioctl __P((void *));
int union_select __P((void *));
int union_mmap __P((void *));
int union_fsync __P((void *));
int union_seek __P((void *));
int union_remove __P((void *));
int union_link __P((void *));
int union_rename __P((void *));
int union_mkdir __P((void *));
int union_rmdir __P((void *));
int union_symlink __P((void *));
int union_readdir __P((void *));
int union_readlink __P((void *));
int union_abortop __P((void *));
int union_inactive __P((void *));
int union_reclaim __P((void *));
int union_lock __P((void *));
int union_unlock __P((void *));
int union_bmap __P((void *));
int union_print __P((void *));
int union_islocked __P((void *));
int union_pathconf __P((void *));
int union_advlock __P((void *));
int union_strategy __P((void *));
int (**union_vnodeop_p) __P((void *));
struct vnodeopv_entry_desc union_vnodeop_entries[] = {