summaryrefslogtreecommitdiff
path: root/sal/osl
AgeCommit message (Collapse)Author
2014-05-22WoE: while (..) {} instead of while(..);Douglas Mencken
"warning: suggest a space before ';' or explicit braces around empty body" Change-Id: I71a55cc888d3480217621491ecace7d0af3dca6e Reviewed-on: https://gerrit.libreoffice.org/9441 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-05-22fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTMukhiddin Yusupov
Replaced OSL_ASSERT with SAL_WARN_IF, OSL_TRACE with SAL_INFO Change-Id: Ia2283c09ac702558fe6ad39e963b0f401ef31de0 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-21Default OS X thread stack size too small for -fsanitize=addressStephan Bergmann
...witnessed stack overflow in huge function FunctionMapFactory::createFunctionMap__library_effects__allChildren in workdir/UnpackedTarball/opencollada/COLLADASaxFrameworkLoader/src/generated14/ COLLADASaxFWLColladaParserAutoGen14PrivateFunctionMapFactory.cpp Change-Id: I9451912043e282c8e06aff446cf3d1190f1de9cf
2014-05-20fdo#60338: Introduce osl_createDirectoryWithFlagsStephan Bergmann
...so that utl::TempFile can pass osl_File_OpenFlag_Private and doesn't have to resort to umask (the calls to umask around Directory::create had somewhat erroneously been removed recently with 1d72a0262c4570631d0aa8f98e34e21fb9d6ae42 "Related fdo#60338: Create missing temp file dir with user's original umask," mistaking this for creation of intermediate directories in the hierarchy). On Windows, the flags argument to osl_createDirectoryWithFlags is ignored completely for now. Change-Id: Iac56a5049d579be729a3f338aa62105123edb6cb
2014-05-20Revert "fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT"Stephan Bergmann
This reverts commit 0562a17c64f4016f2d3ba01e1c19c27feadb2543, sal/log.hxx functionality is only available in C++.
2014-05-20fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERTMukhiddin Yusupov
Changed OSL_ASSERT with SAL_WARN_IF Change-Id: Ie81eeb51f6978162abd372f7e9910344a2baaccd Reviewed-on: https://gerrit.libreoffice.org/9401 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-05-20Remove unnecessary castsStephan Bergmann
Change-Id: Iafc7727a22d657dfb6bc97ed767907cce3679364
2014-05-20C string usage improvmentArnaud Versini
Change-Id: I5c59f0d2d1b911ffa1ee251e0f1355d137616493 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-19fdo#60338: Add osl_File_OpenFlag_Private to avoid umaskStephan Bergmann
Change-Id: I293295244d1b089d747548c5025cb73b8ec428a4
2014-05-18error C3861: 'rtl_allocateMemory': identifier not foundMiklos Vajna
Change-Id: Ie1576aba31dbbd067280ba8fa9c5ef095879cbc2
2014-05-15Related: #i124896# Remove Allocator from sal, tooThomas Arnhold
Change-Id: I3b1c7ccb523232433421def6622e2fc75348ec5f
2014-05-15Resolves: #i124896# [API CHANGE] remove obsoleted rtl/allocator.hxxHerbert Dürr
remove obsoleted sal-module-internal custom STL allocator The SAL module avoided the heavy dependency on the stlport4-libraries by using a custom allocator for its internal STL containers. With stlport4 removed these dependencies are gone and the SAL-internal custom allocator is obsoleted. (cherry picked from commit c6e0325df6efce45dbb2616a32b7745c449c6c58) Conflicts: include/osl/diagnose.hxx include/rtl/allocator.hxx sal/osl/w32/procimpl.cxx sal/qa/osl/process/osl_process.cxx sal/rtl/bootstrap.cxx sal/rtl/source/hash.cxx sal/rtl/source/unload.cxx Change-Id: I8515382828eda36aba1fec5f23e0f2a89aef7a33
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-13Related fdo#60338: Restrictive open mode flags for tempfile w/o calling umaskStephan Bergmann
Change-Id: Ia83cbe4c9352eb2a2cf317dd1fc5771ddc12c993
2014-05-13Convert sal/osl/unx/tempfile.c to C++Stephan Bergmann
...for easier future maintenance Change-Id: I501076882daa7f36f414f9fa62f790eb85ac3259
2014-05-13include sal/log.hxx hereMatúš Kukan
Change-Id: Iefcae15eb9f456cde933d49e1c118185883cd27c
2014-05-13osl_openFilePath is internal sal/osl/unx functionalityStephan Bergmann
Change-Id: I14e4d08f209e3d6a444d6c09f9ffb9c178d8731d
2014-05-13All three uses of osl_getFileOSHandle have been removed againStephan Bergmann
...introduced with a64db11b6ca1c0c99937cd99129758dbbe575ac2 "Add some non-public API to be used by SvFileStream" and e541105b45d5da8df296883111194e3a0297a2e7 "Use osl API to access files in the SvFileStream code" but subsequently identified as dead code with ab02fa6552fb098990e74f2787cf02b01c0e532b "callcatcher: update list," 05a8216d03b5db559e01dd1808f2805df31c970a "STAR_ENABLE_FILE_LOCKING was a secret," and 1d3483ed279982278b2f9fb1bab63485523e48c5 "Remove some unused code from unusedcode.easy." Change-Id: I9c8584890270a87e58b8d8021080ffe54bc97b93
2014-05-13osl_openMemoryAsFile is internal, Android-only functionalityStephan Bergmann
Change-Id: I36734b0e5e1c0b15ed4f0845450b444b23579ffe
2014-05-12fdo#43157 Remove OSL_POSTCOND, prefer SAL_WARN_IFMichaël Lefèvre
Change-Id: Ia89a2dce799c7ba90bcd19919195bfd2c7a4a180 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-10remove globally disabled warnings from source filesThomas Arnhold
Change-Id: Ic7b092a24b4d1e48ca11e53b507da5c2bfdeabe8
2014-05-08fix MACOS buildNoel Grandin
after commit 78b9537 "various: sal_Bool->bool" Change-Id: Ia2842ac3c23d629a29edadf2b4699135b4d124ae
2014-05-08various: sal_Bool->boolNoel Grandin
Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9
2014-05-06sal logging: Flush after having written the output.Jan Holesovsky
Makes it possible to see the messages immediately on Windows; otherwise the SAL_DEBUG() etc. is useless as it shows on screen too late. Change-Id: I701922aa4fcacf66d6b044e0badca7ef1f9cac94
2014-04-26this fails to link with mingwDavid Tardon
The error message says "undefined reference to `_imp___Z18_set_se_translatorPFvjP19_EXCEPTION_POINTERSE'". Change-Id: I39d3338a3466fb56dfadbd02af434c0cbf0346e1
2014-04-18Typo: s/shure/sureTor Lillqvist
Change-Id: I1c55d3ee8be06deb6d48a6ad5cd30d170c8b9dbb
2014-04-14typo: independend -> independentThomas Arnhold
2014-04-10It's "its", not "it's"Tor Lillqvist
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-04Clean up unreferenced functionsStephan Bergmann
Change-Id: Id9cb4dbeb6b3313974b881efd6a7c43cb5e314ce
2014-04-04Remove dead interlock code:Stephan Bergmann
* Remove interlck_x86.s leftover from 417c85bf582e0d1dbabb7b0f16d60a394d537e61 "fdo#72598 Remove SunStudio cruft from code base." * osl_isSingleCPU is always 0. Change-Id: I44f633d503af0a033a977e0f812e6bd6e4282fca
2014-04-03C++11-only stdint.h SIZE_MAX -> std::numeric_limitsStephan Bergmann
Change-Id: I6bf80d034490583afa9e51cf720703cdf60a924a
2014-04-03Kill "Portal Demo HACK", whatever it isTor Lillqvist
Change-Id: Ie07576d2d63f4db9acf7ebf09ebd25a4f7bd014b
2014-04-03Kill superfluous vertical whitespaceTor Lillqvist
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
2014-04-02Handle missing SIZE_MAXTor Lillqvist
Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
2014-04-02coverity#1194930 Avoid TOCTOU between access and mkdirStephan Bergmann
Change-Id: I6567313abdacd06b59f7004c970b954a4b42419e
2014-04-02sal/osl/unx/security.c -> .cxxStephan Bergmann
Change-Id: If8dbfa3e26a02ac3d5ee0077f730eeca4b59c4d7
2014-04-01WaE: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0Tor Lillqvist
(When compiling for iOS.) Change-Id: I9f9f5b122c1bfac4ff670a4302fb10b6b82685ac
2014-04-01sal: add aligned memory allocation with malloc for OS X < 10.6Douglas Mencken
Note that posix_memalign is not available everywhere (as are its replacements like memalign). For example, Darwin/OSX <10.6 has neither posix_memalign or memalign. Incorporating changes by Stephan Bergmann <sbergman@redhat.com>. Change-Id: I4a02b40c36d353c2b7a78d0bacb3b14e1f2d94da Reviewed-on: https://gerrit.libreoffice.org/8405 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-31Remove unused inline functionsStephan Bergmann
Change-Id: Ic31f99d6185000660750041065937845d4903bb3
2014-03-25Remove the obsolete functionality originally underlying osl/diagnose.hStephan Bergmann
...before that got rebased onto sal/log.hxx. That functionality is considered an implementation detail, so it should be safe to remove it from the URE interface. As usual, aborting stubs are retained for SONAME stability. Change-Id: If948b9714c26a3871e38dea4d4d5b5466d6ee258
2014-03-25Adapt to sal/log.hxxStephan Bergmann
Change-Id: I9c59495977e111d94077470f07591c91fa3c1665
2014-03-24fdo#56284 : soffice fails to start unless ~/.config exists and is writableMichaël Lefèvre
Try to create $HOME/.config if not present. If present, check that it's a directory with RWX user permission Change-Id: Icef558b2185ad7a7b3518d097f7b62a0b3344083 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-03-19loplugin:passstringbyrefStephan Bergmann
Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
2014-03-07coverity#705404: Argument cannot be negativeNorbert Thiebaud
Change-Id: I235a5323ee0fd60aee03c691c0c7fdf6e6e4c08b
2014-03-07coverity#705824 Dereference before null checkCaolán McNamara
Change-Id: Iaf867d92adcc90d90a03dd8b7a353609934d9115
2014-03-06Bin unused macxp_OSXConvertCFEncodingToIANACharSetName()Tor Lillqvist
Change-Id: I506940fd1b101d2c3f334e8d6608602c259b0a56
2014-03-06coverity#1190345 log failure to set CLOEXEC flagStephan Bergmann
Change-Id: Ia1678200393db0165711d4027f92a8be6b7f4ca5
2014-03-06coverity#1190347 check rename(3) return valueStephan Bergmann
Change-Id: Iebd3b0e1b52a01e14e01c6db1ca158ada91e8613
2014-03-05Bin unused global variableTor Lillqvist
Change-Id: I9bd4ea90638df91122b96f1fb86043c2d770417d
2014-03-05Use the AppleLanguages preference instead of AppleLocale on OS X and iOSTor Lillqvist
AppleLocale is for things like date formats, it seems, while the first entry in AppleLanguages contains the user's preferred UI language. I think that is closer to what we want here. Note that in AppleLanguages, the country (where present) is separated from the language with a hyphen, while in AppleLocale an underscore is used. Change-Id: I6d8a728d53ca6b46e8fcf0e333a6d0aa34abff1d