summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)Author
2015-01-20Fix for Android gethostbyaddrStephan Bergmann
Change-Id: Icc8f5f71f07d0afb016b6188daea26068db93769
2015-01-20Missing constStephan Bergmann
Change-Id: I13058a46526a1186deaa8fffde303c272c0cc8aa
2015-01-20Some more loplugin:cstylecast: salStephan Bergmann
Change-Id: Ie54d340478412e62b87d66e287fd8a3963e97898
2015-01-16rtl_arena_alloc must never obey AMode_SYSTEMStephan Bergmann
...as e.g. the read+write+exec arena used in bridges/source/cpp_uno/shared/vtablefactory.cxx has specific requirements on obtained memory. This broke recent 8b9968a26265facaf5e761485d750ce9cedab3ab "fdo#72755: Only use double mmap as fallback" for e.g. --enable-ooenv (which sets G_SLICE). This is a partial revert of ce906b8096081dee15dc8cc96e570d5b0b587955 "skip tricky allocators on G_SLICE=always-malloc." Change-Id: I5a5fb7c3c920a7856381e6c55638137c625b5111
2015-01-12android: No reason to return JNI version less than Java 6Tomaž Vajngerl
Change-Id: Id9fae6561268bb7e5a465c19bdb80124f94f4939
2015-01-08[API CHANGE] Remove osl_send/receiveResourcePipeStephan Bergmann
...they had not been documented in osl/process.h and the sal/osl/unx implementation had been stubbed out since 7b37265b8e1afe480a6bbd271bf48fa1cbb44d55 "sal: remove unx implementation of osl_sendResourcePipe/osl_receiveResourcePipe" in 2012 Change-Id: Ia3ae853d95b6f3b2d2743f06755ef8f6246501d8
2015-01-08brute-force find-and-remove of unused #define constants.Noel Grandin
Change-Id: I7223530ae37297a76654cd00cc1fedb56dbe3adb
2015-01-07loplugin:cstylecast: salStephan Bergmann
Change-Id: I0ad9681a8b31d78cefce5b66040415154a1c7a99
2015-01-07drop crashrep unused since start of LibreOfficeCaolán McNamara
Change-Id: I3df1216054c133314b2317849744a0a37e9fbc8f Reviewed-on: https://gerrit.libreoffice.org/13733 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-06-Werror,-Wmacro-redefined (under Clang -fsanitize=*)Stephan Bergmann
Change-Id: Ifd23373b1ac4919793d1b4251ed90cf2dd6f2bda
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-01error C2039: 'max' : is not a member of 'std'Miklos Vajna
Change-Id: I2a059f9332215678936d78990ee36a5ae2161712
2014-12-29"NOMINMAX" is not used [-Werror=unused-macros]Julien Nabet
So let's let this for Windows only Change-Id: I1f76e03b0e3431a6954a75f5cb247ef1a1644a28
2014-12-28try to fix windows buildMarkus Mohrhard
2014-12-27boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara
Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
2014-12-20TyposJulien Nabet
Change-Id: I3475be796cf2655d9b619b86c9686aeef4b97b82
2014-12-19constants via #define must be integer if used in #if statementChristian Lohmaier
breaks windows build otherwise (fatal erro C1017) Change-Id: Idae78c621bfb8f989eb33220f015e17a7b7fb92f
2014-12-19Assert ASCII precond of rtl_uString_newFromAscii/LiteralStephan Bergmann
...and there is no reason for such a precond for rtl_string_newFromLiteral Change-Id: I27f7217c8db17cef860c37886d0f7e561dc852f8
2014-12-19IMPL_RTL_INTERN -> IMPL_RTL_IS_USTRINGStephan Bergmann
Change-Id: I9793f697f14118340bc6db89540fe50ad0b8ccbd
2014-12-19fdo#39440 sal: reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: Id5f90757571e76a2c05a4cbd37020e1f6a6b2033 Reviewed-on: https://gerrit.libreoffice.org/13544 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-19No need for RTL_FAST_STRING in addition to LIBO_INTERNAL_ONLYStephan Bergmann
Change-Id: I5514898f588b21bafceefca95e3276826cb9a882
2014-12-19No need for RTL_USING in addition to LIBO_INTERNAL_ONLYStephan Bergmann
Change-Id: Iaa65658aed6bb4abb20a4d95dc9c6caf7c1c764b
2014-12-19Remove unused */qa/checkapi/Stephan Bergmann
...superseded by CppunitTest_odk_checkapi Change-Id: I5df89a1a12f496984deab153f0ba2734323c1293
2014-12-17Fix 32-bit buildsStephan Bergmann
Change-Id: I09049db51668176b90dabe2c82d525b2fab60299
2014-12-17rtl::OUStringLiteral to the rescueStephan Bergmann
...for cases where ? "a" : "bb" does not work, as well as to work around the MSVC bug for cases like ? "a" : "b". Change-Id: Id404716047aca5cc81440f291616d92365379b8f
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-17Bin code that became dead after 8ecf956d79878c9b24f5ddc51d6b723a76d334f5Tor Lillqvist
Change-Id: I310abed7e86f8b7153817be5ae03cc3c8fec3c50
2014-12-16sal: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I4382504549eb1e3a8c34495a21d6df10a86ac23b
2014-12-12sal: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I568c2e0c9b5b234d941e17d57bcb53374626909e
2014-12-12osl_getCommandArg always returns osl_Process_E_NoneStephan Bergmann
Change-Id: I0ff1e44f17976fd3a3060d8ee7fe15d77c918b79
2014-12-05[API CHANGE] Remove .link feature from bootstrap variablesStephan Bergmann
This feature had never been documented in include/rtl/bootstrap.h and had only been used internally in LO on Windows for the multi-layer installations (thus is unused since 827430c8c0417396b3c1d2a049ccddb818c89646 "Fold URE: Windows"), so it should not hurt to remove it even if it could be considered part of the stable URE interface. Change-Id: If0f59f30dad8b2c3ff5f7931c19cd254073ccf80
2014-12-04android: use ByteBuffer to send or store pointers in JNI bindingsTomaž Vajngerl
Using direct ByteBuffer is much nicer option to store or send pointers between C(++) code and Java via JNI as it handles endiness and pointer size for us. Using "long" type can have unexpected results in 32-bit architectures (mostly Android). This was causing grief especially when Android introduced support for 64-bit architectures starting with SDK 19. Change-Id: Ie92d0f913b668e1724e846d70d1820445d9cb086
2014-12-04Don't keep the LibreOfficeKit pointer in a global variableTor Lillqvist
It is invalid in case lo_destroy() has been called. Change-Id: I45533b66d32fc650e48748da8ea1d2f2aaa381e0
2014-12-04[API CHANGE] Remove osl_setCommandArgsStephan Bergmann
...it was added late in the LO 3.3 cycle apparently by error. While this is strictly speaking an incompatible change, no client code should ever have called this deprecated, internal functionality anyway. An aborting stub is left in place for soname stability. Change-Id: Ibbc96ccf76a07a80d732a0713c95ff7b6bf1e528
2014-12-04Still no need for osl_setCommandArgsStephan Bergmann
(TOCTOU and all) Change-Id: I81253c8790b631117634bafa4eea65991a975ba0
2014-12-02-Werror,-Wkeyword-macroStephan Bergmann
Change-Id: I4a42c9f795cfbaa0f6c7b68d8189204a63da2321
2014-11-28Fold URE: Linux ure/lib/* -> program/Stephan Bergmann
The ../../../program/ links in the URE jar Class-Paths are a temporary kludge (and juh.jar had lacked adaption for Mac OS X). Change-Id: I2542d8a582866485dd61c05df3fc6b4b39a8403d
2014-11-27Make osl_getExecutableFile work even without a prior osl_setCommandArgsStephan Bergmann
After 2ad716f406e0fdb9b9294876c64ae92fecbf5e27 "Revert 'pyuno: set up fake command line in getComponentContext(),'" e.g. PythonTest_sw_python would fail on Windows, where WinSalGraphics::GetDevFontList (vcl/win/source/gdi/salgdi3.cxx) calls osl_getExecutableFile and is itself called in a python process where osl_setCommandArgs has not been set up. This patch makes osl_getExecutableFile on all platforms if osl_setCommandArgs has not (yet) been set fall back to the code that was osl_bootstrap_getExecutableFile_Impl (which was called from sal/rtl/bootstrap.cxx, which can now call osl_getExecutableFile). Change-Id: I6c1bb59205041b3208c830a8b8406e28128b4566
2014-11-26Needless indirectionStephan Bergmann
Change-Id: Idf514941f4bb05834d8ac0d7bafbe86e34377611
2014-11-25Adapt some logs and assertionsStephan Bergmann
...cf. previous 2ad716f406e0fdb9b9294876c64ae92fecbf5e27 "Revert 'pyuno: set up fake command line in getComponentContext().'" Change-Id: Ia77132465ada17a5839f9d4f9ccaf20f8b113075
2014-11-25Revert "pyuno: set up fake command line in getComponentContext()"Stephan Bergmann
This reverts commit 2386a92c1e6e8ec263edb4dc4fdcfeaa4673ce1f and its follow-ups 1acaa577b67158c060d2f57414f7aea86504a489 "sal: add special handling of argc==0 to osl_setCommandArgs()" and 01f27b5e5d428cc3c4aeabdcbbb8204494fbd435 "sal: fix osl_setCommandArgs() on WNT." The situation that osl_getCommandArgCount is called without a prior call to osl_setCommandArgs should be considered as harmless and can legitimately not only happen in the pyuno case discussed in the reverted commits, but also in case binary UNO is bootstrapped from within a Java process, as happens in test-javanative in ure/source/uretest/Makefile. Change-Id: I2829db390e37dfe5daeda33a4c0659b7d35e565a
2014-11-24typo: unknownAndras Timar
Change-Id: If89443c1668ca01c826c8fc353b20097c7da7bf4
2014-11-23Erm, setenv, not putenvStephan Bergmann
...so no need to leak an OString (and no need for a static char const *locale, as osl_getProcessLocale calling _imp_getProcessLocale already takes care about that). Change-Id: Ic831415596fe44335a6b12b5d884e781368676b8
2014-11-21Silence false cid#1255391 TOCTOU warningStephan Bergmann
Change-Id: Ifc35c379d5c68fb363ae3507ccb5bff37c8cd9aa
2014-11-21cid#1209049: Unchecked return valueStephan Bergmann
Change-Id: I7422cb010c38de34a7effa6124c5146f70419f79
2014-11-21cid#1255386: Unchecked return valueStephan Bergmann
Change-Id: Id55f27a3e1a35d1c5ebeccdd9a853f661b5c1746
2014-11-20osl_getVolumeInformation: only stat if necessaryStephan Bergmann
...in the hope that that makes cid#706206 (TOCTOU) go away Change-Id: I4bc7b44e0268cf5d46aaf55fb4073dcdf67b324c
2014-11-20sal: fix build with clang and --enable-crashdumpMichael Stahl
Change-Id: I148005489e4ef31b55886c1dd3076650d3a2ec17
2014-11-20At least old Mac OS X does not know AT_FDCWDStephan Bergmann
...lets hope it is actually declared as a macro wherever it is known. Change-Id: If541d02af3ac5d9ad4f0ac1cb4dd9f9f4550a78a
2014-11-20Let attemptChangeMetadata work on symlink itselfStephan Bergmann
Change-Id: I42a81e70e76cb4699052815cfd415a8efd902b03