forked from OSchip/llvm-project
[Sanitizer] Enable getfsent api for Darwin
Reviewers: vitalybuka, kubamracek Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D56138 llvm-svn: 350138
This commit is contained in:
parent
d1cd005ec5
commit
adb5f1e3b5
|
@ -545,7 +545,7 @@
|
|||
#define SANITIZER_INTERCEPT_SHA2 SI_NETBSD
|
||||
#define SANITIZER_INTERCEPT_CDB SI_NETBSD
|
||||
#define SANITIZER_INTERCEPT_VIS (SI_NETBSD || SI_FREEBSD)
|
||||
#define SANITIZER_INTERCEPT_GETFSENT (SI_FREEBSD || SI_NETBSD)
|
||||
#define SANITIZER_INTERCEPT_GETFSENT (SI_FREEBSD || SI_NETBSD || SI_MAC)
|
||||
#define SANITIZER_INTERCEPT_ARC4RANDOM (SI_FREEBSD || SI_NETBSD)
|
||||
|
||||
#endif // #ifndef SANITIZER_PLATFORM_INTERCEPTORS_H
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#endif
|
||||
#include <arpa/inet.h>
|
||||
#include <dirent.h>
|
||||
#include <fstab.h>
|
||||
#include <grp.h>
|
||||
#include <limits.h>
|
||||
#include <net/if.h>
|
||||
|
@ -192,6 +193,7 @@ namespace __sanitizer {
|
|||
unsigned struct_sched_param_sz = sizeof(struct sched_param);
|
||||
unsigned struct_regex_sz = sizeof(regex_t);
|
||||
unsigned struct_regmatch_sz = sizeof(regmatch_t);
|
||||
unsigned struct_fstab_sz = sizeof(struct fstab);
|
||||
|
||||
|
||||
#if SANITIZER_MAC && !SANITIZER_IOS
|
||||
|
|
|
@ -51,6 +51,7 @@ namespace __sanitizer {
|
|||
extern unsigned struct_statfs64_sz;
|
||||
extern unsigned struct_regex_sz;
|
||||
extern unsigned struct_regmatch_sz;
|
||||
extern unsigned struct_fstab_sz;
|
||||
|
||||
#if !SANITIZER_ANDROID
|
||||
extern unsigned struct_statfs_sz;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
|
||||
//
|
||||
// UNSUPPORTED: linux, darwin, solaris
|
||||
// UNSUPPORTED: linux, solaris
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
|
Loading…
Reference in New Issue