Updated core
[LibreOffice.git] / sal / osl / all / compat.cxx
blob2f86771bb753fe8319806bc27a9502d55eb59f07
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include "sal/config.h"
12 #include <cstdlib>
14 #include "osl/module.h"
15 #include "osl/time.h"
16 #include "sal/types.h"
18 // Stubs for removed functionality, to be killed when we bump sal SONAME
20 extern "C" {
22 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_acquireSemaphore(void *) {
23 for (;;) { std::abort(); } // avoid "must return a value" warnings
26 SAL_DLLPUBLIC_EXPORT void * SAL_CALL osl_createSemaphore(sal_uInt32) {
27 for (;;) { std::abort(); } // avoid "must return a value" warnings
30 SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_destroySemaphore(void *) {
31 std::abort();
34 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_releaseSemaphore(void *) {
35 for (;;) { std::abort(); } // avoid "must return a value" warnings
38 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_tryToAcquireSemaphore(void *) {
39 for (;;) { std::abort(); } // avoid "must return a value" warnings
42 SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_addUnloadingListener(
43 void (SAL_CALL *)(void *), void *)
45 for (;;) { std::abort(); } // avoid "must return a value" warnings
48 SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_compareMemory(
49 void const *, void const *, sal_Size)
51 for (;;) { std::abort(); } // avoid "must return a value" warnings
54 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_copyMemory(
55 void *, void const *, sal_Size)
57 std::abort();
60 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_fillMemory(void *, sal_Size, sal_uInt8) {
61 std::abort();
64 SAL_DLLPUBLIC_EXPORT void * SAL_CALL rtl_findInMemory(
65 void const *, sal_uInt8, sal_Size)
67 for (;;) { std::abort(); } // avoid "must return a value" warnings
70 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_moveMemory(
71 void *, void const *, sal_Size)
73 std::abort();
76 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_registerModuleForUnloading(oslModule)
78 for (;;) { std::abort(); } // avoid "must return a value" warnings
81 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_removeUnloadingListener(sal_Int32) {
82 std::abort();
85 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unloadUnusedModules(TimeValue *) {
86 std::abort();
89 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unregisterModuleForUnloading(oslModule) {
90 std::abort();
93 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_zeroMemory(void *, sal_Size) {
94 std::abort();
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */