Bjorn Leffler has uploaded this change for review.
os/darwin: add subr.c, and default GSH_CAN_HOST_LOCAL_FS to OFF
Add the platform subr.c that Linux and FreeBSD have to the existing
if(DARWIN) source list in os/CMakeLists.txt.
The setuser/setgroup/set_threadgroups half of subr.c cannot be
implemented on Darwin as separate operations: its per-thread credential
primitive, pthread_setugid_np(2), sets uid and gid together. Those
functions are only reached when GSH_CAN_HOST_LOCAL_FS is enabled, so
default that option to OFF on Darwin, and make subr.c fail to compile
if it is turned on, rather than ship stubs that would fail silently.
Change-Id: I1b5dac4cfee9a584380540364a85c7ad36594dd7
Signed-off-by: Bjorn Leffler <github@leffler.org>
---
M src/CMakeLists.txt
M src/os/CMakeLists.txt
A src/os/darwin/subr.c
3 files changed, 51 insertions(+), 2 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/43/1255643/1
To view, visit change 1255643. To unsubscribe, or for help writing mail filters, visit settings.