summaryrefslogtreecommitdiff
path: root/sal/osl/unx
AgeCommit message (Collapse)AuthorFilesLines
2012-09-25replace remaining InterlockedCount() with inlined versionNorbert Thiebaud2-4/+4
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-17Include header with prototypes of defined functionsStephan Bergmann1-2/+3
Change-Id: Ia28c36b1627ef944adecd5c8a55c150bd0f9aa02
2012-09-16export sal init and deinit functionsDavid Tardon1-2/+2
Linking of cppunittester (and any other executable that uses SAL_IMPLEMENT_MAIN or SAL_IMPLEMENT_MAIN_WITH_ARGS) fails otherwise. Change-Id: I778941ab2069819789f96ab04f364ea61cf4a3cb
2012-09-15Include saldllapi.h explicitly where neededStephan Bergmann1-2/+2
Change-Id: I7ba421479cd332e059ed9da1c6090e2df420347e
2012-09-14Adapt for DISABLE_DYNLOADING possibility on AndroidTor Lillqvist2-3/+3
Change-Id: I7fcea698c3d89c5b84b38a708502bcdf4526a614
2012-09-14remove use of SAL_MIN() macroNorbert Thiebaud2-2/+2
Change-Id: Ia91118388240c9a54d010b94aef34ad528ce5761
2012-09-12WaE: unused parameter 'uFlags'Tor Lillqvist1-0/+1
Change-Id: Ifb3569201ea5d96c2ff293bf0f8ba74e6205dc15
2012-09-12Work around some potential problems with thread-unsafe getenvStephan Bergmann3-23/+27
I have seen at least one failure of one of our unoapi tests where soffice.bin crashed in getenv(3). This patch is just a drop in the ocean, though. Change-Id: Iac8a2283b0a62e4fa95a0d063c1676af6c2390be
2012-09-12diagnose.c -> diagnose.cxx (to ease further modification)Stephan Bergmann1-0/+0
Change-Id: I6c050c0cedab6aeed556dc770c3700e6fbbb4731
2012-09-12Simplify osl_searchPath_implStephan Bergmann1-21/+6
Change-Id: I78a97b5a1abbcb7921eba60b8014a21373c0b596
2012-08-27fdo#53855: Use the newly added HAVE_GCC_BUILTIN_ATOMIC for salJung-uk Kim1-11/+13
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: * nCount is needed in else branches after all * tabs -> spaces Change-Id: Iaa39ba9e1ed645819905f0e484fa4f1812271700
2012-08-15-Werror,-Wstrncat-size (Clang towards 3.2)Stephan Bergmann1-3/+3
Change-Id: Ifdf0c47b38621835d6c6fa3a180d78f3f14edabf
2012-08-03sal: let DISABLE_SAL_DBGBOX only disable GUI message boxesMichael Stahl1-4/+0
If DISABLE_SAL_DBGBOX is set, fall back to printing on stderr. Change-Id: Id525b4012291b6b29cca7abcaad7483bc6bfba3b
2012-07-30WaE: comparison is always false due to limited range of data typeTor Lillqvist1-2/+2
Change-Id: I7147d6ab8433976cc0c76620db2a519f306a3fa9
2012-07-25weak symbols don't link on macosxCaolán McNamara1-1/+2
Change-Id: If4e8adfb4199863cd2f6d8d8a419762fcbaa6599
2012-07-25make mips (and others?) pass java extension smoketest with gcj's libjvmCaolán McNamara1-0/+17
i.e. force the __data_start symbol to exist in any executables that link against libuno_sal so that dlopening of the libgcj provided libjvm.so on some platforms where it needs that symbol will succeed. e.g. Debian mips/lenny with gcc 4.3. With this in place the smoketest succeeds with libgcj provided java. Quite possibly also required/helpful for s390x/s390 and maybe some others. Without it the dlopen of libjvm.so will fail with __data_start not found Change-Id: I01a4de3d7e72d000a8d56a1b9101a187c26a1751
2012-07-23Don't use a mutex for gethostbyname_r on Mac OS XArnaud Versini1-5/+20
Change-Id: I5b8c7901266ae73d95626e98116b9a3b43710642
2012-07-16Fix "Same expression on both sides of '|'"Julien Nabet1-1/+1
Change-Id: I8f71f0b20f3f1f41acde05d59a9b94d1ce942a7b
2012-07-14Let's check struct var != NULL before initializing its attributesJulien Nabet1-4/+5
Change-Id: I968292c1c64bcd3dd3d21dfd991c1a31edec8893
2012-07-10single cpu detection: remove 'defined(__SUNPRO_C)' requirementPierre-Eric Pelloux-Prayer1-1/+1
Change-Id: Iab3d103688d07ceea05b257ac012a0292c837a85
2012-07-03coverity: protect against buffer overflowDavid Tardon1-0/+3
Change-Id: Id3b47712ee1457bda5313a0665a9bb34db035cb0
2012-07-03coverity: ensure the string is null-terminatedDavid Tardon1-3/+3
Change-Id: I88040319f931598ca4fa17e440e0dba214109dfa
2012-07-02Remove unused definesThomas Arnhold2-6/+0
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-06-29Remove include guardsThomas Arnhold4-44/+3
Change-Id: Ib4ba76d0083e5bd75cc589a55318089c004f591f
2012-06-29Remove some more include guardsThomas Arnhold1-16/+1
Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
2012-06-22re-base on ALv2 code.Michael Meeks2-47/+28
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-21re-base on ALv2 code.Michael Meeks8-193/+121
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21re-base on ALv2 code.Michael Meeks1-23/+14
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-20Clarify SIGHUP behaviorStephan Bergmann1-2/+1
The combination of marking it as ACT_IGNORE and osl_Signal_Terminate was strange, as osl_Signal_Terminate caused SalMainPipeExchangeSignal_impl (desktop/source/app/officeipcthread.cxx) to call DisableOfficeIPCThread, but ACT_IGNORE (instead of ACT_EXIT, like other signals marked osl_Signal_Terminate) caused the process to continue running. The net effect was that calling an additional soffice instance after a SIGHUP would no longer connect to the first instance, but instead would lead to two soffice instances running simultaneously on the same UserInstallation. Marking SIGHUP as ACT_HIDE most closely resembles the old behavior (of having ~no effect). Other options would be to mark it as ACT_IGNORE and osl_Signal_System or as ACT_EXIT and osl_Signal_Terminate, which would both result in instant termination. I do not know if that wouldn't actually be better. Change-Id: Id1ee7c1108765301e6010e0e05d6c1ff5894a414
2012-06-18fdo#50603: Close fds across a restart of soffice on Mac OS XStephan Bergmann1-0/+32
...where the restart is directly from the old soffice instance, via exec, so the restarted soffice would inherit all open fds from the old one. The easiest approach appears to close fds upon startup. Change-Id: I89bb1c78f3adf2da1cd3cbd58c22df276133a883
2012-06-07The correct comment for the assembly file is "#", not "*".Lionel Dricot1-26/+26
This assembly file is only compiled on x86 Solaris.
2012-05-30Some cppcheck cleaningJulien Nabet1-2/+0
More information on this thread: http://nabble.documentfoundation.org/Advice-needed-about-some-cppcheck-reports-td3986408.html Change-Id: Ib70532ad72e8418e1036bd52c07dc6452508cd12
2012-05-29Some cppcheck cleaningJulien Nabet1-1/+1
see http://nabble.documentfoundation.org/Advice-needed-about-some-cppcheck-reports-td3986408.html Change-Id: I4b3b2c87031ab48641e78fce56bd7f86c606b48b
2012-04-19Revert "Remove unnecessary hack on Linux by using pthread_mutexattr_settype"Arnaud Versini1-0/+6
Build error on tinderboxes.
2012-04-19Remove unnecessary hack on Linux by using pthread_mutexattr_settypeArnaud Versini1-6/+0
2012-04-19Removed obsolete commentStephan Bergmann1-7/+0
2012-04-17More informative warning messageTor Lillqvist1-1/+1
2012-04-05Catch attempts to open /assets files read-write. Improve debugging outputTor Lillqvist1-15/+63
2012-03-28stray debugging lineCaolán McNamara1-1/+0
2012-03-28when run under memcheck allow SIGUSR2 to dump current memory allocationsCaolán McNamara1-3/+42
2012-03-26Add an OSL_TRACE when opening Android /assets filesTor Lillqvist1-0/+2
2012-03-22No point searching PATH on Android and iOSTor Lillqvist1-1/+2
2012-03-21More hacking on static linking (iOS) supportTor Lillqvist2-24/+12
2012-03-16sal: fix warningsMichael Stahl1-2/+2
2012-03-16sal: remove unx implementation of osl_sendResourcePipe/osl_receiveResourcePipeJonathan Adams1-197/+3
These are deprecated and not used in LO.
2012-03-13Use _NSGetExecutablePath also on iOSTor Lillqvist1-5/+1
2012-03-12Fix Android compilation errorTor Lillqvist1-3/+3
2012-03-12module.c -> module.cxx, use sal/log.hxxStephan Bergmann1-35/+27
2012-03-01STAR_ENABLE_FILE_LOCKING was a secretCaolán McNamara1-1/+1
2012-02-24We never call pthread_cancel, so no need to guard against itStephan Bergmann1-67/+3