diff options
| author | Patrick Meyer <meyerpatrick@google.com> | 2021-05-22 20:48:47 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-06-07 19:19:55 +0200 |
| commit | b718257f456d456345e1129b27a9340c91c18f3b (patch) | |
| tree | 1206868c25c2ab1a211711b17757cc501abddf0d /sys/syz-extract/darwin.go | |
| parent | e59537be40a9ad863e953e187c14dbde57caf1b1 (diff) | |
sys/darwin: initial syscall definitions
Pretty much ripped from freebsd +/- what isn't applicable to darwin.
Diffstat (limited to 'sys/syz-extract/darwin.go')
| -rw-r--r-- | sys/syz-extract/darwin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/syz-extract/darwin.go b/sys/syz-extract/darwin.go index 8f2267f04..68322be01 100644 --- a/sys/syz-extract/darwin.go +++ b/sys/syz-extract/darwin.go @@ -24,6 +24,8 @@ func (*darwin) prepareArch(arch *Arch) error { func (*darwin) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) { args := []string{ "-nostdinc", + "-DPRIVATE", + "-DPF", "-I", filepath.Join(arch.sourceDir, "bsd"), "-I", filepath.Join(arch.sourceDir, "bsd", "sys"), "-I", filepath.Join(arch.sourceDir, "osfmk"), |
