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

Unified Diff: src/trusted/service_runtime/fs/xdr.h

Issue 10512008: Remove some unused code that fails to compile with -Wundef (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 years, 6 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/trusted/service_runtime/fs/obj_proxy_test.c ('k') | src/trusted/service_runtime/fs/xdr.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/fs/xdr.h
diff --git a/src/trusted/service_runtime/fs/xdr.h b/src/trusted/service_runtime/fs/xdr.h
deleted file mode 100644
index cca3059d3d8ba7678d64e058c6a33a7412ce33c1..0000000000000000000000000000000000000000
--- a/src/trusted/service_runtime/fs/xdr.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright 2008 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
- */
-
-/*
- * NaCl file system mini XDR-like serialization of basic types.
- *
- * NB: this code has not been integrated with the rest of NaCl, and is
- * likely to change.
- */
-
-#ifndef NATIVE_CLIENT_SERVICE_RUNTIME_FS_XDR_H_
-#define NATIVE_CLIENT_SERVICE_RUNTIME_FS_XDR_H_
-
-#include <string.h>
-
-#include "native_client/src/include/portability.h"
-#include "native_client/src/trusted/service_runtime/include/machine/_types.h"
-
-EXTERN_C_BEGIN
-
-/*
- * knowledge about sizes for types of various file system RPC message
- * structures' members is not baked in here, but only in
- * machine/_types.h
- *
- * memcpy is (typically) a compiler intrinsic, so we should get
- * efficient code while maintaining type safety. there are no byte
- * order issues when IMC can only communicate between processes on the
- * system.
- *
- * we violate the convention for in/out arg order so that code for
- * externalizatin/internalization of structures can be written more
- * easily using macros.
- */
-
-#define D(T) \
- static INLINE size_t nacl_ext_ ## T(char *buf, nacl_abi_ ## T datum) \
- { \
- memcpy((void *) buf, (void *) &datum, sizeof datum); \
- return sizeof datum; \
- } \
- static INLINE size_t nacl_int_ ## T(char *buf, nacl_abi_ ## T *datum) \
- { \
- memcpy((void *) datum, (void *) buf, sizeof datum); \
- return sizeof datum; \
- }
-
-D(dev_t)
-D(ino_t)
-D(mode_t)
-D(uid_t)
-D(gid_t)
-D(nlink_t)
-D(off_t)
-D(time_t)
-D(size_t)
-D(ssize_t)
-
-#undef D
-
-#define D(T) \
- static INLINE size_t nacl_ext_ ## T(char *buf, T datum) \
- { \
- memcpy((void *) buf, (void *) &datum, sizeof datum); \
- return sizeof datum; \
- } \
- static INLINE size_t nacl_int_ ## T(char *buf, T *datum) \
- { \
- memcpy((void *) datum, (void *) buf, sizeof datum); \
- return sizeof datum; \
- }
-
-D(int8_t)
-D(int16_t)
-D(int32_t)
-D(int64_t)
-D(uint8_t)
-D(uint16_t)
-D(uint32_t)
-D(uint64_t)
-
-#undef D
-
-EXTERN_C_END
-
-#endif /* NATIVE_CLIENT_SERVICE_RUNTIME_FS_XDR_H_ */
« no previous file with comments | « src/trusted/service_runtime/fs/obj_proxy_test.c ('k') | src/trusted/service_runtime/fs/xdr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698