Age | Commit message (Collapse) | Author |
|
According to the comments in Posix_close(), TEMP_FAILURE_RETRY() should
not be used with close():
https://android.googlesource.com/platform/libcore/+/462bdac45c10f43d88d8f07f6994e272a27c14a2%5E%21/#F12
Bug: http://b/20501816
Change-Id: Ie283f848c4fe50fcde9358c8ed307ec048e70892
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
(cherry picked from commit 315ac19f69d5ca232ddc4a73b4d4088ac6c65e47)
|
|
This is fix avoid shadow variable warning
Change-Id: I014ab622b33326470b89e3971b7ad898700f9962
|
|
Make the DISALLOW_COPY_AND_ASSIGN macro delete the member functions rather
than just not defining them to improve analysis of the Scoped.. classes.
Add a few missing const qualifiers.
Change-Id: I48eee0c22908d45a05df6979aa61442d2eedcf36
|
|
The implementation follows the pattern of UniquePtr.
Change-Id: I761c89d393b610600e863e223f2545ded1fde441
|
|
Also, check for fd being -1 in destructor. There's no need
to set errno to EBADF after release() or if an open() call
used to initialize a ScopedFd failed.
Change-Id: I97c6c7db797a20c6850a36c61fe5b369547c4002
|
|
Change-Id: I01941409001107ff1825a56919cdbea6fa017fa5
|