summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_syscalls.inc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-04-12 14:06:40 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-04-12 14:06:40 +0000
commit3ba4b90e89366e537b875cf9f54f370e0ece7007 (patch)
tree6f2227f6c349bc63f17926d415ac17a71efa7762 /lib/sanitizer_common/sanitizer_common_syscalls.inc
parent40e16683f3fdf23dba20d9d0fc2eb00d562cc8df (diff)
[sanitizer] More syscall handler placeholders.
This time it's the full list scavenged from syscalls.h Fixed return value type. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_syscalls.inc')
-rw-r--r--lib/sanitizer_common/sanitizer_common_syscalls.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_syscalls.inc b/lib/sanitizer_common/sanitizer_common_syscalls.inc
index 40cffb47a..8f9659019 100644
--- a/lib/sanitizer_common/sanitizer_common_syscalls.inc
+++ b/lib/sanitizer_common/sanitizer_common_syscalls.inc
@@ -61,7 +61,7 @@ PRE_SYSCALL(recvmsg)(int sockfd, struct sanitizer_kernel_msghdr *msg,
PRE_READ(msg, sizeof(*msg));
}
-POST_SYSCALL(recvmsg)(int res, int sockfd, struct sanitizer_kernel_msghdr *msg,
+POST_SYSCALL(recvmsg)(long res, int sockfd, struct sanitizer_kernel_msghdr *msg,
int flags) {
if (res > 0)
for (unsigned long i = 0; i < msg->msg_iovlen; ++i)
@@ -71,14 +71,14 @@ POST_SYSCALL(recvmsg)(int res, int sockfd, struct sanitizer_kernel_msghdr *msg,
PRE_SYSCALL(rt_sigpending)(void *p, unsigned long s) { PRE_WRITE(p, s); }
-POST_SYSCALL(rt_sigpending)(int res, void *p, unsigned long s) {
+POST_SYSCALL(rt_sigpending)(long res, void *p, unsigned long s) {
if (res == 0)
POST_WRITE(p, s);
}
PRE_SYSCALL(getdents)(int fd, void *dirp, int count) { PRE_WRITE(dirp, count); }
-POST_SYSCALL(getdents)(int res, int fd, void *dirp, int count) {
+POST_SYSCALL(getdents)(long res, int fd, void *dirp, int count) {
if (res > 0)
POST_WRITE(dirp, res);
}
@@ -87,7 +87,7 @@ PRE_SYSCALL(getdents64)(int fd, void *dirp, int count) {
PRE_WRITE(dirp, count);
}
-POST_SYSCALL(getdents64)(int res, int fd, void *dirp, int count) {
+POST_SYSCALL(getdents64)(long res, int fd, void *dirp, int count) {
if (res > 0)
POST_WRITE(dirp, res);
}