[compiler-rt] [compiler-rt][rtsan] socketpair interception. (PR #124107)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 17:18:02 PST 2025
================
@@ -1021,6 +1021,16 @@ INTERCEPTOR(int, setsockopt, int socket, int level, int option,
#define RTSAN_MAYBE_INTERCEPT_SETSOCKOPT
#endif
+#if !SANITIZER_APPLE
----------------
cjappl wrote:
Apple has socketpair, for the record (or at least mine does)
```
> man 2 socketpair | head
SOCKETPAIR(2) System Calls Manual SOCKETPAIR(2)
NAME
socketpair – create a pair of connected sockets
SYNOPSIS
#include <sys/socket.h>
int
socketpair(int domain, int type, int protocol, int socket_vector[2]);
```
https://github.com/llvm/llvm-project/pull/124107
More information about the llvm-commits
mailing list