Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Provide a weak alias for vnode_to_...



details:   https://anonhg.NetBSD.org/src/rev/10b5870fc49b
branches:  trunk
changeset: 454736:10b5870fc49b
user:      bad <bad%NetBSD.org@localhost>
date:      Thu Sep 26 17:52:50 2019 +0000

description:
Provide a weak alias for vnode_to_path to be used unless librumpvfs is present.

diffstat:

 sys/rump/librump/rumpkern/emul.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r 528d0266f208 -r 10b5870fc49b sys/rump/librump/rumpkern/emul.c
--- a/sys/rump/librump/rumpkern/emul.c  Thu Sep 26 17:34:56 2019 +0000
+++ b/sys/rump/librump/rumpkern/emul.c  Thu Sep 26 17:52:50 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emul.c,v 1.191 2019/06/02 19:41:51 kre Exp $   */
+/*     $NetBSD: emul.c,v 1.192 2019/09/26 17:52:50 bad Exp $   */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.191 2019/06/02 19:41:51 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emul.c,v 1.192 2019/09/26 17:52:50 bad Exp $");
 
 #include <sys/param.h>
 #include <sys/cprng.h>
@@ -269,6 +269,20 @@
 }
 __weak_alias(getcwd_common,rump_getcwd_common);
 
+/* Weak alias for vnode_to_path to be used unless librumpvfs is present. */
+
+int rump_vnode_to_path(char *, size_t, struct vnode *, struct lwp *,
+    struct proc *);
+int
+rump_vnode_to_path(char *path, size_t len, struct vnode *vp, struct lwp *curl,
+    struct proc *p)
+{
+
+       return ENOENT; /* pretend getcwd_common() failed. */
+}
+__weak_alias(vnode_to_path,rump_vnode_to_path);
+
+
 /* Weak aliases for fstrans to be used unless librumpvfs is present. */
 
 void rump_fstrans_start(struct mount *);



Home | Main Index | Thread Index | Old Index