Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sal / osl / all / compat.cxx
blob8fafc628b57e046e74186ce63f4de620d811ef26
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/pipe.h>
16 #include <osl/socket.h>
17 #include <osl/time.h>
18 #include <sal/types.h>
20 // Stubs for removed functionality, to be killed when we bump sal SONAME
22 extern "C" {
24 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_acquireSemaphore(void *) {
25 for (;;) { std::abort(); } // avoid "must return a value" warnings
28 SAL_DLLPUBLIC void SAL_CALL osl_addToSocketSet(void *, oslSocket) {
29 std::abort();
32 SAL_DLLPUBLIC_EXPORT int SAL_CALL osl_areCommandArgsSet() {
33 for (;;) { std::abort(); } // avoid "must return a value" warnings
36 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_assertFailedLine(
37 char const *, sal_Int32, char const *)
39 for (;;) { std::abort(); } // avoid "must return a value" warnings
42 SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_breakDebug() {
43 std::abort();
46 SAL_DLLPUBLIC void SAL_CALL osl_clearSocketSet(void *) {
47 std::abort();
50 SAL_DLLPUBLIC_EXPORT void * SAL_CALL osl_createSemaphore(sal_uInt32) {
51 for (;;) { std::abort(); } // avoid "must return a value" warnings
54 SAL_DLLPUBLIC void * SAL_CALL osl_createSocketSet() {
55 for (;;) { std::abort(); } // avoid "must return a value" warnings
58 SAL_DLLPUBLIC sal_Int32 SAL_CALL osl_demultiplexSocketEvents(
59 void *, void *, void *, TimeValue const *)
61 for (;;) { std::abort(); } // avoid "must return a value" warnings
64 SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_destroySemaphore(void *) {
65 std::abort();
68 SAL_DLLPUBLIC void SAL_CALL osl_destroySocketSet(void *) {
69 std::abort();
72 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_getEthernetAddress(sal_uInt8 *) {
73 for (;;) { std::abort(); } // avoid "must return a value" warnings
76 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isInSocketSet(void *, oslSocket) {
77 for (;;) { std::abort(); } // avoid "must return a value" warnings
80 SAL_DLLPUBLIC_EXPORT oslSocket SAL_CALL osl_receiveResourcePipe(oslPipe) {
81 for (;;) { std::abort(); } // avoid "must return a value" warnings
84 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_releaseSemaphore(void *) {
85 for (;;) { std::abort(); } // avoid "must return a value" warnings
88 SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL osl_reportError(
89 sal_uInt32, char const *)
91 for (;;) { std::abort(); } // avoid "must return a value" warnings
94 SAL_DLLPUBLIC void SAL_CALL osl_removeFromSocketSet(void *, oslSocket) {
95 std::abort();
98 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_sendResourcePipe(oslPipe, oslSocket)
100 for (;;) { std::abort(); } // avoid "must return a value" warnings
103 namespace {
104 typedef void (* pfunc_osl_printDebugMessage)(char const *);
106 SAL_DLLPUBLIC_EXPORT pfunc_osl_printDebugMessage SAL_CALL
107 osl_setDebugMessageFunc(pfunc_osl_printDebugMessage) {
108 for (;;) { std::abort(); } // avoid "must return a value" warnings
111 namespace {
112 typedef void (* pfunc_osl_printDetailedDebugMessage)(
113 char const *, sal_Int32, char const *);
115 SAL_DLLPUBLIC_EXPORT pfunc_osl_printDetailedDebugMessage SAL_CALL
116 osl_setDetailedDebugMessageFunc(pfunc_osl_printDetailedDebugMessage) {
117 for (;;) { std::abort(); } // avoid "must return a value" warnings
120 SAL_DLLPUBLIC_EXPORT void SAL_CALL osl_trace(char const *, ...) {
121 std::abort();
124 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL osl_tryToAcquireSemaphore(void *) {
125 for (;;) { std::abort(); } // avoid "must return a value" warnings
128 SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_addUnloadingListener(
129 void (SAL_CALL *)(void *), void *)
131 for (;;) { std::abort(); } // avoid "must return a value" warnings
134 SAL_DLLPUBLIC_EXPORT sal_Int32 SAL_CALL rtl_compareMemory(
135 void const *, void const *, sal_Size)
137 for (;;) { std::abort(); } // avoid "must return a value" warnings
140 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_copyMemory(
141 void *, void const *, sal_Size)
143 std::abort();
146 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_fillMemory(void *, sal_Size, sal_uInt8) {
147 std::abort();
150 SAL_DLLPUBLIC_EXPORT void * SAL_CALL rtl_findInMemory(
151 void const *, sal_uInt8, sal_Size)
153 for (;;) { std::abort(); } // avoid "must return a value" warnings
156 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_moveMemory(
157 void *, void const *, sal_Size)
159 std::abort();
162 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_registerModuleForUnloading(oslModule)
164 for (;;) { std::abort(); } // avoid "must return a value" warnings
167 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_removeUnloadingListener(sal_Int32) {
168 std::abort();
171 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unloadUnusedModules(TimeValue *) {
172 std::abort();
175 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_unregisterModuleForUnloading(oslModule) {
176 std::abort();
179 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_zeroMemory(void *, sal_Size) {
180 std::abort();
183 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_logfile_trace( const char*, ... ) {
184 std::abort();
187 SAL_DLLPUBLIC_EXPORT void SAL_CALL rtl_logfile_longTrace(char const *, ...) {
188 std::abort();
191 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL rtl_logfile_hasLogFile() {
192 for (;;) { std::abort(); } // avoid "must return a value" warnings
197 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */