[PATCH] D56109: [sanitizer_common] Define __sanitizer_FILE on NetBSD
Kamil Rytarowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 28 16:47:36 PST 2018
krytarowski added inline comments.
================
Comment at: lib/tsan/rtl/tsan_interceptors.cc:45
#define dirfd(dirp) (*(int *)(dirp))
#define fileno_unlocked fileno
----------------
We might want to go for emulating `_unlocked`:
```
#define fileno_unlocked(p) \
488 ((p)->_file == -1 ? -1 : (int)(unsigned short)(p)->_file)
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56109/new/
https://reviews.llvm.org/D56109
More information about the cfe-commits
mailing list