LCOV - code coverage report
Current view: top level - sal/osl/all - compat.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 58 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 29 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include "sal/config.h"
      11             : 
      12             : #include <cstdlib>
      13             : 
      14             : #include "osl/module.h"
      15             : #include "osl/pipe.h"
      16             : #include "osl/socket.h"
      17             : #include "osl/time.h"
      18             : #include "sal/types.h"
      19             : 
      20             : // Stubs for removed functionality, to be killed when we bump sal SONAME
      21             : 
      22             : extern "C" {
      23             : 
      24           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_acquireSemaphore(void *) {
      25           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      26             : }
      27             : 
      28           0 : SAL_DLLPUBLIC_EXPORT int SAL_CALL osl_areCommandArgsSet() {
      29           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      30             : }
      31             : 
      32           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_assertFailedLine(
      33             :     char const *, sal_Int32, char const *)
      34             : {
      35           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      36             : }
      37             : 
      38           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_breakDebug() {
      39           0 :     std::abort();
      40             : }
      41             : 
      42           0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL osl_createSemaphore(sal_uInt32) {
      43           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      44             : }
      45             : 
      46           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_destroySemaphore(void *) {
      47           0 :     std::abort();
      48             : }
      49             : 
      50           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_getEthernetAddress(sal_uInt8 *) {
      51           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      52             : }
      53             : 
      54           0 : SAL_DLLPUBLIC_EXPORT oslSocket SAL_CALL osl_receiveResourcePipe(oslPipe) {
      55           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      56             : }
      57             : 
      58           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_releaseSemaphore(void *) {
      59           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      60             : }
      61             : 
      62           0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL osl_reportError(
      63             :     sal_uInt32, char const *)
      64             : {
      65           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      66             : }
      67             : 
      68           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_sendResourcePipe(oslPipe, oslSocket)
      69             : {
      70           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      71             : }
      72             : 
      73             : namespace {
      74             : typedef void (SAL_CALL * pfunc_osl_printDebugMessage)(char const *);
      75             : }
      76             : SAL_DLLPUBLIC_EXPORT pfunc_osl_printDebugMessage SAL_CALL
      77           0 : osl_setDebugMessageFunc(pfunc_osl_printDebugMessage) {
      78           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      79             : }
      80             : 
      81             : namespace {
      82             : typedef void (SAL_CALL * pfunc_osl_printDetailedDebugMessage)(
      83             :     char const *, sal_Int32, char const *);
      84             : }
      85             : SAL_DLLPUBLIC_EXPORT pfunc_osl_printDetailedDebugMessage SAL_CALL
      86           0 : osl_setDetailedDebugMessageFunc(pfunc_osl_printDetailedDebugMessage) {
      87           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      88             : }
      89             : 
      90           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_trace(char const *, ...) {
      91           0 :     std::abort();
      92             : }
      93             : 
      94           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_tryToAcquireSemaphore(void *) {
      95           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      96             : }
      97             : 
      98           0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_addUnloadingListener(
      99             :     void (SAL_CALL *)(void *), void *)
     100             : {
     101           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     102             : }
     103             : 
     104           0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_compareMemory(
     105             :     void const *, void const *, sal_Size)
     106             : {
     107           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     108             : }
     109             : 
     110           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_copyMemory(
     111             :     void *, void const *, sal_Size)
     112             : {
     113           0 :     std::abort();
     114             : }
     115             : 
     116           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_fillMemory(void *, sal_Size, sal_uInt8) {
     117           0 :     std::abort();
     118             : }
     119             : 
     120           0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL rtl_findInMemory(
     121             :     void const *, sal_uInt8, sal_Size)
     122             : {
     123           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     124             : }
     125             : 
     126           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_moveMemory(
     127             :     void *, void const *, sal_Size)
     128             : {
     129           0 :     std::abort();
     130             : }
     131             : 
     132           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_registerModuleForUnloading(oslModule)
     133             : {
     134           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     135             : }
     136             : 
     137           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_removeUnloadingListener(sal_Int32) {
     138           0 :     std::abort();
     139             : }
     140             : 
     141           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unloadUnusedModules(TimeValue *) {
     142           0 :     std::abort();
     143             : }
     144             : 
     145           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unregisterModuleForUnloading(oslModule) {
     146           0 :     std::abort();
     147             : }
     148             : 
     149           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_zeroMemory(void *, sal_Size) {
     150           0 :     std::abort();
     151             : }
     152             : 
     153           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_logfile_trace( const sal_Char*, ... ) {
     154           0 :     std::abort();
     155             : }
     156             : 
     157           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_logfile_longTrace(char const *, ...) {
     158           0 :     std::abort();
     159             : }
     160             : 
     161           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_logfile_hasLogFile() {
     162           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     163             : }
     164             : 
     165             : }
     166             : 
     167             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11