svn commit: r227447 - head/sys/compat/freebsd32
Sergey Kandaurov
pluknet at FreeBSD.org
Fri Nov 11 07:17:00 UTC 2011
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); \
More information about the svn-src-head
mailing list