Module Name: src
Committed By: pooka
Date: Fri Nov 2 13:31:26 UTC 2012
Modified Files:
src/lib/librumpuser: rumpuser_pth_dummy.c
Log Message:
need rumpuser_mutex_init_kmutex() these days
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/librumpuser/rumpuser_pth_dummy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librumpuser/rumpuser_pth_dummy.c
diff -u src/lib/librumpuser/rumpuser_pth_dummy.c:1.3 src/lib/librumpuser/rumpuser_pth_dummy.c:1.4
--- src/lib/librumpuser/rumpuser_pth_dummy.c:1.3 Fri Nov 2 11:11:27 2012
+++ src/lib/librumpuser/rumpuser_pth_dummy.c Fri Nov 2 13:31:26 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_pth_dummy.c,v 1.3 2012/11/02 11:11:27 pooka Exp $ */
+/* $NetBSD: rumpuser_pth_dummy.c,v 1.4 2012/11/02 13:31:26 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth_dummy.c,v 1.3 2012/11/02 11:11:27 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_pth_dummy.c,v 1.4 2012/11/02 13:31:26 pooka Exp $");
#endif /* !lint */
#include <sys/time.h>
@@ -105,6 +105,13 @@ rumpuser_mutex_init(struct rumpuser_mtx
}
void
+rumpuser_mutex_init_kmutex(struct rumpuser_mtx **mtx)
+{
+
+ *mtx = calloc(1, sizeof(struct rumpuser_mtx));
+}
+
+void
rumpuser_mutex_enter(struct rumpuser_mtx *mtx)
{