summaryrefslogtreecommitdiff
path: root/sal/osl
AgeCommit message (Collapse)Author
2012-01-31Regroup DragonFly and NetBSD configurationsFrançois Tigeot
2012-01-31Remove unused endianess definesFrançois Tigeot
2012-01-29_POSIX_THREAD_SYSCALL_SOFT serves no purposeFrançois Tigeot
2012-01-27WaE: Unused parameterTor Lillqvist
2012-01-25NetBSD also needs the internal gethostbyname_r() implementationFrançois Tigeot
Reported by: Thomas Klausner <wiz@NetBSD.org>
2012-01-24Use own own <osl/file.h> API to read the source in osl_copyFile()Tor Lillqvist
It seems that we call osl_copyFile() to copy from /assets on Android in some cases.
2012-01-24Bin incorrect claim in commentTor Lillqvist
2012-01-24android: initialize security data, and use HOME / bootstrap keyMichael Meeks
2012-01-23android: get osl_Pipe creation sorted out, before we kill it.Michael Meeks
use new OSL_SOCKET_PATH bootstrap variable to customise this.
2012-01-23Don't crash when attempting to open non-existent files under /assetsTor Lillqvist
2012-01-21android: remove nonsensical write to file buffer during readLineMichael Meeks
also expose in-memory file method for unit testing.
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2012-01-20Implement osl_identicalDirectoryItem for win32Michael Meeks
2012-01-19implement inode compare for identical directory item checkingMichael Meeks
2012-01-19fix SvStream to not require a custom open or lstat method.Michael Meeks
2012-01-19fix SvStream to not disagree with sal on sizeof struct statMichael Meeks
A temporary tweak to restore build-ability; the oslDirectory change needs a little more thought & public exposure, but rsc no longer crashes during compile ...
2012-01-18Add some non-public API to be used by SvFileStreamTor Lillqvist
Having SvFileStream call the file opening etc functions here, instead of calling open() directly itself, means we won't have to duplicate the Android .apk hooks there, too.
2012-01-11fix prefix of command line switches (-- instead of -)Andras Timar
2012-01-06valgrind: error on startup in osl_unmapMappedFileCaolán McNamara
2012-01-05sal: try to fix MinGW min/max breakage by inliningMichael Stahl
2012-01-05reduce ifdef forestCaolán McNamara
2012-01-04Remove bogus one column indentationTor Lillqvist
2012-01-04Handle /assets paths also in realpath_u()Tor Lillqvist
2012-01-04Probably using a local rtl::OString is betterTor Lillqvist
2012-01-04Use the lo_apk_* functions for files under /assetsTor Lillqvist
2012-01-04Use sizeof(s)-1 instead of strlen(s) on string literalsTor Lillqvist
2012-01-03WaE: deprecated conversion from string constant to 'char*'Tor Lillqvist
2012-01-02Fix for fdo43460 Part XXVII getLength() to isEmpty()Olivier Hallot
Please find attached a partial fix for Easy Hack FDO43460 Part XXVII Modules padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
2011-12-21use the internal gethostbyname_r() implementation on OpenBSD tooRobert Nagy
2011-12-21osl_unmapFile can't work for files bundled inside the .apk on AndroidTor Lillqvist
On Android, when an app is installed, arbitrary files bundled in the app won't be unpacked into actual separate files in the file system. They will exist only as archive entries in the .apk file (which is a zip archive). The SDK tooling puts such files under the /assets folder in the .apk. The LibreOffice bootstrapping code for Android maps the .apk file into memory. osl_openFile() knows about the /assets special case, and uses a separate abstraction for such memory-mapped files. Obviously, when producing an .apk, one needs to make sure these bundled files are not compressed, if one wants to be able to use them directly from the memory-mapped .apk file. We do that in our test and sample Android projects. When mapping such files under /assets , just return a pointer to the file's location inside the mapped .apk archive. We can't use the old osl_unmapFile() on such mapped files, as that would unexpectedly unmap fairly arbitrary pages of the .apk mapping, wreaking havoc on later use of the same pages. So, introduce a new osl_unmapMappedFile() function that takes also the oslFileHandle originally passed to osl_mapFile(). Use this instead in the few places where the code actually called osl_unmapFile(). Make sure osl_mapFile() is nonexistent on Android.
2011-12-21Bin leftover unused filesTor Lillqvist
2011-12-20Fix compiler warnings for AndroidTor Lillqvist
2011-12-19Clean up previous commit.Stephan Bergmann
2011-12-19fdo#43095: allow the use of real access() callsMoritz Bechler
2011-12-19Warning clean-up (Mac OS X).Stephan Bergmann
2011-12-19At least GCC 4.5.1 does not allow #pragma GCC diagnostic inside functions.Stephan Bergmann
2011-12-19-Werror=shadow and -Werror=sign-promo fixesStephan Bergmann
2011-12-19sal: add visibility symbolsMatúš Kukan
2011-12-19sal: convert to gbuildMatúš Kukan
2011-12-13Bin a few lines of weird crackTor Lillqvist
2011-12-07|| -> &&Caolán McNamara
2011-12-07Don't replace getpid on Linux when the system version is correctArnaud Versini
2011-12-06normalize Red Hat, Inc. spellings, and bump to latest templateCaolán McNamara
2011-12-05lp#726529: inline arm assembler is obsolete by nowBjoern Michaelsen
2011-12-05ChildStatusProc needs to be extern "C".Stephan Bergmann
2011-12-02Improve ChildStatusProc diagnostics.Stephan Bergmann
2011-11-30Android code refactorig and hackingTor Lillqvist
Sorry for the large unstructured commit. But hey, the Android code is experimental so far. Extract the native lo-bootstrap code into a fairly normal library built in sal. (Previously it was the JNI part of the "Bootstrap" app.) Just linkink normally to liblo-bootstrap from C++ code that uses it works fine, no need to do a dlsym lookup. Bootstrap is still a subclass of NativeActivity and can thus still be used as an "app" (to start unit tests, or whatever), but can also be used from some other app's Java code to just get access to the lo-bootstrap native methods. Introduce a new top-level "module", android, for Bootstrap and the experiments with DocumentLoader. Note that the experimental DocumentLoader app still crashes. It can't create the com.sun.star.frame.Desktop instance. I spent lots of time debugging in the painfully inadequate ndk-gdb. (Even the newer gdb build from the "mingw-and-ndk" project is quite crappy in many ways.) I should really experiment with corresponding code on a normal platform first before even trying on Android. Basically, I think that if I just can get the concept of Java code that instantiates and uses LO components *in-process* working on a normal desktop platform, it should work on Android, too.
2011-11-29Refactor, make lo-bootstrap API usable from non-NativeActivity apps tooTor Lillqvist
2011-11-29Construct a .jar for use by future other Android-specific Java code, tooTor Lillqvist
2011-11-27remove include of pch header from salNorbert Thiebaud