Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump Use "struct kauth_cred *" instead of kauth_cred_t i...
details: https://anonhg.NetBSD.org/src/rev/cae05d559de7
branches: trunk
changeset: 753953:cae05d559de7
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Apr 14 14:12:48 2010 +0000
description:
Use "struct kauth_cred *" instead of kauth_cred_t in all exported
interfaces. Allows to remove hairbrained _t typedef dance.
diffstat:
sys/rump/include/rump/rump.h | 12 ++++--------
sys/rump/librump/rumpkern/rumpkern.ifspec | 8 ++++----
sys/rump/librump/rumpvfs/rumpvfs.ifspec | 6 +++---
3 files changed, 11 insertions(+), 15 deletions(-)
diffs (81 lines):
diff -r 8e8dabec2131 -r cae05d559de7 sys/rump/include/rump/rump.h
--- a/sys/rump/include/rump/rump.h Wed Apr 14 14:00:04 2010 +0000
+++ b/sys/rump/include/rump/rump.h Wed Apr 14 14:12:48 2010 +0000
@@ -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>
diff -r 8e8dabec2131 -r cae05d559de7 sys/rump/librump/rumpkern/rumpkern.ifspec
--- a/sys/rump/librump/rumpkern/rumpkern.ifspec Wed Apr 14 14:00:04 2010 +0000
+++ b/sys/rump/librump/rumpkern/rumpkern.ifspec Wed Apr 14 14:12:48 2010 +0000
@@ -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
diff -r 8e8dabec2131 -r cae05d559de7 sys/rump/librump/rumpvfs/rumpvfs.ifspec
--- a/sys/rump/librump/rumpvfs/rumpvfs.ifspec Wed Apr 14 14:00:04 2010 +0000
+++ b/sys/rump/librump/rumpvfs/rumpvfs.ifspec Wed Apr 14 14:12:48 2010 +0000
@@ -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 *
Home |
Main Index |
Thread Index |
Old Index