[compiler-rt] r174189 - [Sanitizer] use u32 instead of mode_t, which is defined in Darwin headers
Alexey Samsonov
samsonov at google.com
Fri Feb 1 08:32:19 PST 2013
Author: samsonov
Date: Fri Feb 1 10:32:18 2013
New Revision: 174189
URL: http://llvm.org/viewvc/llvm-project?rev=174189&view=rev
Log:
[Sanitizer] use u32 instead of mode_t, which is defined in Darwin headers
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=174189&r1=174188&r2=174189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Fri Feb 1 10:32:18 2013
@@ -65,7 +65,6 @@ typedef signed short s16; // NOLINT
typedef signed int s32;
typedef signed long long s64; // NOLINT
typedef int fd_t;
-typedef u32 mode_t;
} // namespace __sanitizer
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h?rev=174189&r1=174188&r2=174189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h Fri Feb 1 10:32:18 2013
@@ -66,7 +66,7 @@ int internal_isatty(fd_t fd);
// Use __sanitizer::OpenFile() instead.
fd_t internal_open(const char *filename, int flags);
-fd_t internal_open(const char *filename, int flags, mode_t mode);
+fd_t internal_open(const char *filename, int flags, u32 mode);
uptr internal_read(fd_t fd, void *buf, uptr count);
uptr internal_write(fd_t fd, const void *buf, uptr count);
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=174189&r1=174188&r2=174189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Fri Feb 1 10:32:18 2013
@@ -72,7 +72,7 @@ fd_t internal_open(const char *filename,
return syscall(__NR_open, filename, flags);
}
-fd_t internal_open(const char *filename, int flags, mode_t mode) {
+fd_t internal_open(const char *filename, int flags, u32 mode) {
return syscall(__NR_open, filename, flags, mode);
}
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc?rev=174189&r1=174188&r2=174189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_mac.cc Fri Feb 1 10:32:18 2013
@@ -52,7 +52,7 @@ fd_t internal_open(const char *filename,
return open(filename, flags);
}
-fd_t internal_open(const char *filename, int flags, mode_t mode) {
+fd_t internal_open(const char *filename, int flags, u32 mode) {
return open(filename, flags, mode);
}
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=174189&r1=174188&r2=174189&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Fri Feb 1 10:32:18 2013
@@ -195,7 +195,7 @@ fd_t internal_open(const char *filename,
UNIMPLEMENTED();
}
-fd_t internal_open(const char *filename, int flags, mode_t mode) {
+fd_t internal_open(const char *filename, int flags, u32 mode) {
UNIMPLEMENTED();
}
More information about the llvm-commits
mailing list