Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux struct timespec serves a...



details:   https://anonhg.NetBSD.org/src/rev/f6c44553c48d
branches:  trunk
changeset: 1027919:f6c44553c48d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:16:28 2021 +0000

description:
struct timespec serves as a perfectly adequate struct timespec64.

diffstat:

 sys/external/bsd/drm2/include/linux/ktime.h |  4 +++-
 sys/external/bsd/drm2/include/linux/time.h  |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 87527faaf4d5 -r f6c44553c48d sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 01:16:21 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 01:16:28 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ktime.h,v 1.11 2021/12/19 01:15:35 riastradh Exp $     */
+/*     $NetBSD: ktime.h,v 1.12 2021/12/19 01:16:28 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -83,6 +83,7 @@
 {
        return ns_to_timespec(ktime_to_ns(kt));
 }
+#define        ktime_to_timespec64     ktime_to_timespec
 
 static inline struct timeval
 ktime_to_timeval(ktime_t kt)
@@ -96,6 +97,7 @@
        /* XXX Silently truncate?  */
        return ns_to_ktime(1000000000*(int64_t)ts.tv_sec + ts.tv_nsec);
 }
+#define        timespec64_to_ktime     timespec_to_ktime
 
 static inline ktime_t
 ktime_get(void)
diff -r 87527faaf4d5 -r f6c44553c48d sys/external/bsd/drm2/include/linux/time.h
--- a/sys/external/bsd/drm2/include/linux/time.h        Sun Dec 19 01:16:21 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/time.h        Sun Dec 19 01:16:28 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.h,v 1.5 2018/08/27 07:02:16 riastradh Exp $       */
+/*     $NetBSD: time.h,v 1.6 2021/12/19 01:16:28 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,6 +34,8 @@
 
 #include <sys/time.h>
 
+#define        timespec64      timespec        /* take that, 2038 */
+
 #define NSEC_PER_MSEC  1000000L
 
 /*



Home | Main Index | Thread Index | Old Index