Skip to content

Commit 616d104

Browse files
authored
[compiler-rt][rtsan] fix ioctl interception for musl. (#131464)
1 parent 215c0d2 commit 616d104

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ INTERCEPTOR(int, fcntl, int filedes, int cmd, ...) {
202202
return REAL(fcntl)(filedes, cmd, arg);
203203
}
204204

205+
#if SANITIZER_MUSL
206+
INTERCEPTOR(int, ioctl, int filedes, int request, ...) {
207+
#else
205208
INTERCEPTOR(int, ioctl, int filedes, unsigned long request, ...) {
209+
#endif
206210
__rtsan_notify_intercepted_call("ioctl");
207211

208212
// See fcntl for discussion on why we use intptr_t

0 commit comments

Comments
 (0)