forked from OSchip/llvm-project
parent
e7b6d544f0
commit
c24e13e7bb
|
@ -432,9 +432,6 @@ SCANF_INTERCEPTOR_IMPL(__isoc99_sscanf, __isoc99_vsscanf, str, format)
|
|||
|
||||
#if SANITIZER_INTERCEPT_IOCTL
|
||||
#include "sanitizer_common_interceptors_ioctl.inc"
|
||||
#define INIT_IOCTL \
|
||||
ioctl_init(); \
|
||||
INTERCEPT_FUNCTION(ioctl);
|
||||
INTERCEPTOR(int, ioctl, int d, unsigned request, void *arg) {
|
||||
void *ctx;
|
||||
COMMON_INTERCEPTOR_ENTER(ctx, ioctl, d, request, arg);
|
||||
|
@ -458,6 +455,9 @@ INTERCEPTOR(int, ioctl, int d, unsigned request, void *arg) {
|
|||
ioctl_common_post(ctx, desc, res, d, request, arg);
|
||||
return res;
|
||||
}
|
||||
#define INIT_IOCTL \
|
||||
ioctl_init(); \
|
||||
INTERCEPT_FUNCTION(ioctl);
|
||||
#else
|
||||
#define INIT_IOCTL
|
||||
#endif
|
||||
|
|
|
@ -85,8 +85,11 @@ static void ioctl_table_fill() {
|
|||
_(0x00008932, READ, struct_ifreq_sz); // SIOCDELMULTI
|
||||
_(0x00008940, NONE, 0); // SIOCADDRTOLD
|
||||
_(0x00008941, NONE, 0); // SIOCDELRTOLD
|
||||
|
||||
#if (SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_MAC
|
||||
_(0x000089E0, WRITE, struct_sioc_vif_req_sz); // SIOCGETVIFCNT
|
||||
_(0x000089E1, WRITE, struct_sioc_sg_req_sz); // SIOCGETSGCNT
|
||||
#endif
|
||||
|
||||
#if SANITIZER_LINUX
|
||||
_(0x00000000, NONE, 0); // FDCLRPRM
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||
|
||||
#if SANITIZER_ANDROID
|
||||
#include <linux/kd.h>
|
||||
#include <linux/mtio.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue