compiler-rt: use more __sanitizer_time_t on FreeBSD
A few structs were using long for time_t members. Obtained from: LLVM r370755
This commit is contained in:
parent
a58f19e687
commit
af3c40982c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352095
@ -115,15 +115,21 @@ namespace __sanitizer {
|
||||
long key;
|
||||
};
|
||||
|
||||
#if defined(__LP64___)
|
||||
typedef long long __sanitizer_time_t;
|
||||
#else
|
||||
typedef long __sanitizer_time_t;
|
||||
#endif
|
||||
|
||||
struct __sanitizer_shmid_ds {
|
||||
__sanitizer_ipc_perm shm_perm;
|
||||
unsigned long shm_segsz;
|
||||
unsigned int shm_lpid;
|
||||
unsigned int shm_cpid;
|
||||
int shm_nattch;
|
||||
unsigned long shm_atime;
|
||||
unsigned long shm_dtime;
|
||||
unsigned long shm_ctime;
|
||||
__sanitizer_time_t shm_atime;
|
||||
__sanitizer_time_t shm_dtime;
|
||||
__sanitizer_time_t shm_ctime;
|
||||
};
|
||||
|
||||
extern unsigned struct_msqid_ds_sz;
|
||||
@ -154,12 +160,12 @@ namespace __sanitizer {
|
||||
char *pw_passwd;
|
||||
int pw_uid;
|
||||
int pw_gid;
|
||||
long pw_change;
|
||||
__sanitizer_time_t pw_change;
|
||||
char *pw_class;
|
||||
char *pw_gecos;
|
||||
char *pw_dir;
|
||||
char *pw_shell;
|
||||
long pw_expire;
|
||||
__sanitizer_time_t pw_expire;
|
||||
int pw_fields;
|
||||
};
|
||||
|
||||
@ -170,12 +176,6 @@ namespace __sanitizer {
|
||||
char **gr_mem;
|
||||
};
|
||||
|
||||
#if defined(__LP64___)
|
||||
typedef long long __sanitizer_time_t;
|
||||
#else
|
||||
typedef long __sanitizer_time_t;
|
||||
#endif
|
||||
|
||||
typedef long __sanitizer_suseconds_t;
|
||||
|
||||
struct __sanitizer_timeval {
|
||||
|
Loading…
Reference in New Issue
Block a user