LCOV - code coverage report
Current view: top level - sal/osl/all - compat.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 46 0.0 %
Date: 2014-04-11 Functions: 0 23 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/time.h"
      16             : #include "sal/types.h"
      17             : 
      18             : // Stubs for removed functionality, to be killed when we bump sal SONAME
      19             : 
      20             : extern "C" {
      21             : 
      22           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_acquireSemaphore(void *) {
      23           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      24             : }
      25             : 
      26           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_assertFailedLine(
      27             :     char const *, sal_Int32, char const *)
      28             : {
      29           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      30             : }
      31             : 
      32           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_breakDebug() {
      33           0 :     std::abort();
      34             : }
      35             : 
      36           0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL osl_createSemaphore(sal_uInt32) {
      37           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      38             : }
      39             : 
      40           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_destroySemaphore(void *) {
      41           0 :     std::abort();
      42             : }
      43             : 
      44           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_getEthernetAddress(sal_uInt8 *) {
      45           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      46             : }
      47             : 
      48           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_releaseSemaphore(void *) {
      49           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      50             : }
      51             : 
      52           0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL osl_reportError(
      53             :     sal_uInt32, char const *)
      54             : {
      55           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      56             : }
      57             : 
      58             : namespace {
      59             : typedef void (SAL_CALL * pfunc_osl_printDebugMessage)(char const *);
      60             : }
      61             : SAL_DLLPUBLIC_EXPORT pfunc_osl_printDebugMessage SAL_CALL
      62           0 : osl_setDebugMessageFunc(pfunc_osl_printDebugMessage) {
      63           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      64             : }
      65             : 
      66             : namespace {
      67             : typedef void (SAL_CALL * pfunc_osl_printDetailedDebugMessage)(
      68             :     char const *, sal_Int32, char const *);
      69             : }
      70             : SAL_DLLPUBLIC_EXPORT pfunc_osl_printDetailedDebugMessage SAL_CALL
      71           0 : osl_setDetailedDebugMessageFunc(pfunc_osl_printDetailedDebugMessage) {
      72           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      73             : }
      74             : 
      75           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_trace(char const *, ...) {
      76           0 :     std::abort();
      77             : }
      78             : 
      79           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_tryToAcquireSemaphore(void *) {
      80           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      81             : }
      82             : 
      83           0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_addUnloadingListener(
      84             :     void (SAL_CALL *)(void *), void *)
      85             : {
      86           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      87             : }
      88             : 
      89           0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_compareMemory(
      90             :     void const *, void const *, sal_Size)
      91             : {
      92           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
      93             : }
      94             : 
      95           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_copyMemory(
      96             :     void *, void const *, sal_Size)
      97             : {
      98           0 :     std::abort();
      99             : }
     100             : 
     101           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_fillMemory(void *, sal_Size, sal_uInt8) {
     102           0 :     std::abort();
     103             : }
     104             : 
     105           0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL rtl_findInMemory(
     106             :     void const *, sal_uInt8, sal_Size)
     107             : {
     108           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     109             : }
     110             : 
     111           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_moveMemory(
     112             :     void *, void const *, sal_Size)
     113             : {
     114           0 :     std::abort();
     115             : }
     116             : 
     117           0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_registerModuleForUnloading(oslModule)
     118             : {
     119           0 :     for (;;) { std::abort(); } // avoid "must return a value" warnings
     120             : }
     121             : 
     122           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_removeUnloadingListener(sal_Int32) {
     123           0 :     std::abort();
     124             : }
     125             : 
     126           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unloadUnusedModules(TimeValue *) {
     127           0 :     std::abort();
     128             : }
     129             : 
     130           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unregisterModuleForUnloading(oslModule) {
     131           0 :     std::abort();
     132             : }
     133             : 
     134           0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_zeroMemory(void *, sal_Size) {
     135           0 :     std::abort();
     136             : }
     137             : 
     138             : }
     139             : 
     140             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10