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

Ian Lepore ian at freebsd.org
Fri Jun 8 16:51:30 UTC 2018


On Thu, 2018-06-07 at 11:41 +0000, Hans Petter Selasky wrote:
> 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(k
> t)
> +#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>

Will this be a problem on i386, where timespec contains a 32-bit
time_t?  I think it's the only remaining arch with 32-bit time_t.

-- Ian


More information about the svn-src-head mailing list