[PATCH] [compiler-rt] Fix the prototype of ioctl interceptor

Alexander Potapenko glider at google.com
Tue Jan 20 02:54:42 PST 2015


`man 2 ioctl` contains the following prototype:

  int ioctl(int d, int request, ...);

Perhaps this is the source of the mistake, because <sys/ioctl.h> has the correct one:

  extern int ioctl (int __fd, unsigned long int __request, ...) __THROW;

I think you also need to fix sanitizer_common_interceptors_ioctl.inc


http://reviews.llvm.org/D7038

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list