mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
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
This commit is contained in:
parent
4d651f4e5f
commit
81f7f2c4db
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227447
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user