Module Name: src Committed By: pooka Date: Wed Apr 14 14:12:48 UTC 2010
Modified Files: src/sys/rump/include/rump: rump.h src/sys/rump/librump/rumpkern: rumpkern.ifspec src/sys/rump/librump/rumpvfs: rumpvfs.ifspec Log Message: Use "struct kauth_cred *" instead of kauth_cred_t in all exported interfaces. Allows to remove hairbrained _t typedef dance. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/rump/include/rump/rump.h cvs rdiff -u -r1.4 -r1.5 src/sys/rump/librump/rumpkern/rumpkern.ifspec cvs rdiff -u -r1.1 -r1.2 src/sys/rump/librump/rumpvfs/rumpvfs.ifspec Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/include/rump/rump.h diff -u src/sys/rump/include/rump/rump.h:1.37 src/sys/rump/include/rump/rump.h:1.38 --- src/sys/rump/include/rump/rump.h:1.37 Wed Feb 24 14:56:04 2010 +++ src/sys/rump/include/rump/rump.h Wed Apr 14 14:12:48 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: rump.h,v 1.37 2010/02/24 14:56:04 pooka Exp $ */ +/* $NetBSD: rump.h,v 1.38 2010/04/14 14:12:48 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -43,12 +43,11 @@ struct fid; struct statvfs; struct stat; +struct kauth_cred; +struct lwp; +struct modinfo; /* yetch */ -#if !defined(_RUMPKERNEL) && !defined(__NetBSD__) -struct kauth_cred; -typedef struct kauth_cred *kauth_cred_t; -#endif #if defined(__NetBSD__) #include <prop/proplib.h> #else @@ -59,9 +58,6 @@ #endif #endif /* __NetBSD__ */ -struct lwp; -struct modinfo; - #include <rump/rumpvnode_if.h> #include <rump/rumpdefs.h> Index: src/sys/rump/librump/rumpkern/rumpkern.ifspec diff -u src/sys/rump/librump/rumpkern/rumpkern.ifspec:1.4 src/sys/rump/librump/rumpkern/rumpkern.ifspec:1.5 --- src/sys/rump/librump/rumpkern/rumpkern.ifspec:1.4 Fri Mar 5 18:41:46 2010 +++ src/sys/rump/librump/rumpkern/rumpkern.ifspec Wed Apr 14 14:12:48 2010 @@ -1,4 +1,4 @@ -; $NetBSD: rumpkern.ifspec,v 1.4 2010/03/05 18:41:46 pooka Exp $ +; $NetBSD: rumpkern.ifspec,v 1.5 2010/04/14 14:12:48 pooka Exp $ NAME|kern PUBHDR|include/rump/rumpkern_if_pub.h @@ -20,9 +20,9 @@ off_t |uio_getoff |struct uio * size_t |uio_free |struct uio * -kauth_cred_t |cred_create |uid_t, gid_t, size_t, gid_t * -kauth_cred_t |cred_suserget |void -void |cred_put |kauth_cred_t +struct kauth_cred*|cred_create |uid_t, gid_t, size_t, gid_t * +struct kauth_cred*|cred_suserget|void +void |cred_put |struct kauth_cred * ; lwp interfaces. these need much love struct lwp * |newproc_switch |void Index: src/sys/rump/librump/rumpvfs/rumpvfs.ifspec diff -u src/sys/rump/librump/rumpvfs/rumpvfs.ifspec:1.1 src/sys/rump/librump/rumpvfs/rumpvfs.ifspec:1.2 --- src/sys/rump/librump/rumpvfs/rumpvfs.ifspec:1.1 Wed Oct 14 17:17:00 2009 +++ src/sys/rump/librump/rumpvfs/rumpvfs.ifspec Wed Apr 14 14:12:48 2010 @@ -1,4 +1,4 @@ -; $NetBSD: rumpvfs.ifspec,v 1.1 2009/10/14 17:17:00 pooka Exp $ +; $NetBSD: rumpvfs.ifspec,v 1.2 2010/04/14 14:12:48 pooka Exp $ NAME|vfs PUBHDR|include/rump/rumpvfs_if_pub.h @@ -38,12 +38,12 @@ struct vnode **, struct vnode **, \ struct componentname ** struct componentname *|makecn |u_long, u_long, const char *, size_t, \ - kauth_cred_t, struct lwp * + struct kauth_cred *, struct lwp * int |vfs_unmount |struct mount *, int int |vfs_root |struct mount *, struct vnode **, int int |vfs_statvfs |struct mount *, struct statvfs * -int |vfs_sync |struct mount *, int, kauth_cred_t +int |vfs_sync |struct mount *, int, struct kauth_cred * int |vfs_fhtovp |struct mount *, struct fid *, struct vnode ** int |vfs_vptofh |struct vnode *, struct fid *, size_t * void |vfs_syncwait |struct mount *