diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-05-17 16:56:53 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-05-17 16:56:53 +0000 |
commit | 0b694fcab9b2f33bdd6691cbea4e80a5c27191b1 (patch) | |
tree | f1ad0a376d7cc8d035b2e8305024a6a35413ac14 /lib/sanitizer_common/sanitizer_libc.h | |
parent | 0c547de62dc0852a03fae2d868fa571e7f5512b3 (diff) |
[nolibc] Move all platforms to internal_getpid.
Before, we had an unused internal_getpid function for Linux, and a
platform-independent GetPid function. To make the naming conventions
consistent for syscall-like functions, the GetPid syscall wrapper
in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is
renamed to internal_getpid, bringing the Linux variant into use.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_libc.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_libc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_libc.h b/lib/sanitizer_common/sanitizer_libc.h index 5f77ad1e5..82d809a03 100644 --- a/lib/sanitizer_common/sanitizer_libc.h +++ b/lib/sanitizer_common/sanitizer_libc.h @@ -85,6 +85,7 @@ uptr internal_lseek(fd_t fd, OFF_T offset, int whence); uptr internal_ptrace(int request, int pid, void *addr, void *data); uptr internal_waitpid(int pid, int *status, int options); +uptr internal_getpid(); uptr internal_getppid(); // Threading |