Module Name: src
Committed By: pooka
Date: Sun May 3 17:09:49 UTC 2009
Modified Files:
src/sys/rump/include/rump: rump.h
src/sys/rump/librump/rumpkern: rump.c
src/sys/rump/librump/rumpvfs: rump_vfs.c
Log Message:
Rename rump_cred_destroy() to rump_cred_put() -- they've been
refcounted since forever now.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/rump/include/rump/rump.h
cvs rdiff -u -r1.106 -r1.107 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.19 -r1.20 src/sys/rump/librump/rumpvfs/rump_vfs.c
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.15 src/sys/rump/include/rump/rump.h:1.16
--- src/sys/rump/include/rump/rump.h:1.15 Sun May 3 16:01:44 2009
+++ src/sys/rump/include/rump/rump.h Sun May 3 17:09:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.h,v 1.15 2009/05/03 16:01:44 pooka Exp $ */
+/* $NetBSD: rump.h,v 1.16 2009/05/03 17:09:49 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -120,9 +120,9 @@
kauth_cred_t rump_cred_create(uid_t, gid_t, size_t, gid_t *);
kauth_cred_t rump_cred_suserget(void);
-void rump_cred_destroy(kauth_cred_t);
+void rump_cred_put(kauth_cred_t);
-#define rump_cred_suserput(c) rump_cred_destroy(c)
+#define rump_cred_suserput(c) rump_cred_put(c)
/* COMPAT_NETHACK */
#define WizardMode() rump_cred_suserget()
#define YASD(cred) rump_cred_suserput(cred)
Index: src/sys/rump/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.106 src/sys/rump/librump/rumpkern/rump.c:1.107
--- src/sys/rump/librump/rumpkern/rump.c:1.106 Sat May 2 15:20:08 2009
+++ src/sys/rump/librump/rumpkern/rump.c Sun May 3 17:09:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.c,v 1.106 2009/05/02 15:20:08 pooka Exp $ */
+/* $NetBSD: rump.c,v 1.107 2009/05/03 17:09:49 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.106 2009/05/02 15:20:08 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.107 2009/05/03 17:09:49 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -404,7 +404,7 @@
if (p->p_pid != 0) {
fd_free();
rump_proc_vfs_release(p);
- rump_cred_destroy(l->l_cred);
+ rump_cred_put(l->l_cred);
kmem_free(p, sizeof(*p));
}
kmem_free(l, sizeof(*l));
@@ -445,7 +445,7 @@
}
void
-rump_cred_destroy(kauth_cred_t cred)
+rump_cred_put(kauth_cred_t cred)
{
kauth_cred_free(cred);
Index: src/sys/rump/librump/rumpvfs/rump_vfs.c
diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.19 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.20
--- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.19 Sun May 3 16:01:44 2009
+++ src/sys/rump/librump/rumpvfs/rump_vfs.c Sun May 3 17:09:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_vfs.c,v 1.19 2009/05/03 16:01:44 pooka Exp $ */
+/* $NetBSD: rump_vfs.c,v 1.20 2009/05/03 17:09:49 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -216,7 +216,7 @@
{
if (flags & RUMPCN_FREECRED)
- rump_cred_destroy(cnp->cn_cred);
+ rump_cred_put(cnp->cn_cred);
if ((flags & RUMPCN_HASNTBUF) == 0) {
if (cnp->cn_flags & SAVENAME) {