[compiler-rt] r187417 - [sanitizer] Tweak read syscall handler signature for consistency.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Jul 30 06:16:52 PDT 2013


Author: eugenis
Date: Tue Jul 30 08:16:52 2013
New Revision: 187417

URL: http://llvm.org/viewvc/llvm-project?rev=187417&view=rev
Log:
[sanitizer] Tweak read syscall handler signature for consistency.

Modified:
    compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc

Modified: compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h?rev=187417&r1=187416&r2=187417&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h (original)
+++ compiler-rt/trunk/include/sanitizer/linux_syscall_hooks.h Tue Jul 30 08:16:52 2013
@@ -33,7 +33,7 @@ void __sanitizer_syscall_pre_wait4(int p
 void __sanitizer_syscall_pre_waitpid(int pid, int *status, int options);
 void __sanitizer_syscall_pre_clock_gettime(int clk_id, void *tp);
 void __sanitizer_syscall_pre_clock_getres(int clk_id, void *tp);
-void __sanitizer_syscall_pre_read(unsigned int fd, char *buf, size_t count);
+void __sanitizer_syscall_pre_read(unsigned int fd, void *buf, size_t count);
 
 void __sanitizer_syscall_post_rt_sigpending(long res, void *p, size_t s);
 void __sanitizer_syscall_post_getdents(long res, int fd, void *dirp, int count);
@@ -47,7 +47,7 @@ void __sanitizer_syscall_post_waitpid(lo
                                       int options);
 void __sanitizer_syscall_post_clock_gettime(long res, int clk_id, void *tp);
 void __sanitizer_syscall_post_clock_getres(long res, int clk_id, void *tp);
-void __sanitizer_syscall_post_read(long res, unsigned int fd, char *buf, size_t count);
+void __sanitizer_syscall_post_read(long res, unsigned int fd, void *buf, size_t count);
 
 // And now a few syscalls we don't handle yet.
 

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc?rev=187417&r1=187416&r2=187417&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_syscalls.inc Tue Jul 30 08:16:52 2013
@@ -162,11 +162,11 @@ POST_SYSCALL(clock_getres)(long res, int
   if (res == 0 && tp) POST_WRITE(tp, sizeof(*tp));
 }
 
-PRE_SYSCALL(read)(unsigned int fd, char *buf, uptr count) {
+PRE_SYSCALL(read)(unsigned int fd, void *buf, uptr count) {
   if (buf) PRE_WRITE(buf, count);
 }
 
-POST_SYSCALL(read)(long res, unsigned int fd, char *buf, uptr count) {
+POST_SYSCALL(read)(long res, unsigned int fd, void *buf, uptr count) {
   if (res > 0 && buf) POST_WRITE(buf, res);
 }
 





More information about the llvm-commits mailing list