Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1096)

Unified Diff: src/ports/SkOSFile_stdio.cpp

Issue 384903002: Add file access modes to sk_exists. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Better comment. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkOSFile_posix.cpp ('k') | src/ports/SkOSFile_win.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkOSFile_stdio.cpp
diff --git a/src/ports/SkOSFile_stdio.cpp b/src/ports/SkOSFile_stdio.cpp
index ad26c807c79e45a6b5e30b367e7eb4c6b62d551e..d63462549c33d11b80a42690d8f9f79f17b3dcc4 100644
--- a/src/ports/SkOSFile_stdio.cpp
+++ b/src/ports/SkOSFile_stdio.cpp
@@ -15,8 +15,6 @@
#ifdef _WIN32
#include <direct.h>
#include <io.h>
-#else
-#include <unistd.h>
#endif
SkFILE* sk_fopen(const char path[], SkFILE_Flags flags) {
@@ -123,14 +121,6 @@ void sk_fclose(SkFILE* f) {
::fclose((FILE*)f);
}
-bool sk_exists(const char *path) {
-#ifdef _WIN32
- return (0 == _access(path, 0));
-#else
- return (0 == access(path, 0));
-#endif
-}
-
bool sk_isdir(const char *path) {
struct stat status;
if (0 != stat(path, &status)) {
« no previous file with comments | « src/ports/SkOSFile_posix.cpp ('k') | src/ports/SkOSFile_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698