]> Cypherpunks repositories - gostls13.git/commit
os: make openFdAt act like openFileNolog
authorIan Lance Taylor <iant@golang.org>
Wed, 30 Jan 2019 00:34:27 +0000 (16:34 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Jan 2019 01:07:50 +0000 (01:07 +0000)
commiteb72a30f8732037596f0a1ab75c6219a40d4cf7d
treeb2b31292eb7a406af15286d1d6017c54b65577e4
parentf1d662f34788f4a5f087581d0951cdf4e0f6e708
os: make openFdAt act like openFileNolog

- add EINTR loop on Darwin
- return PathError on error
- call newFile rather than NewFile

This tries to minimize the possibility of any future changes.
It would be nice to put openFdAt in the same file as openFileNolog,
but build tags forbid.

Updates #29983

Change-Id: I866002416d6473fbfd80ff6ef09b2bc4607f2934
Reviewed-on: https://go-review.googlesource.com/c/160181
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/os/file_unix.go
src/os/removeall_at.go