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

Unified Diff: mojo/services/files/public/c/mojio_sys_types.h

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/mojio_sys_stat.h ('k') | mojo/services/files/public/c/mojio_time.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/files/public/c/mojio_sys_types.h
diff --git a/mojo/services/files/public/c/mojio_sys_types.h b/mojo/services/files/public/c/mojio_sys_types.h
deleted file mode 100644
index e4fafdcfa867d6a5898c548cbc89fe86af1b6e5c..0000000000000000000000000000000000000000
--- a/mojo/services/files/public/c/mojio_sys_types.h
+++ /dev/null
@@ -1,54 +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.
-
-// Partial <sys/types.h>-lookalike-ish. Note that this is a C header, so that
-// crappy (and non-crappy) C programs can use it.
-//
-// In general, functions/types/macros are given "mojio_"/"MOJIO_"/etc. prefixes.
-// There are a handful of exceptions (noted below).
-
-#ifndef MOJO_SERVICES_FILES_PUBLIC_C_MOJIO_SYS_TYPES_H_
-#define MOJO_SERVICES_FILES_PUBLIC_C_MOJIO_SYS_TYPES_H_
-
-// Includes --------------------------------------------------------------------
-
-// <sys/types.h> is required to define |size_t|. We don't define our own (with a
-// prefix), and just use the standard one from <stddef.h>.
-#include <stddef.h>
-
-#include "files/public/c/mojio_config.h"
-
-// <sys/types.h> is required to define |time_t| (which we have our own version
-// of, because the one in the C standard <time.h> is defined to be opaque).
-#include "files/public/c/mojio_time.h"
-
-// Types -----------------------------------------------------------------------
-
-typedef mojio_config_uint64 mojio_blkcnt_t;
-
-// Inexplicably required to be signed.
-typedef mojio_config_int64 mojio_blksize_t;
-
-typedef mojio_config_uint64 mojio_dev_t;
-
-typedef mojio_config_uint32 mojio_gid_t;
-
-typedef mojio_config_uint64 mojio_ino_t;
-
-typedef mojio_config_uint32 mojio_mode_t;
-
-typedef mojio_config_uint32 mojio_nlink_t;
-
-// |off_t| should be a signed type.
-typedef mojio_config_int64 mojio_off_t;
-
-// |ssize_t| should be a signed type of the same size as |size_t|.
-// TODO(vtl): We may need to define this differently sometimes? (But how?) Also,
-// add a suitable static_assert()/_Static_assert().
-// TODO(vtl): We need a mojio_limits.h, defining MOJIO_SSIZE_MAX.
-typedef long int mojio_ssize_t;
-
-typedef mojio_config_uint32 mojio_uid_t;
-
-#endif // MOJO_SERVICES_FILES_PUBLIC_C_MOJIO_SYS_TYPES_H_
« no previous file with comments | « mojo/services/files/public/c/mojio_sys_stat.h ('k') | mojo/services/files/public/c/mojio_time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698