Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2011 07:17:00 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227447 - head/sys/compat/freebsd32
Message-ID:  <201111110717.pAB7H05L077445@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Fri Nov 11 07:17:00 2011
New Revision: 227447
URL: http://svn.freebsd.org/changeset/base/227447

Log:
  struct timespec32: change types of tv_sec and tv_nsec fields to signed
  to match native struct timespec ABI on __LP32__.
  
  This change is a prerequisite for upcoming futimens()/utimensat() in whose
  implementations it is assumed that timespec32 can take a negative value.
  
  MFC after:	1 week

Modified:
  head/sys/compat/freebsd32/freebsd32.h

Modified: head/sys/compat/freebsd32/freebsd32.h
==============================================================================
--- head/sys/compat/freebsd32/freebsd32.h	Fri Nov 11 04:22:43 2011	(r227446)
+++ head/sys/compat/freebsd32/freebsd32.h	Fri Nov 11 07:17:00 2011	(r227447)
@@ -52,8 +52,8 @@ struct timeval32 {
 } while (0)
 
 struct timespec32 {
-	u_int32_t tv_sec;
-	u_int32_t tv_nsec;
+	int32_t tv_sec;
+	int32_t tv_nsec;
 };
 #define TS_CP(src,dst,fld) do {			\
 	CP((src).fld,(dst).fld,tv_sec);		\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111110717.pAB7H05L077445>