Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack Ignore closefrom(3) for now; too complicat...



details:   https://anonhg.NetBSD.org/src/rev/773fb4aff3d1
branches:  trunk
changeset: 1023486:773fb4aff3d1
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 10 21:22:05 2021 +0000

description:
Ignore closefrom(3) for now; too complicated to descern between regular
and rump fds.

diffstat:

 lib/librumphijack/hijack.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 75bb61027de4 -r 773fb4aff3d1 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Fri Sep 10 21:21:35 2021 +0000
+++ b/lib/librumphijack/hijack.c        Fri Sep 10 21:22:05 2021 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.132 2021/09/10 20:33:38 christos Exp $   */
+/*      $NetBSD: hijack.c,v 1.133 2021/09/10 21:22:05 christos Exp $   */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -34,7 +34,7 @@
 #include <rump/rumpuser_port.h>
 
 #if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.132 2021/09/10 20:33:38 christos Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.133 2021/09/10 21:22:05 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -2854,3 +2854,8 @@
        return op_nfssvc(flags, argstructp);
 }
 #endif /* __NetBSD__ */
+
+int
+closefrom(int fd) {
+       return 0;
+}



Home | Main Index | Thread Index | Old Index