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

Unified Diff: services/files/futimens.h

Issue 875643004: Prototype of Files service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: already ignored EINTR Created 5 years, 10 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 | « services/files/files_impl.cc ('k') | services/files/futimens_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/futimens.h
diff --git a/services/files/futimens.h b/services/files/futimens.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b7a8ae9671a2f2c84e6f80dcbf67111d2554bff
--- /dev/null
+++ b/services/files/futimens.h
@@ -0,0 +1,26 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_FILES_FUTIMENS_H_
+#define SERVICES_FILES_FUTIMENS_H_
+
+#include <sys/stat.h>
+
+#include "build/build_config.h"
+
+// For Android: The NDK/C library we currently build against doesn't have
+// |futimens()|, but has |utimensat()|. Provide the former (in terms of the
+// latter) for now. Remove this file and futimens_android.cc when |futimens()|
+// becomes generally available (see
+// https://android-review.googlesource.com/#/c/63321/).
+
+#if defined(OS_ANDROID)
+extern "C" {
+
+int futimens(int fd, const struct timespec times[2]);
+
+} // extern "C"
+#endif
+
+#endif // SERVICES_FILES_FUTIMENS_H_
« no previous file with comments | « services/files/files_impl.cc ('k') | services/files/futimens_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698