This is an archive of the discontinued LLVM Phabricator instance.

Handle NetBSD symbol renaming in sanitizer_common_interceptors.inc
ClosedPublic

Authored by krytarowski on Dec 2 2017, 3:56 AM.

Details

Summary

NetBSD renames symbols for historical and compat reasons.

Add required symbol renames in sanitizer_common_interceptors.inc:

  • clock_gettime -> __clock_gettime50
  • clock_getres -> __clock_getres50
  • clock_settime -> __clock_settime50
  • setitimer -> __setitimer50
  • getitimer -> __getitimer50
  • opendir -> __opendir30
  • readdir -> __readdir30
  • time -> __time50
  • localtime_r -> __localtime_r50
  • gmtime_r -> __gmtime_r50
  • gmtime -> __gmtime50
  • ctime -> __ctime50
  • ctime_r -> __ctime_r50
  • mktime -> __mktime50
  • getpwnam -> __getpwnam50
  • getpwuid -> __getpwuid50
  • getpwnam_r -> __getpwnam_r50
  • getpwuid_r -> __getpwuid_r50
  • getpwent -> __getpwent50
  • glob -> __glob30
  • wait3 -> __wait350
  • wait4 -> __wait450
  • readdir_r -> __readdir_r30
  • setlocale -> __setlocale50
  • scandir -> __scandir30
  • sigtimedwait -> __sigtimedwait50
  • sigemptyset -> __sigemptyset14
  • sigfillset -> __sigfillset14
  • sigpending -> __sigpending14
  • sigprocmask -> __sigprocmask14
  • shmctl -> __shmctl50
  • times -> __times13
  • stat -> __stat50
  • getutent -> __getutent50
  • getutxent -> __getutxent50
  • getutxid -> __getutxid50
  • getutxline -> __getutxline50

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM