[compiler-rt] r177510 - tsan: add internal_unlink() function

Alexey Samsonov samsonov at google.com
Wed Mar 20 03:39:48 PDT 2013


On Wed, Mar 20, 2013 at 2:28 PM, Dmitry Vyukov <dvyukov at google.com> wrote:

> Author: dvyukov
> Date: Wed Mar 20 05:28:36 2013
> New Revision: 177510
>
> URL: http://llvm.org/viewvc/llvm-project?rev=177510&view=rev
> Log:
> tsan: add internal_unlink() function
>

Would you need mac/windows version as well?


>
>
> Modified:
>     compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
>     compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
>
> Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h?rev=177510&r1=177509&r2=177510&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h (original)
> +++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_libc.h Wed Mar 20
> 05:28:36 2013
> @@ -79,6 +79,7 @@ int internal_lstat(const char *path, voi
>  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);
> +int internal_unlink(const char *path);
>  void NORETURN internal__exit(int exitcode);
>  OFF_T internal_lseek(fd_t fd, OFF_T offset, int whence);
>
>
> Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=177510&r1=177509&r2=177510&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
> +++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Wed Mar 20
> 05:28:36 2013
> @@ -145,6 +145,10 @@ uptr internal_readlink(const char *path,
>    return (uptr)syscall(__NR_readlink, path, buf, bufsize);
>  }
>
> +int internal_unlink(const char *path) {
> +  return syscall(__NR_unlink, path);
> +}
> +
>  int internal_sched_yield() {
>    return syscall(__NR_sched_yield);
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130320/c8fbeeb8/attachment.html>


More information about the llvm-commits mailing list