LCOV - code coverage report
Current view: directory - src/shared/srpc - module_init_fini.c (source / functions) Found Hit Coverage
Test: coverage.lcov Lines: 7 7 100.0 %
Date: 2014-09-25 Functions: 0 0 -

       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 : }

Generated by: LCOV version 1.7