summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2014-04-14update_pchThomas Arnhold1-0/+1
Change-Id: I099bff66a7796a5cf18e37e445467bdfb33de602
2014-04-14typo: independend -> independentThomas Arnhold1-1/+1
2014-04-11Fix boundsStephan Bergmann1-1/+1
Change-Id: I61ce5563d90bb2cf8d186586f15ef4318acdc963
2014-04-10It's "its", not "it's"Tor Lillqvist3-3/+3
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-04Clean up unreferenced functionsStephan Bergmann13-54/+143
Change-Id: Id9cb4dbeb6b3313974b881efd6a7c43cb5e314ce
2014-04-04Remove dead test codeStephan Bergmann15-2409/+3
Change-Id: Id03246fa9eefce718c36d73f84875f26d58caeba
2014-04-04Fix ASCII-only checkStephan Bergmann1-14/+20
...which did not work e.g. for broken single-byte input 0x80. Change-Id: I4dff41e4f18dfce376695b438004c2af853cf4fa
2014-04-04Remove dead interlock code:Stephan Bergmann4-166/+20
* 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 Bergmann1-18/+21
Change-Id: I6bf80d034490583afa9e51cf720703cdf60a924a
2014-04-03Properly cover in #ifdef TIMETESTSStephan Bergmann1-0/+2
Change-Id: Iff8f992e5260150b9ba108698b506f5a9ec7dea2
2014-04-03Kill "Portal Demo HACK", whatever it isTor Lillqvist1-29/+1
Change-Id: Ie07576d2d63f4db9acf7ebf09ebd25a4f7bd014b
2014-04-03Kill superfluous vertical whitespaceTor Lillqvist138-1787/+0
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
2014-04-03Use boost::noncopyableStephan Bergmann1-5/+1
Change-Id: Ifeee0632f6e163037bea9ba2ee8d19f050f9a212
2014-04-02Handle missing SIZE_MAXTor Lillqvist1-0/+3
Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
2014-04-02coverity#1194930 Avoid TOCTOU between access and mkdirStephan Bergmann1-8/+18
Change-Id: I6567313abdacd06b59f7004c970b954a4b42419e
2014-04-02sal/osl/unx/security.c -> .cxxStephan Bergmann2-6/+6
Change-Id: If8dbfa3e26a02ac3d5ee0077f730eeca4b59c4d7
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann4-18/+18
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01WaE: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0Tor Lillqvist1-1/+1
(When compiling for iOS.) Change-Id: I9f9f5b122c1bfac4ff670a4302fb10b6b82685ac
2014-04-01sal: add aligned memory allocation with malloc for OS X < 10.6Douglas Mencken1-4/+15
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 Bergmann1-56/+0
Change-Id: Ic31f99d6185000660750041065937845d4903bb3
2014-03-31coverity#983373 Dereference before null checkCaolán McNamara1-3/+1
Change-Id: Ie2a6b5e71f76ff2900ff078fcc098e66927458ef
2014-03-31Missing dependencyStephan Bergmann1-0/+4
Change-Id: I4e2444113871376c5ba134c523752e08812e70d9
2014-03-31Move invariant writes outside loopStephan Bergmann1-2/+2
Change-Id: Ia254fe382a00be13a631fcc1b23f940352d8d3ba
2014-03-30decorate tempfile name's to help identify leaks' authorNorbert Thiebaud1-0/+37
unottols TempFile class check in debug bod for and env variable LO_TESTNAME.. if present it use that as the root for the tempfile filename. cppunitteset framework is augmented so that it export such LO_TESNAME using the cppunit testName(), after replacement of non-alphnum characters by _ Change-Id: Iebb9545d3bd789083afbeaf4c64eab086b56049a
2014-03-29typo: inteface -> interfaceThomas Arnhold1-1/+1
2014-03-28coverity#705205 Missing break in switchCaolán McNamara1-0/+1
Change-Id: Iaee3b73ceed5df9928514e55d00ac6292b8b2249
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann18-257/+257
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-25Remove the obsolete functionality originally underlying osl/diagnose.hStephan Bergmann5-456/+37
...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 Bergmann1-23/+7
Change-Id: I9c59495977e111d94077470f07591c91fa3c1665
2014-03-24fdo#56284 : soffice fails to start unless ~/.config exists and is writableMichaël Lefèvre1-3/+31
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-23WaE: unused variablesTor Lillqvist1-6/+9
Change-Id: Ieac3cd6bf9ef883cbc3b295e25867a76ac68b88f
2014-03-23sal: add boost for rt_digest testsTomaž Vajngerl1-0/+2
Change-Id: Icced4134ecaa4ac2b3ae90253a4e91f1ea613669
2014-03-23sal: Add rtl_digest_SHA1 which shows wrong sha1 calculationTomaž Vajngerl1-0/+50
This test shows wrong sha1 calculation after 52 bytes of input data. For now this test is commented. Change-Id: Id6df40ecc4059d4a4f9e1646a2c1bb7242f4cf69
2014-03-23sal: Rewrite digest tests to be simpler, enable them in checkTomaž Vajngerl3-1268/+246
Change-Id: I610e615be498237e5cd9dd963bca60c7f8f62aac
2014-03-19loplugin:passstringbyrefStephan Bergmann1-2/+2
Change-Id: I461db4b173dcdc812d3ccc5e3eef8a3dad93b0b0
2014-03-19coverity#984119 Uninitialized pointer fieldCaolán McNamara1-2/+7
Change-Id: I6bbb181b892f22d05be76fc75506d94543eb7ee7
2014-03-17sal,toolkit,unotools: prefer passing OUString by referenceNoel Grandin2-13/+13
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
2014-03-11"overflow" is one wordTor Lillqvist1-5/+5
Change-Id: Ib36c2c5d55f86aff27081a0da554f6e8a81474ee
2014-03-10coverity#1079286 Uninitialized pointer fieldCaolán McNamara1-2/+10
Change-Id: Iaaab025a97d01b248f4478989d6cdfdc8664ba79
2014-03-07coverity#705404: Argument cannot be negativeNorbert Thiebaud1-5/+7
Change-Id: I235a5323ee0fd60aee03c691c0c7fdf6e6e4c08b
2014-03-07coverity#705824 Dereference before null checkCaolán McNamara1-2/+1
Change-Id: Iaf867d92adcc90d90a03dd8b7a353609934d9115
2014-03-07coverity#982463 Dereference after null checkCaolán McNamara1-0/+1
Change-Id: I46cbcb4091428557c8f9516e15c9be0eb4db27b2
2014-03-06Bin unused macxp_OSXConvertCFEncodingToIANACharSetName()Tor Lillqvist1-20/+0
Change-Id: I506940fd1b101d2c3f334e8d6608602c259b0a56
2014-03-06coverity#1190345 log failure to set CLOEXEC flagStephan Bergmann1-1/+5
Change-Id: Ia1678200393db0165711d4027f92a8be6b7f4ca5
2014-03-06coverity#1190347 check rename(3) return valueStephan Bergmann1-11/+5
Change-Id: Iebd3b0e1b52a01e14e01c6db1ca158ada91e8613
2014-03-05Bin unused global variableTor Lillqvist1-3/+0
Change-Id: I9bd4ea90638df91122b96f1fb86043c2d770417d
2014-03-05Use the AppleLanguages preference instead of AppleLocale on OS X and iOSTor Lillqvist1-2/+2
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
2014-03-04coverity#706154 is about call to strcpy, not osl_ProfileGenerateExtensionStephan Bergmann1-9/+4
...and the call to strcpy isn't even necessary. This includes a revert of 430237b3fa16bda228ff82b93228f28894568671 "coverity#706154: Dest buffer too small." Change-Id: I51186da6e7d80438b01d49e24a1fa47877078516
2014-03-04Fix CppunitTest_sal_osl_profileStephan Bergmann1-31/+12
Change-Id: Ie66636881a2e4c754bd95f9d1d72e0b4fc2828df
2014-03-04sal/osl/unx: profile.c -> profile.cxx (to facilitate further fixes)Stephan Bergmann2-7/+7
Change-Id: I3de66f499d20e7765b530890f746ccfe322252ac