svn commit: r334777 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Thu Jun 7 11:41:44 UTC 2018


Author: hselasky
Date: Thu Jun  7 11:41:42 2018
New Revision: 334777
URL: https://svnweb.freebsd.org/changeset/base/334777

Log:
  Wrap timespec64 into timespec in the LinuxKPI.
  
  Submitted by:	Johannes Lundberg <johalun0 at gmail.com>
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

Modified:
  head/sys/compat/linuxkpi/common/include/linux/ktime.h
  head/sys/compat/linuxkpi/common/include/linux/time.h

Modified: head/sys/compat/linuxkpi/common/include/linux/ktime.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/ktime.h	Thu Jun  7 11:40:13 2018	(r334776)
+++ head/sys/compat/linuxkpi/common/include/linux/ktime.h	Thu Jun  7 11:41:42 2018	(r334777)
@@ -159,6 +159,7 @@ timeval_to_ktime(struct timeval tv)
 }
 
 #define	ktime_to_timespec(kt)		ns_to_timespec(kt)
+#define	ktime_to_timespec64(kt)		ns_to_timespec(kt)
 #define	ktime_to_timeval(kt)		ns_to_timeval(kt)
 #define	ktime_to_ns(kt)			(kt)
 

Modified: head/sys/compat/linuxkpi/common/include/linux/time.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/time.h	Thu Jun  7 11:40:13 2018	(r334776)
+++ head/sys/compat/linuxkpi/common/include/linux/time.h	Thu Jun  7 11:41:42 2018	(r334777)
@@ -35,6 +35,8 @@
 #define	USEC_PER_MSEC	1000L
 #define	USEC_PER_SEC	1000000L
 
+#define	timespec64 timespec
+
 #include <sys/time.h>
 #include <sys/stdint.h>
 


More information about the svn-src-head mailing list