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 void * SAL_CALL osl_createSemaphore(sal_uInt32) {
27 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
28 : }
29 :
30 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_destroySemaphore(void *) {
31 0 : std::abort();
32 : }
33 :
34 0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_releaseSemaphore(void *) {
35 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
36 : }
37 :
38 0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_tryToAcquireSemaphore(void *) {
39 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
40 : }
41 :
42 0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_addUnloadingListener(
43 : void (SAL_CALL *)(void *), void *)
44 : {
45 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
46 : }
47 :
48 0 : SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_compareMemory(
49 : void const *, void const *, sal_Size)
50 : {
51 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
52 : }
53 :
54 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_copyMemory(
55 : void *, void const *, sal_Size)
56 : {
57 0 : std::abort();
58 : }
59 :
60 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_fillMemory(void *, sal_Size, sal_uInt8) {
61 0 : std::abort();
62 : }
63 :
64 0 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL rtl_findInMemory(
65 : void const *, sal_uInt8, sal_Size)
66 : {
67 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
68 : }
69 :
70 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_moveMemory(
71 : void *, void const *, sal_Size)
72 : {
73 0 : std::abort();
74 : }
75 :
76 0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_registerModuleForUnloading(oslModule)
77 : {
78 0 : for (;;) { std::abort(); } // avoid "must return a value" warnings
79 : }
80 :
81 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_removeUnloadingListener(sal_Int32) {
82 0 : std::abort();
83 : }
84 :
85 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unloadUnusedModules(TimeValue *) {
86 0 : std::abort();
87 : }
88 :
89 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unregisterModuleForUnloading(oslModule) {
90 0 : std::abort();
91 : }
92 :
93 0 : SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_zeroMemory(void *, sal_Size) {
94 0 : std::abort();
95 : }
96 :
97 : }
98 :
99 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|