diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-29 02:48:49 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-29 02:48:49 +0000 |
commit | f3603890015c130420def39d67a02c2fdafc6f84 (patch) | |
tree | 61101f89f370946c082997dc6f6fe83363955ee0 /lib/sanitizer_common/sanitizer_platform_limits_posix.h | |
parent | 1767ec1c0d56bf9a4a5470ec5b28905e23892753 (diff) | |
download | compiler-rt-f3603890015c130420def39d67a02c2fdafc6f84.tar.gz compiler-rt-f3603890015c130420def39d67a02c2fdafc6f84.tar.bz2 compiler-rt-f3603890015c130420def39d67a02c2fdafc6f84.tar.xz |
[msan] Intercept shmat.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_platform_limits_posix.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_platform_limits_posix.h | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/lib/sanitizer_common/sanitizer_platform_limits_posix.h index ae99403d..0b38d158 100644 --- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -56,7 +56,6 @@ namespace __sanitizer { extern unsigned struct_old_utsname_sz; extern unsigned struct_oldold_utsname_sz; extern unsigned struct_msqid_ds_sz; - extern unsigned struct_shmid_ds_sz; extern unsigned struct_mq_attr_sz; extern unsigned struct_perf_event_attr_sz; extern unsigned struct_timex_sz; @@ -86,7 +85,43 @@ namespace __sanitizer { extern unsigned struct_rlimit64_sz; extern unsigned struct_statvfs_sz; extern unsigned struct_statvfs64_sz; -#endif // SANITIZER_LINUX && !SANITIZER_ANDROID + + struct __sanitizer_ipc_perm { + int __key; + int uid; + int gid; + int cuid; + int cgid; + unsigned short mode; + unsigned short __pad1; + unsigned short __seq; + unsigned short __pad2; + uptr __unused1; + uptr __unused2; + }; + + struct __sanitizer_shmid_ds { + __sanitizer_ipc_perm shm_perm; + uptr shm_segsz; + uptr shm_atime; + #ifndef _LP64 + uptr __unused1; + #endif + uptr shm_dtime; + #ifndef _LP64 + uptr __unused2; + #endif + uptr shm_ctime; + #ifndef _LP64 + uptr __unused3; + #endif + int shm_cpid; + int shm_lpid; + uptr shm_nattch; + uptr __unused4; + uptr __unused5; + }; + #endif // SANITIZER_LINUX && !SANITIZER_ANDROID struct __sanitizer_iovec { void *iov_base; |