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);         \
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to