Save errno in unix_jni.cc stat when throwing exceptions.
Save errno in unix_jni.cc stat when throwing exceptions.

It's otherwise possible that we do other syscalls in between the original syscall and us reading the errno for use in the exception.

PiperOrigin-RevId: 181367811

dropbox/bazel,davidzchen/bazel,safarmer/bazel,davidzchen/bazel,dropbox/bazel,ulfjack/bazel,davidzchen/bazel,twitter-forks/bazel,perezd/bazel,aehlig/bazel,werkt/bazel,katre/bazel,bazelbuild/bazel,katre/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,meteorcloudy/bazel,cushon/bazel,perezd/bazel,ButterflyNetwork/bazel,aehlig/bazel,perezd/bazel,werkt/bazel,bazelbuild/bazel,bazelbuild/bazel,werkt/bazel,safarmer/bazel,davidzchen/bazel,dslomov/bazel,ulfjack/bazel,meteorcloudy/bazel,cushon/bazel,katre/bazel,dslomov/bazel-windows,davidzchen/bazel,perezd/bazel,meteorcloudy/bazel,meteorcloudy/bazel,meteorcloudy/bazel,davidzchen/bazel,dslomov/bazel,dslomov/bazel,bazelbuild/bazel,dropbox/bazel,akira-baruah/bazel,akira-baruah/bazel,werkt/bazel,akira-baruah/bazel,safarmer/bazel,twitter-forks/bazel,katre/bazel,dropbox/bazel,twitter-forks/bazel,twitter-forks/bazel,dslomov/bazel,dslomov/bazel,twitter-forks/bazel,cushon/bazel,cushon/bazel,ulfjack/bazel,perezd/bazel,dslomov/bazel-windows,aehlig/bazel,akira-baruah/bazel,safarmer/bazel,ulfjack/bazel,dslomov/bazel-windows,katre/bazel,cushon/bazel,bazelbuild/bazel,katre/bazel,aehlig/bazel,dslomov/bazel,aehlig/bazel,werkt/bazel,ButterflyNetwork/bazel,ButterflyNetwork/bazel,safarmer/bazel,meteorcloudy/bazel,akira-baruah/bazel,perezd/bazel,cushon/bazel,ulfjack/bazel,aehlig/bazel,akira-baruah/bazel,safarmer/bazel,dropbox/bazel,meteorcloudy/bazel,dslomov/bazel,werkt/bazel,perezd/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,aehlig/bazel,ulfjack/bazel,twitter-forks/bazel,davidzchen/bazel,ulfjack/bazel,dslomov/bazel-windows,dslomov/bazel-windows,dropbox/bazel,dslomov/bazel-windows