1 : /*
2 : * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 : * Use of this source code is governed by a BSD-style license that can be
4 : * found in the LICENSE file.
5 : */
6 :
7 : #include "native_client/src/shared/srpc/nacl_srpc.h"
8 : #include "native_client/src/shared/srpc/nacl_srpc_internal.h"
9 :
10 : nacl_abi_size_t NaClSrpcMaxImcSendmsgSize = 0;
11 :
12 3 : int NaClSrpcModuleInit(void) {
13 : #ifdef __native_client__
14 : /* TODO(sehr): add call to sysconf. */
15 : NaClSrpcMaxImcSendmsgSize = 1 << 16;
16 : #else
17 : /* TODO(sehr): add call to trusted API. */
18 3 : NaClSrpcMaxImcSendmsgSize = 1 << 16;
19 : #endif /* __native_client__ */
20 3 : return NaClSrpcLogInit();
21 3 : }
22 :
23 3 : void NaClSrpcModuleFini(void) {
24 3 : NaClSrpcLogFini();
25 3 : }
|