Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat/netbsd32 Provide a dummy version of net...



details:   https://anonhg.NetBSD.org/src/rev/8706c35139d1
branches:  pgoyette-compat
changeset: 830762:8706c35139d1
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Sep 23 08:01:13 2018 +0000

description:
Provide a dummy version of netbsd32_ntp_gettime for systems where NTP
isn't defined.

diffstat:

 sys/compat/netbsd32/netbsd32_compat_30.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 111313eb697d -r 8706c35139d1 sys/compat/netbsd32/netbsd32_compat_30.c
--- a/sys/compat/netbsd32/netbsd32_compat_30.c  Sun Sep 23 07:44:13 2018 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_30.c  Sun Sep 23 08:01:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_compat_30.c,v 1.31.16.8 2018/09/11 23:58:46 pgoyette Exp $    */
+/*     $NetBSD: netbsd32_compat_30.c,v 1.31.16.9 2018/09/23 08:01:13 pgoyette Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_30.c,v 1.31.16.8 2018/09/11 23:58:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_30.c,v 1.31.16.9 2018/09/23 08:01:13 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <opt_ntp.h>
@@ -301,10 +301,10 @@
        return (compat_30_sys_fhopen(l, &ua, retval));
 }
 
-#ifdef NTP
 int
 compat_30_netbsd32_ntp_gettime(struct lwp *l, const struct compat_30_netbsd32_ntp_gettime_args *uap, register_t *retval)
 {
+#ifdef NTP
        /* {
                syscallarg(netbsd32_ntptimevalp_t) ntvp;
        } */
@@ -326,8 +326,11 @@
        }
 
        return (error);
+#else
+
+       return ENOSYS;
+#endif
 }
-#endif
 
 static struct syscall_package compat_netbsd32_30_syscalls[] = {
        { NETBSD32_SYS_compat_30_netbsd32_getdents, 0,



Home | Main Index | Thread Index | Old Index