Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumphijack If minfd for F_DUPFD is >= hijackoff, assu...
details: https://anonhg.NetBSD.org/src/rev/5731eaa4d56c
branches: trunk
changeset: 762483:5731eaa4d56c
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Feb 21 20:11:56 2011 +0000
description:
If minfd for F_DUPFD is >= hijackoff, assume it means a minimum
value in the rump kernel and adjust accordingly.
diffstat:
lib/librumphijack/hijack.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 4848ff27d318 -r 5731eaa4d56c lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c Mon Feb 21 18:50:21 2011 +0000
+++ b/lib/librumphijack/hijack.c Mon Feb 21 20:11:56 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hijack.c,v 1.62 2011/02/21 13:19:35 pooka Exp $ */
+/* $NetBSD: hijack.c,v 1.63 2011/02/21 20:11:56 pooka Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hijack.c,v 1.62 2011/02/21 13:19:35 pooka Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.63 2011/02/21 20:11:56 pooka Exp $");
#define __ssp_weak_name(fun) _hijack_ ## fun
@@ -604,6 +604,8 @@
if (fd_isrump(oldd)) {
op_fcntl = GETSYSCALL(rump, FCNTL);
oldd = fd_host2rump(oldd);
+ if (minfd >= HIJACK_FDOFF)
+ minfd -= HIJACK_FDOFF;
isrump = 1;
} else {
op_fcntl = GETSYSCALL(host, FCNTL);
Home |
Main Index |
Thread Index |
Old Index