OSDN Git Service

ART: Add Unlink to FdFile
authorAndreas Gampe <agampe@google.com>
Fri, 24 Jun 2016 17:49:32 +0000 (10:49 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 7 Nov 2016 18:58:01 +0000 (10:58 -0800)
commit550c589938ef7cd7c4287ba4e52ddc4853598af7
tree5df86a44749f20d73e1b0ff8443f375ef01fa2f7
parent8ef4642ef27a0acf8dce07b174adea3e7f997846
ART: Add Unlink to FdFile

Add Unlink function that tries to unlink the file if it
was created with a file path. The function tries to
ensure that it does not unlink a newer file.

Add a parameter to Erase to add unlinking.

Test: m test-art-host-gtest-fd_file_test
Change-Id: I49993bb94aec10d5c8d9b2cbea30ebaa255b99e1
runtime/base/unix_file/fd_file.cc
runtime/base/unix_file/fd_file.h
runtime/base/unix_file/fd_file_test.cc