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

Unified Diff: mojo/services/files/public/c/lib/mojio_sys_stat.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/services/files/public/c/lib/mojio_fcntl.cc ('k') | mojo/services/files/public/c/lib/mojio_unistd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/files/public/c/lib/mojio_sys_stat.cc
diff --git a/mojo/services/files/public/c/lib/mojio_sys_stat.cc b/mojo/services/files/public/c/lib/mojio_sys_stat.cc
deleted file mode 100644
index d03de5a7845b3c9a2c6535c99996f715917fcfd2..0000000000000000000000000000000000000000
--- a/mojo/services/files/public/c/lib/mojio_sys_stat.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// 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.
-
-#include "files/public/c/mojio_sys_stat.h"
-
-#include "files/public/c/lib/fd_impl.h"
-#include "files/public/c/lib/fd_table.h"
-#include "files/public/c/lib/singletons.h"
-
-namespace mojio {
-namespace {
-
-int FstatImpl(int fd, struct mojio_stat* buf) {
- FDImpl* fd_impl = singletons::GetFDTable()->Get(fd);
- if (!fd_impl)
- return -1;
-
- return fd_impl->Fstat(buf) ? 0 : -1;
-}
-
-} // namespace
-} // namespace mojio
-
-extern "C" {
-
-int mojio_fstat(int fd, struct mojio_stat* buf) {
- return mojio::FstatImpl(fd, buf);
-}
-
-} // extern "C"
« no previous file with comments | « mojo/services/files/public/c/lib/mojio_fcntl.cc ('k') | mojo/services/files/public/c/lib/mojio_unistd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698