Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib rump_lwproc_newproc -> rump_lwproc_rfork
details: https://anonhg.NetBSD.org/src/rev/0166439ac91f
branches: trunk
changeset: 760317:0166439ac91f
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Jan 02 13:01:45 2011 +0000
description:
rump_lwproc_newproc -> rump_lwproc_rfork
diffstat:
lib/libp2k/p2k.c | 4 ++--
lib/librumpuser/rumpuser_sp.c | 11 ++++++-----
lib/libukfs/ukfs.c | 6 +++---
3 files changed, 11 insertions(+), 10 deletions(-)
diffs (95 lines):
diff -r 8f5b5202aeb4 -r 0166439ac91f lib/libp2k/p2k.c
--- a/lib/libp2k/p2k.c Sun Jan 02 12:58:17 2011 +0000
+++ b/lib/libp2k/p2k.c Sun Jan 02 13:01:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: p2k.c,v 1.48 2011/01/02 05:04:59 dholland Exp $ */
+/* $NetBSD: p2k.c,v 1.49 2011/01/02 13:01:45 pooka Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
@@ -362,7 +362,7 @@
if (p2m)
rump_init();
- rump_pub_lwproc_newproc();
+ rump_pub_lwproc_rfork(RUMP_RFCFDG);
return p2m;
}
diff -r 8f5b5202aeb4 -r 0166439ac91f lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c Sun Jan 02 12:58:17 2011 +0000
+++ b/lib/librumpuser/rumpuser_sp.c Sun Jan 02 13:01:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_sp.c,v 1.27 2010/12/16 17:05:44 pooka Exp $ */
+/* $NetBSD: rumpuser_sp.c,v 1.28 2011/01/02 13:01:45 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.27 2010/12/16 17:05:44 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.28 2011/01/02 13:01:45 pooka Exp $");
#include <sys/types.h>
#include <sys/atomic.h>
@@ -57,6 +57,7 @@
#include <string.h>
#include <unistd.h>
+#include <rump/rump.h> /* XXX: for rfork flags */
#include <rump/rumpuser.h>
#include "rumpuser_int.h"
@@ -110,12 +111,12 @@
}
static int
-lwproc_newproc(struct spclient *spc)
+lwproc_rfork(struct spclient *spc, int flags)
{
int rv;
spops.spop_schedule();
- rv = spops.spop_lwproc_newproc(spc);
+ rv = spops.spop_lwproc_rfork(spc, flags);
spops.spop_unschedule();
return rv;
@@ -463,7 +464,7 @@
break;
}
- if (lwproc_newproc(&spclist[i]) != 0) {
+ if (lwproc_rfork(&spclist[i], RUMP_RFCFDG) != 0) {
close(newfd);
return 0;
}
diff -r 8f5b5202aeb4 -r 0166439ac91f lib/libukfs/ukfs.c
--- a/lib/libukfs/ukfs.c Sun Jan 02 12:58:17 2011 +0000
+++ b/lib/libukfs/ukfs.c Sun Jan 02 13:01:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ukfs.c,v 1.55 2010/11/26 11:10:53 pooka Exp $ */
+/* $NetBSD: ukfs.c,v 1.56 2011/01/02 13:01:45 pooka Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
@@ -122,7 +122,7 @@
*curlwp = rump_pub_lwproc_curlwp();
if (*curlwp)
rump_pub_lwproc_switch(ukfs->ukfs_lwp);
- rump_pub_lwproc_newproc();
+ rump_pub_lwproc_rfork(RUMP_RFCFDG);
if (rump_sys_chroot(ukfs->ukfs_mountpath) == -1)
return errno;
@@ -671,7 +671,7 @@
/* get root lwp */
rump_pub_lwproc_switch(fs->ukfs_lwp);
- rump_pub_lwproc_newproc();
+ rump_pub_lwproc_rfork(RUMP_RFCFDG);
if ((flags & UKFS_RELFLAG_NOUNMOUNT) == 0) {
int rv, mntflag, error;
Home |
Main Index |
Thread Index |
Old Index