[PATCH] D66756: compiler-rt: use more __sanitizer_time_t on FreeBSD
Ed Maste via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 06:40:28 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370755: compiler-rt: use more __sanitizer_time_t on FreeBSD (authored by emaste, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D66756?vs=217195&id=218446#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66756/new/
https://reviews.llvm.org/D66756
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_freebsd.h
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_freebsd.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_freebsd.h
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_freebsd.h
@@ -114,15 +114,21 @@
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;
@@ -153,12 +159,12 @@
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;
};
@@ -169,12 +175,6 @@
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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66756.218446.patch
Type: text/x-patch
Size: 1431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190903/2bca4f5a/attachment.bin>
More information about the llvm-commits
mailing list