mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 21:28:48 +00:00
[Sanitizer] use u32 instead of mode_t, which is defined in Darwin headers
llvm-svn: 174189
This commit is contained in:
parent
2e50809961
commit
4985b8766e
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
@ -72,7 +72,7 @@ fd_t internal_open(const char *filename, int flags) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ fd_t internal_open(const char *filename, int flags) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -195,7 +195,7 @@ fd_t internal_open(const char *filename, int flags) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user