summaryrefslogtreecommitdiff
path: root/sal
AgeCommit message (Collapse)AuthorFilesLines
2013-07-11Uknown -> UnknownCaolán McNamara1-1/+1
Change-Id: I06d48669804d2ae99c47a0df1ed3c6f45c87a57e
2013-07-06Don't use mach_absolute_time(), it gives time since bootTor Lillqvist1-17/+31
Which definitely is not what we want here. Use clock_get_time() on a CALENDAR_CLOCK instead, that gives time since the Unix epoch. So our osl_getSystemTime() had been completely broken on OS X since May 19 (d8d55787b81cdc955b73c8befa4ab608f46e32aa) and no unit test had noticed... Fairly coincidentally, an assert() introduced yesterday in 4d220882b46d5f8edd4d09e5f66722cd296a092e caught it. Change-Id: Iad76a7aadc39159fdc80c99087bb527d6aa49c66
2013-07-05janitorial / stylisticLionel Elie Mamane1-2/+2
Change-Id: I8e7c1e63ff04220e530662d9a6e142f4f0e7247f
2013-07-05API change: osl/time.h take const pointers where appropriateLionel Elie Mamane2-8/+8
Should be backwards-compatible... Change-Id: I6b04bec2c032ff8c57a1b5192b2d3962dcc96c84
2013-07-05API change: oslDateTime signed yearLionel Elie Mamane1-4/+1
Change-Id: Ic4f1e424b130fd2ccca379adbe0a66836b6cac41
2013-07-05sal: add ERROR_SHARING_VIOLATION to win32 error tableMichael Stahl1-0/+1
It's apparently a popular error; map it to E_ACCES which is the same as the catch-all clause does (for compatibility). Change-Id: I55fd932248a2ecbacd4fd6584e92918da95e3cff
2013-07-01Mark as constTakeshi Abe1-6/+6
Change-Id: Ic71f39aaebf07d3b0435882986be71cf2b0390c2
2013-06-27Translate German comments.Chris Hoppe1-5/+5
Change-Id: Ida59dcca7c9a0305aecddaa68f4e585321144458
2013-06-25coverity #982634 and 5 other : Intentional fallthrough in casesNorbert Thiebaud1-0/+8
Change-Id: Ie6cfcc32c1ff80dab0f9835524c89d40503f69f0 Reviewed-on: https://gerrit.libreoffice.org/4498 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-06-25coverity : #984128 and 21 others : Uninitialized scalar fieldNorbert Thiebaud1-0/+72
Change-Id: If801818c2efc8cdec651ff259243075abac41d20 Reviewed-on: https://gerrit.libreoffice.org/4497 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-06-24coverity#706154 : Destination buffer too smallNorbert Thiebaud1-18/+52
Change-Id: I27bc8803353047a057caaf2353f10cdab08e81e9
2013-06-19Fix warning: Value stored is never readTor Lillqvist1-2/+2
Change-Id: Ic41fe1682f19c39faa0a2afc47c11b8a5bead212
2013-06-19Fix warning: Value stored to 'eEncoding' is never readTor Lillqvist1-1/+0
eEncoding is assigned again a few lines below. Change-Id: Ib475095bab30e0c2f066934a10cda650706c2c8a
2013-06-19Add missing break statementsTor Lillqvist1-0/+3
Found by Clang static analyzer: Value stored to 'prio' is never read. Change-Id: I7c0e90e5435b028f0a4b4bded304338cb57271cc
2013-06-19Delete unused sal testsDavid Ostrovsky12-10038/+0
Change-Id: Iba1eeb8d8fd0582f216b7552dc9ae21b69e66b4e Reviewed-on: https://gerrit.libreoffice.org/4326 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-16Don't use deprecated API for OS X alias resolvingTor Lillqvist1-31/+43
Change-Id: Ifaaec1863f12cd73d0a77c3367935f57675157e2
2013-06-16Indent macxp_resolveAlias() consistentlyTor Lillqvist1-39/+39
Change-Id: I66ab13c4111678f20a09f14126304a0c11116180
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann3-27/+55
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-10mingw64: casting to pointer from narrower integer fixes in salFridrich Štrba4-10/+10
Change-Id: I63321e33f92223be47c7ee25dbf03fe3032991d6
2013-06-06fdo#41226 Add error handling of recursed GetCaseCorrectPathNameEx()Isamu Mogi1-1/+2
GetCaseCorrectPathNameEx() with bCheckExistence = true doesn't support windows share path but occasionally it doesn't return failure and returns broken result. For example, when we call with "\\USER-PC\Users\foo" then it converts the path to "\Users\foo". And when "\Users\foo" exists, it returns "\Users\foo". It is caused by missing error handling of searching for file "\\USER-PC". Also similar bug possibly occurs even for local file path. This commit fixes these bugs. Change-Id: Idf1dd1282510d8a6810ed239a83051bb0f8e2f87 Reviewed-on: https://gerrit.libreoffice.org/4151 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-06-04Don't truncate pointers to 32-bit ints on win64Fridrich Štrba1-1/+1
Change-Id: I5305bf7c82cd3f9f4437de59b53024ef97a7fbc8
2013-05-31rewrite OUString test to not trigger literalalternative plugin warningsLuboš Luňák1-8/+10
Change-Id: Ic359209c44171ab42fa21cd300b433facd3c5ea6
2013-05-20WaE: variable ´res´ set but not usedTor Lillqvist1-0/+1
Change-Id: I5f252f75d22f041c76c7d3cfcdd36f69becf086f
2013-05-20sal osl_getGlobalTimer: Don't confuse start and current time.Mark Wielaard1-4/+2
Change-Id: I575dd70d6b80d4f3279476037e509550cfa23fde Reviewed-on: https://gerrit.libreoffice.org/3979 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-20Also iOS has tm_gmtoffTor Lillqvist1-1/+1
Change-Id: Ic0f883672b4bde3142ac257a57464bdbb90df96b
2013-05-20iOS is based on Mach, tooTor Lillqvist1-7/+7
Change-Id: I9b6bdc374c9e92af754094f31e1ff212fb386f9e
2013-05-20Thread-safe version of osl_getGlobalTimeNorbert Thiebaud4-30/+83
Change-Id: Ibb9d23780600437f607d866ff3d396b96879245d Reviewed-on: https://gerrit.libreoffice.org/3960 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-15Spelling "separate" (etc) correctly is hardTor Lillqvist3-8/+8
2013-05-14Fix syntax errorTor Lillqvist1-1/+1
Change-Id: I161cf0fb2c5bd071a963ece61928efb7938de6c2
2013-05-14Include PID and TID in SAL_DEBUG outputStephan Bergmann1-53/+45
...and clean up log.cxx somewhat. Change-Id: I657cf6c938cafa61959a8dc59c9f95dba5183d9f
2013-05-13clock_gettime requires -lrt at least on Fedora 18Stephan Bergmann1-0/+1
Change-Id: Id01c86517a89dffd560440d333a37eaa80738b56
2013-05-13Use clock_gettime instead of gettimeofday to have more precise timeArnaud Versini1-3/+19
Change-Id: I8e568368e7626789dee21d4823dbedec6257a231 Reviewed-on: https://gerrit.libreoffice.org/3841 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-10soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl1-1/+2
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-06fix typos (wich instead of which)Philipp Riemer1-1/+1
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák5-14/+12
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks29-621/+116
2013-04-26This *is* C codeTor Lillqvist1-1/+1
Change-Id: I4461b7a38862ad2c9861861fad8d6bf4bafd01ab
2013-04-26fdo#63154: Remove all usages of the macro EXTERN_CMarcos Paulo de Souza1-1/+1
Change-Id: I25b7f509ba5d1007a16c84ad05870a8174c094ec Reviewed-on: https://gerrit.libreoffice.org/3621 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-25update pchThomas Arnhold1-0/+70
Change-Id: I67e73438312f2a672e71762ee6707ec5d425bb47
2013-04-24gbuild: drop empty use_packages callsDavid Tardon3-9/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24gbuild: drop uses of removed packagesDavid Tardon2-2/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24move sal_inc headers to include/David Tardon11-812/+0
Change-Id: I840c681b7c500640d3983e05e9895f3fa8bb1313 Reviewed-on: https://gerrit.libreoffice.org/3501 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24move URE headers to include/David Tardon89-29665/+0
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d Reviewed-on: https://gerrit.libreoffice.org/3499 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-22Avoid warnings from compilerplugins/clang/sallogareas.cxxStephan Bergmann1-19/+6
Change-Id: Icce3ffd29398a3488e7704562a4e9064f106b393
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks31-731/+124
2013-04-22Revert "fdo#62096: Replaced some compareTo with =="Fridrich Štrba2-7/+7
This reverts commit dd47994722eaead16099145e593fbf878072d52b.
2013-04-22fdo#62096: Replaced some compareTo with ==Sameer Deshmukh2-7/+7
Change-Id: I1151dafcef91abdb2ce08abe3547a49fe3f4a67c Reviewed-on: https://gerrit.libreoffice.org/3509 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19sal: remove obsolete test/unloadingMatúš Kukan5-1139/+0
Change-Id: I76ede5abd4662aaa2f5b01739da07cf3169ddb69 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-04-19better use SAL_LOG_INFO as triggerBjoern Michaelsen1-1/+1
Change-Id: I37635f9bd86d194b303705a58d81502d7d586692
2013-04-19Add pan gesture handlingTor Lillqvist1-0/+1
I get exactly the same kind of artefacts as in the Android app, which I guess is good as it is at least consistent, as the implementation at the LO layer is identical... Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e