Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Additionally translate daddr_t to int64_t in the ru...



details:   https://anonhg.NetBSD.org/src/rev/ef82c28a5cfe
branches:  trunk
changeset: 788661:ef82c28a5cfe
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jul 17 21:20:53 2013 +0000

description:
Additionally translate daddr_t to int64_t in the rumpvnode interface.
The type daddr_t is not available for all systems (e.g. Linux systems with
musl libc), and exposing it will just cause an unnecessary compilation
failure even if the type is not used.

diffstat:

 sys/kern/vnode_if.sh |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r dd16df265529 -r ef82c28a5cfe sys/kern/vnode_if.sh
--- a/sys/kern/vnode_if.sh      Wed Jul 17 20:16:50 2013 +0000
+++ b/sys/kern/vnode_if.sh      Wed Jul 17 21:20:53 2013 +0000
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 "
-SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.58 2011/07/11 08:23:00 hannken Exp $'
+SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.59 2013/07/17 21:20:53 pooka Exp $'
 
 # Script to produce VFS front-end sugar.
 #
@@ -150,6 +150,8 @@
                        at = "off_t";
                if (at == "kauth_cred_t")
                        at = "struct kauth_cred *"
+               if (at == "daddr_t")
+                       at = "int64_t"
        }
        argtype[argc] = at;
        i++;



Home | Main Index | Thread Index | Old Index