blob: 5e7e98feacc35526cc5d582e1f36f7058633a23a [file] [log] [blame]
#!/bin/bash
#
# Runtime check for whether or not syscall.PerOSThreadSyscall is
# available to the working go runtime or not. If it isn't we always
# have to use libcap/psx to get POSIX semantics for syscalls that
# change security state.
if [ -z "$(go doc syscall 2>/dev/null|grep PerOSThreadSyscall)" ]; then
echo "1"
else
echo "0"
fi