diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-11-11 07:17:00 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-11-11 07:17:00 +0000 |
commit | b90a6bf12b113d49efd70b9afaee0cbfddd6f48c (patch) | |
tree | bc6bf783c1c5d848c3e2eb5fc89de450c9dddce2 /sys/compat/freebsd32 | |
parent | a8b2cc359c1e76a781ef98cb8724a7c5fcea7d7c (diff) | |
download | FreeBSD-src-b90a6bf12b113d49efd70b9afaee0cbfddd6f48c.zip FreeBSD-src-b90a6bf12b113d49efd70b9afaee0cbfddd6f48c.tar.gz |
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
Diffstat (limited to 'sys/compat/freebsd32')
-rw-r--r-- | sys/compat/freebsd32/freebsd32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/freebsd32/freebsd32.h b/sys/compat/freebsd32/freebsd32.h index 5d1a269..1d8f149 100644 --- a/sys/compat/freebsd32/freebsd32.h +++ b/sys/compat/freebsd32/freebsd32.h @@ -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); \ |