AFAIK, fchmodat(2) is introduced since OS X 10.10 and IOS 8.0. I read the related discussion: https://groups.google.com/forum/#!topic/golang-codereviews/Fm_icdtNKe0 I cannot understand why it is restricted to amd64.