Bug 198473
Summary: | [Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink | ||
---|---|---|---|
Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> |
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | annulen |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Fujii Hironori
[Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink
unlink is deprecated
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/unlink?view=vs-2019
_unlink
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/unlink-wunlink?view=vs-2019
_stat、_stat32、_stat64、_stati64、_stat32i64、_stat64i32、_wstat、_wstat32、_wstat64、_wstati64、_wstat32i64、_wstat64i32 | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions?view=vs-2019
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Konstantin Tokarev
Proper direction would be to convert as much as possible of NetworkCache code to be cross-platform by using our FileSystem abstractions, e.g. FileSystem::deleteFile instead of unlink
In future we may want to use std::filesystem to implement some of operations
Konstantin Tokarev
And where are substantial differences which require code to be #ifdef'ed, it would be better to avoid increasing of #ifdef's and instead separate parts of code to respective *POSIX.cpp and *Win.cpp files