1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include <sal/config.h>
14 #include <osl/module.h>
16 #include <osl/socket.h>
18 #include <sal/types.h>
20 // Stubs for removed functionality, to be killed when we bump sal SONAME
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
) {
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() {
46 SAL_DLLPUBLIC
void SAL_CALL
osl_clearSocketSet(void *) {
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 *) {
68 SAL_DLLPUBLIC
void SAL_CALL
osl_destroySocketSet(void *) {
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
) {
98 SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL
osl_sendResourcePipe(oslPipe
, oslSocket
)
100 for (;;) { std::abort(); } // avoid "must return a value" warnings
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
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 *, ...) {
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
)
146 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
rtl_fillMemory(void *, sal_Size
, sal_uInt8
) {
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
)
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
) {
171 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
rtl_unloadUnusedModules(TimeValue
*) {
175 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
rtl_unregisterModuleForUnloading(oslModule
) {
179 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
rtl_zeroMemory(void *, sal_Size
) {
183 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
rtl_logfile_trace( const char*, ... ) {
187 SAL_DLLPUBLIC_EXPORT
void SAL_CALL
rtl_logfile_longTrace(char const *, ...) {
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: */