[PATCH] D53413: [Sanitize] openbsd does not have sysctlbyname call
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 20 16:29:48 PDT 2018
krytarowski added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:799
+#if SANITIZER_FREEBSD
int internal_sysctlbyname(const char *sname, void *oldp, uptr *oldlenp,
----------------
I propose to implement it for OpenBSD as
```
Printf("Not implemented");
Die();
```
This way we will be able to skip ifdefing the header. NetBSD is doing it for e.g. `clone(2)` and `ptrace(2)` (both unused right now).
https://reviews.llvm.org/D53413
More information about the llvm-commits
mailing list