From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- sal/inc/backtraceasstring.hxx | 24 +++++++++ sal/inc/oslmemory.h | 30 +++++++++++ sal/inc/oslrandom.h | 25 +++++++++ sal/inc/oslsocket.hxx | 24 +++++++++ sal/inc/pch/precompiled_sal.cxx | 12 +++++ sal/inc/pch/precompiled_sal.hxx | 113 ++++++++++++++++++++++++++++++++++++++++ sal/inc/rtllifecycle.h | 41 +++++++++++++++ sal/inc/salusesyslog.hxx | 23 ++++++++ sal/inc/signalshared.hxx | 39 ++++++++++++++ sal/inc/uri_internal.hxx | 40 ++++++++++++++ 10 files changed, 371 insertions(+) create mode 100644 sal/inc/backtraceasstring.hxx create mode 100644 sal/inc/oslmemory.h create mode 100644 sal/inc/oslrandom.h create mode 100644 sal/inc/oslsocket.hxx create mode 100644 sal/inc/pch/precompiled_sal.cxx create mode 100644 sal/inc/pch/precompiled_sal.hxx create mode 100644 sal/inc/rtllifecycle.h create mode 100644 sal/inc/salusesyslog.hxx create mode 100644 sal/inc/signalshared.hxx create mode 100644 sal/inc/uri_internal.hxx (limited to 'sal/inc') diff --git a/sal/inc/backtraceasstring.hxx b/sal/inc/backtraceasstring.hxx new file mode 100644 index 000000000..e857ea476 --- /dev/null +++ b/sal/inc/backtraceasstring.hxx @@ -0,0 +1,24 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SAL_INC_BACKTRACEASSTRING_HXX +#define INCLUDED_SAL_INC_BACKTRACEASSTRING_HXX + +#include + +#include +#include + +namespace osl::detail +{ +/// Build a debugging backtrace from current PC location. +OUString backtraceAsString(sal_uInt32 maxDepth); +} + +#endif // INCLUDED_SAL_INC_INTERNAL_MISC_H diff --git a/sal/inc/oslmemory.h b/sal/inc/oslmemory.h new file mode 100644 index 000000000..de99e9851 --- /dev/null +++ b/sal/inc/oslmemory.h @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SAL_INC_INTERNAL_OSLMEMORY_H +#define INCLUDED_SAL_INC_INTERNAL_OSLMEMORY_H + +#include +#include + +#if defined __cplusplus +extern "C" { +#endif + +void* osl_aligned_alloc(sal_Size align, sal_Size size); + +void osl_aligned_free(void* p); + +#if defined __cplusplus +} +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/inc/oslrandom.h b/sal/inc/oslrandom.h new file mode 100644 index 000000000..305eaf937 --- /dev/null +++ b/sal/inc/oslrandom.h @@ -0,0 +1,25 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SAL_INC_INTERNAL_OSLRANDOM_H +#define INCLUDED_SAL_INC_INTERNAL_OSLRANDOM_H + +#if defined __cplusplus +extern "C" { +#endif + +int osl_get_system_random_data(char* buffer, size_t desired_len); + +#if defined __cplusplus +} +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/inc/oslsocket.hxx b/sal/inc/oslsocket.hxx new file mode 100644 index 000000000..52260c263 --- /dev/null +++ b/sal/inc/oslsocket.hxx @@ -0,0 +1,24 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include +#include + +/** Retrieve this machines hostname as fully qualified domain name (FQDN). + Note that this might be slower than calling osl_getLocalHostname + since DNS needs to be queried to determine the FQDN. + @param strLocalHostname out-parameter. The string that receives the local host name. + @retval sal_True upon success + @retval sal_False +*/ +oslSocketResult osl_getLocalHostnameFQDN(rtl_uString** strLocalHostname); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ \ No newline at end of file diff --git a/sal/inc/pch/precompiled_sal.cxx b/sal/inc/pch/precompiled_sal.cxx new file mode 100644 index 000000000..5386a69d7 --- /dev/null +++ b/sal/inc/pch/precompiled_sal.cxx @@ -0,0 +1,12 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include "precompiled_sal.hxx" + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx new file mode 100644 index 000000000..006c691a3 --- /dev/null +++ b/sal/inc/pch/precompiled_sal.hxx @@ -0,0 +1,113 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +/* + This file has been autogenerated by update_pch.sh. It is possible to edit it + manually (such as when an include file has been moved/renamed/removed). All such + manual changes will be rewritten by the next run of update_pch.sh (which presumably + also fixes all possible problems, so it's usually better to use it). + + Generated on 2021-03-08 13:14:16 using: + ./bin/update_pch sal sal --cutoff=2 --exclude:system --exclude:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./sal/inc/pch/precompiled_sal.hxx "make sal.build" --find-conflicts +*/ + +#if defined(_WIN32) +#define _CRT_RAND_S +#endif + +#include +#if PCH_LEVEL >= 1 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 1 +#if PCH_LEVEL >= 2 +#endif // PCH_LEVEL >= 2 +#if PCH_LEVEL >= 3 +#include +#endif // PCH_LEVEL >= 3 +#if PCH_LEVEL >= 4 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif // PCH_LEVEL >= 4 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/inc/rtllifecycle.h b/sal/inc/rtllifecycle.h new file mode 100644 index 000000000..44af09e58 --- /dev/null +++ b/sal/inc/rtllifecycle.h @@ -0,0 +1,41 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SAL_INC_INTERNAL_RTLLIFECYCLE_H +#define INCLUDED_SAL_INC_INTERNAL_RTLLIFECYCLE_H + +#if defined __cplusplus +extern "C" { +#endif + +void rtl_arena_init(void); + +void rtl_arena_fini(void); + +void ensureArenaSingleton(void); + +void rtl_cache_init(void); + +void rtl_cache_fini(void); + +void ensureCacheSingleton(void); + +void rtl_locale_init(void); + +void rtl_locale_fini(void); + +void ensureLocaleSingleton(void); + +#if defined __cplusplus +} +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/inc/salusesyslog.hxx b/sal/inc/salusesyslog.hxx new file mode 100644 index 000000000..ae1c14a88 --- /dev/null +++ b/sal/inc/salusesyslog.hxx @@ -0,0 +1,23 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SAL_INC_SALUSESYSLOG_HXX +#define INCLUDED_SAL_INC_SALUSESYSLOG_HXX + +#include + +#include + +#if HAVE_SYSLOG_H +extern bool sal_use_syslog; +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/sal/inc/signalshared.hxx b/sal/inc/signalshared.hxx new file mode 100644 index 000000000..10bc0f57b --- /dev/null +++ b/sal/inc/signalshared.hxx @@ -0,0 +1,39 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#ifndef INCLUDED_SAL_INC_INTERNAL_SIGNALSHARED_HXX +#define INCLUDED_SAL_INC_INTERNAL_SIGNALSHARED_HXX + +#include +#include + +struct oslSignalHandlerImpl +{ + oslSignalHandlerFunction Handler; + void* pData; + oslSignalHandlerImpl* pNext; +}; + +oslSignalAction callSignalHandler(oslSignalInfo* pInfo); + +// platform-specific functions that need to be implemented +bool onInitSignal(); +bool onDeInitSignal(); + +#endif + diff --git a/sal/inc/uri_internal.hxx b/sal/inc/uri_internal.hxx new file mode 100644 index 000000000..0ec0650ca --- /dev/null +++ b/sal/inc/uri_internal.hxx @@ -0,0 +1,40 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_SAL_INC_URI_INTERNAL_HXX +#define INCLUDED_SAL_INC_URI_INTERNAL_HXX + +#include + +namespace rtl::uri::detail +{ +enum EscapeType +{ + EscapeNo, + EscapeChar, + EscapeOctet +}; + +sal_uInt32 readUcs4(sal_Unicode const** pBegin, sal_Unicode const* pEnd, bool bEncoded, + rtl_TextEncoding eCharset, EscapeType* pType); +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit v1.2.3