Use "struct kauth_cred *" instead of kauth_cred_t in all exported

interfaces.  Allows to remove hairbrained _t typedef dance.
This commit is contained in:
pooka 2010-04-14 14:12:48 +00:00
parent 00dd646066
commit 794cd3c3dc
3 changed files with 11 additions and 15 deletions

View File

@ -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 vfsops;
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 @@ typedef struct prop_dictionary *prop_dictionary_t;
#endif
#endif /* __NetBSD__ */
struct lwp;
struct modinfo;
#include <rump/rumpvnode_if.h>
#include <rump/rumpdefs.h>

View File

@ -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 @@ size_t |uio_getresid |struct uio *
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

View File

@ -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 @@ int |namei |uint32_t, uint32_t, const char *, \
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 *