Commit graph

246 commits

Author SHA1 Message Date
Tor Lillqvist
e3ab0fd901 osl_unmapFile can't work for files bundled inside the .apk on Android
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-21 14:08:48 +02:00
Tor Lillqvist
7904a8cc56 I don't see NO_BSYMBOLIC being used anywhere 2011-12-11 02:57:59 +02:00
Norbert Thiebaud
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
Norbert Thiebaud
06483141ed remove include of pch header from store 2011-11-27 13:23:56 -06:00
Norbert Thiebaud
e4610ffd2d remove PCH support in dmake-module 2011-11-27 12:26:12 -06:00
Tor Lillqvist
4db5ea1ed7 Deliver libstore.so for Android 2011-11-10 02:10:59 +02:00
Thomas Arnhold
be6a8677a6 OSL_TRACE: Remove trailing newlines
Done with perl regex:
s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs;

- removed trailing whitespaces and (multiple) newlines
2011-09-21 09:28:39 +02:00
Pierre-André Jacquod
6f94c644c3 [cppchecker] suppression of unread Variable 2011-09-06 22:40:50 +02:00
Tor Lillqvist
af61542cb8 Deliver also static libstore 2011-08-08 21:20:50 +03:00
Tor Lillqvist
c55545bd95 Drop duplicate 2011-06-18 16:58:17 +03:00
Tor Lillqvist
eb3486268f Just make -lstore work for MinGW as it does for other Unix-style compilers
I don't really see the point in having the UDK_MAJOR in the import
library name. We don't do that for any Unix either, just -lstore is
used. It isn't as if it would make any sense in keeping a mix of
(import) libraries for incompatible versions/builds of the LO (SDK) in
the same location anyway. The simpler, the better.
2011-06-18 16:58:17 +03:00
Tor Lillqvist
7862e397af Drop %_EXT% which was always empty 2011-06-03 13:28:35 +03:00
Tor Lillqvist
04b47c97e4 Use special DLL and library name just for MSC 2011-05-25 01:25:44 +03:00
Jan Holesovsky
4be7cca60b Merge commit 'ooo/DEV300_m103'
Conflicts:
	codemaker/source/bonobowrappermaker/corbaoptions.cxx
	codemaker/source/cppumaker/cppuoptions.cxx
	codemaker/source/cunomaker/cunooptions.cxx
	codemaker/source/idlmaker/idloptions.cxx
	codemaker/source/javamaker/javaoptions.cxx
	cppu/source/typelib/typelib.cxx
	idlc/source/options.cxx
	offapi/com/sun/star/util/PathSubstitution.idl
	offapi/drafts/com/sun/star/form/ListEntryEvent.idl
	offapi/drafts/com/sun/star/form/XBindableValue.idl
	offapi/drafts/com/sun/star/form/XListEntryListener.idl
	offapi/drafts/com/sun/star/form/XListEntrySink.idl
	offapi/drafts/com/sun/star/form/XListEntrySource.idl
	offapi/drafts/com/sun/star/form/XValueBinding.idl
	registry/tools/checksingleton.cxx
	registry/tools/options.hxx
	registry/tools/regcompare.cxx
	registry/tools/regmerge.cxx
	sal/cppunittester/cppunittester.cxx
	sal/osl/unx/socket.c
	sal/osl/w32/diagnose.c
	sal/prj/d.lst
	sal/rtl/source/alloc_fini.cxx
	sal/rtl/source/alloc_global.c
	sal/rtl/source/makefile.mk
2011-03-23 16:59:59 +01:00
Thomas Arnhold
95012b599b Remove RCS information 2011-02-01 18:22:56 +01:00
Gert Faller
ab1751a151 RTL_CONSTASCII_USTRINGPARAM in ure 2 2010-12-10 18:54:29 +01:00
Gert Faller
3a18c3d97a RTL_CONSTASCII_USTRINGPARAM in ure 1 2010-12-10 18:31:39 +01:00
Matthias Huetsch [mhu]
219fe91ce2 Update from sibling repository. 2010-11-25 16:04:27 +01:00
Matthias Huetsch [mhu]
bb4f6eede9 #i115784# store: fix memory errors uncovered by valgrind and other tools. 2010-11-25 14:18:45 +01:00
Caolán McNamara
da5cef0ab4 add modelines to .h and .c files as well 2010-10-27 16:04:46 +01:00
Povilas Kanapickas
c189268e0a remove non-compiled code 2010-10-18 16:25:47 +01:00
Kenneth Venken
0196e3b7eb use SAL_N_ELEMENTS macro 2010-10-17 00:04:57 -05:00
Sebastian Spaeth
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
Petr Mladek
bcdb4cc866 more removed include guards using fixguard.py 2010-10-05 18:12:52 +02:00
Petr Mladek
334bef4563 remove include guards using fixguard.py 2010-10-05 18:12:51 +02:00
Matthias Huetsch [mhu]
0ecedc1be8 Update from master repository (DEV300_m76). 2010-04-09 16:11:26 +02:00
Matthias Huetsch [mhu]
2812fa1b8e Update from master repository (DEV300_m75). 2010-03-22 17:02:50 +01:00
Jens-Heiner Rechtien
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Matthias Huetsch [mhu]
6d03994e21 mhu22: resync to master repository (DEV300_m73). 2010-03-04 19:36:24 +01:00
Matthias Huetsch [mhu]
709ee7e9b0 mhu22: #i105430# #i108349# Fixed registry:ORegKey reference counting to avoid redundant closeKey()/flush() calls. 2010-03-04 15:19:41 +01:00
Matthias Huetsch [mhu]
eb4c085971 #i108349# Added missing statement (compiler warning). 2010-01-18 16:09:06 +01:00
Matthias Huetsch [mhu]
a064da5efa Update from master repository (to m67). 2009-12-09 19:54:38 +01:00
Matthias Huetsch [mhu]
98e1ea0d79 #i71568# #i108349# Fixed copyright header. 2009-12-09 19:34:40 +01:00
Matthias Huetsch [mhu]
4fc9020033 Fixed copyright header. 2009-12-09 19:34:40 +01:00
Matthias Huetsch [mhu]
28f980a359 Fixed copyright headers. 2009-11-13 16:09:43 +01:00
Matthias Huetsch [mhu]
00075d74ee #i71568# #i108349# Simplified block (page) allocation. 2009-11-13 16:03:20 +01:00
Matthias Huetsch [mhu]
eda892d102 #i71568# Simplified block (page) allocation. 2009-11-13 16:03:20 +01:00
Matthias Huetsch [mhu]
5243a9ef4e #i71568# #i108349# Remove unnecessary flush(), more cleanup. 2009-11-10 15:55:03 +01:00
Matthias Huetsch
cb64816b16 #i71568# Remove unnecessary flush(), more cleanup. 2009-11-10 15:55:03 +01:00
Caolán McNamara
c386a69ea7 cmcfixes66: #i106675# silence gcc's memset warning on 0 len when the len really is 0 2009-11-06 11:12:51 +00:00
Matthias Huetsch [mhu]
d886d389f1 #i71568# #i108349# Remove unused StateBlock code. 2009-11-02 19:09:43 +01:00
Matthias Huetsch
acad6899db #i71568# Remove unused StateBlock code. 2009-11-02 19:09:43 +01:00
Matthias Huetsch [mhu]
aa4b05bffb #i71568# #i108349# Remove unused range locking code. 2009-10-29 16:00:34 +01:00
Matthias Huetsch
38370b7cc6 #i71568# Remove unused range locking code. 2009-10-29 16:00:34 +01:00
Matthias Huetsch [mhu]
a72cabcec6 #i71568# #i108349# simplified C++ wrapper inline implementation. 2009-10-27 16:57:01 +01:00
Matthias Huetsch
e656ee2d01 #i71568# simplified C++ wrapper inline implementation. 2009-10-27 16:57:01 +01:00
Oliver Bolte
b76cb86eaa CWS-TOOLING: integrate CWS mhu20
2009-09-01 15:18:43 +0200 mhu  r275662 : #i32526# Fixed missing includes, and a wrong cast
2009-08-28 13:30:05 +0200 mhu  r275530 : #i32526# Fixed missing includes and remaining merge conflicts.
2009-08-28 13:28:45 +0200 mhu  r275529 : #i32526# osl_readLine() now implemented in sal/osl/<platform>/file.cxx
2009-08-26 19:47:53 +0200 mhu  r275445 : CWS-TOOLING: rebase CWS mhu20 to trunk@275331 (milestone: DEV300:m56)
2009-08-25 15:47:00 +0200 mhu  r275365 : #i32526# Also maintain phys. file offset.
2009-08-25 15:24:56 +0200 mhu  r275364 : #i32526# Added buffered file I/O; refactored file.cxx into multiple files.
2009-08-24 10:38:15 +0200 mhu  r275294 : #i32526# Correct OpenFlags for osl_openFile().
2009-05-25 11:07:34 +0200 mhu  r272225 : #i32526# Added support for non-seekable file handles (pipe et al.).
2009-05-25 11:01:50 +0200 mhu  r272223 : #i32526# Add osl_readLine() test, cleanup obsolete tests.
2009-05-25 10:56:14 +0200 mhu  r272221 : #i32526# Add missing include
2009-05-25 10:48:51 +0200 mhu  r272220 : #i32526# Accept OpenJDK (IcedTea6) 1.6.0_0 version string
2009-05-15 19:18:20 +0200 mhu  r271965 : #i32526# Initial osl/unx buffered file I/O implementation.
2009-05-15 17:41:57 +0200 mhu  r271959 : CWS-TOOLING: rebase CWS mhu20 to trunk@271830 (milestone: DEV300:m48)
2009-03-26 17:28:53 +0100 mhu  r270091 : CWS-TOOLING: rebase CWS mhu20 to trunk@270033 (milestone: DEV300:m45)
2009-09-09 09:38:41 +00:00
Release Engineers
12f5facfa7 CWS-TOOLING: integrate CWS mingwport18
2009-03-27 12:51:41 +0100 tono  r270150 : CWS-TOOLING: rebase CWS mingwport18 to trunk@270033 (milestone: DEV300:m45)
2009-03-26 22:41:14 +0100 tono  r270120 : files with invalid names removed
2009-03-26 22:40:11 +0100 tono  r270119 : files with invalid names removed
2009-03-26 22:39:04 +0100 tono  r270118 : files with invalid names removed
2009-03-26 22:36:00 +0100 tono  r270117 : files with invalid names removed
2009-03-26 22:33:42 +0100 tono  r270116 : files with invalid names removed
2009-03-26 22:32:14 +0100 tono  r270115 : files with invalid names removed
2009-03-26 22:24:41 +0100 tono  r270114 : files with invalid names removed
2009-03-26 22:16:41 +0100 tono  r270113 : files with invalid names removed
2009-03-26 22:15:52 +0100 tono  r270112 : files with invalid names removed
2009-03-26 22:14:44 +0100 tono  r270111 : files with invalid names removed
2009-03-26 22:12:28 +0100 tono  r270110 : files with invalid names removed
2009-03-26 21:46:31 +0100 tono  r270109 : files with invalid names removed
2009-03-22 12:41:21 +0100 tono  r269847 : i#100463: MinGW port header patch enhancement
2009-03-22 12:39:39 +0100 tono  r269846 : i#100462: MinGW port update for python
2009-03-22 12:37:52 +0100 tono  r269845 : i#100461: MinGW port fix for store/workben
2009-03-22 12:36:10 +0100 tono  r269844 : i#100460: MinGW port fix for sal when debug=true
2009-03-21 01:06:50 +0100 tono  r269833 : i#100210: MinGW port fix for hunspell-1.2.8
2009-03-21 01:04:08 +0100 tono  r269832 : i#100209: MinGW port fix for sspi
2009-04-10 09:52:21 +00:00
Ivo Hinkelmann
423409561c CWS-TOOLING: integrate CWS cmcfixes56
2009-03-26 14:46:13 +0100 cmc  r270080 : #i100517# merge changes of locales32 to match
2009-03-26 14:31:32 +0100 cmc  r270079 : #i100517# add some brackets and remove stray ;
2009-03-25 13:30:36 +0100 cmc  r270021 : #i100503# make tralay work again
2009-03-25 10:13:35 +0100 cmc  r269999 : #i100536# remove last unused method
2009-03-24 15:13:50 +0100 cmc  r269955 : #i100517# fix straight-forward warnings
2009-03-24 14:36:37 +0100 cmc  r269947 : #i100469# keep ia64 and arm alignments after fork-exec to signal change, but hackaround for arm to keep userlevel qemu-arm working
2009-03-24 14:02:27 +0100 cmc  r269943 : #i100223# make stl headers warning free for extra gcc 4.3 warnings
2009-03-24 13:58:15 +0100 cmc  r269942 : #i100504# drawinglayer is warning free on ix86 linux
2009-03-24 13:56:15 +0100 cmc  r269940 : #i100469# keep ia64 and arm alignments after fork-exec to signal change
2009-04-01 13:20:55 +00:00
Release Engineers
ad6387ed0a #i10000# additional files for mhu17 2009-03-20 15:07:51 +00:00