[PATCH] [sanitizer] Add most ioctls from /usr/include/sound/.

Sergey Matveev earthdok at google.com
Thu Jan 30 08:49:28 PST 2014


  Two things:
  - I had to skip the ioctls defined in emu10k1.h and asequencer.h (mostly because the struct definitions there depend on DECLARE_BITMAP, which isn't defined in any of the headers I have on my machine. But we could redefine that macro - it's rather trivial).
  - I had to flip READ and WRITE to make it work. Looks like we interpret "WRITE" as "writes to memory", whereas in Linux "_IOW" means "writes to the device". So in most cases our WRITE maps to _IOR and READ maps to _IOR, but I suspect this may not be an exact mapping.

http://llvm-reviews.chandlerc.com/D2659



More information about the llvm-commits mailing list