diff options
author | Kostya Serebryany <kcc@google.com> | 2013-02-27 11:22:40 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-02-27 11:22:40 +0000 |
commit | f0b8f989e93fa4a07a320c7cf54ac859bf9c164e (patch) | |
tree | 3c3e2acb80a4947a8e703cbcee52133521f7825b /compiler-rt/lib/sanitizer_common/sanitizer_libc.h | |
parent | bfb0cd355fc87a8834a1009c0ff7c00b2e7e0ad5 (diff) | |
download | bcm5719-llvm-f0b8f989e93fa4a07a320c7cf54ac859bf9c164e.tar.gz bcm5719-llvm-f0b8f989e93fa4a07a320c7cf54ac859bf9c164e.zip |
add Linux syscall wrappers and ThreadLister to sanitizer_common
ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code.
Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself.
Patch by Sergey Matveev
llvm-svn: 176179
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_libc.h')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_libc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_libc.h b/compiler-rt/lib/sanitizer_common/sanitizer_libc.h index d4e954c263c..7c2a1b8574f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_libc.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_libc.h @@ -80,6 +80,11 @@ int internal_fstat(fd_t fd, void *buf); int internal_dup2(int oldfd, int newfd); uptr internal_readlink(const char *path, char *buf, uptr bufsize); void NORETURN internal__exit(int exitcode); +OFF_T internal_lseek(fd_t fd, OFF_T offset, int whence); + +long internal_ptrace(int request, int pid, void *addr, void *data); +int internal_waitpid(int pid, int *status, int options); +int internal_getppid(); // Threading int internal_sched_yield(); |