Date: Fri, 08 Jun 2018 10:51:20 -0600 From: Ian Lepore <ian@freebsd.org> To: Hans Petter Selasky <hselasky@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r334777 - head/sys/compat/linuxkpi/common/include/linux Message-ID: <1528476680.53315.3.camel@freebsd.org> In-Reply-To: <201806071141.w57BfhEe076323@repo.freebsd.org> References: <201806071141.w57BfhEe076323@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1528476680.53315.3.camel>