fpc/rtl/emx
svenbarth 2d454dc8fa Move DynLibs support to System unit using a manager approach like for Threads, WideStrings, etc.. This is needed so that we can support features like "delayed" and loading of dynamic packages.
Each port that allows the usage of dynamic libraries should call InitSystemDynLibs during initialization of the System unit.
The DynLibs unit has been adjusted to be a forwarder for the functions that now reside in the System unit (for backwards compatiblity just in case). Additionally the unit will register the DynLibsManager if it doesn't reside in the System unit anyway.
Currently only the Windows targets (Win32, Win64 and WinCE) implement the DynLibsManager inside the System unit. For other systems using the LoadLibrary, etc. functions will lead to a run error/exception.
If a port wants to implement its own DynLibsManager then it needs to define DISABLE_NO_DYNLIBS_MANAGER. TLibHandle, NilHandle and optionally TOrdinalEntry (it's set to SizeUInt otherwise) should be defined in sysdlh.inc which needs to be enabled using the define FPC_SYSTEM_HAS_SYSDLH (because there are targets which have FEATURE_DYNLIBS enabled, but don't support them... e.g. powerpc-wii -.-).
The DynLibsManager contains methods for loading a library based on a RawByteString and based on a UnicodeString. BOTH should be implemented, but internally one can forward to the other.
The loading by ordinal *can* be be implemented. If it is set to Nil then the implementation of GetProcAddress(lib,ordinal) will return Nil.

+ new functions SetDynLibsManager and GetDynLibsManager to set and retrieve the current DynLibsManager
* provide interface of DynLibs unit in unit System

git-svn-id: trunk@29613 -
2015-02-03 20:00:00 +00:00
..
dos.pas + unicodestring support for assign/erase/rename 2013-07-19 16:30:51 +00:00
emx.imp
emx.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
emxwrap.imp
Makefile * version updated to 3.1.1 2015-01-04 21:09:04 +00:00
Makefile.fpc + new unit providing access to additional OS/2 API functions from DOSCALL1.DLL available in newer OS/2 versions (WSeB/MCP/eCS) - currently additional 64-bit file handling not used directly in RTL; mostly file locking related now; dynamically loaded and simulated under older OS/2 versions to allow executables using them to run on older OS/2 versions 2014-10-21 17:29:05 +00:00
ports.pas * log and id tags removed 2005-05-21 09:42:41 +00:00
prt0.as
prt1.as
rtldefs.inc + FPCRTL_FILESYSTEM_SINGLE_BYTE_API define that is set for targets where we 2013-06-27 21:37:39 +00:00
sysdir.inc * allow trailing backslash in SetCurrentDir and ChDir 2014-01-21 00:42:16 +00:00
sysemx.pas
sysfile.inc * Reset filerec mode field to fmClosed if the system call to open the file failed 2014-11-23 21:49:29 +00:00
sysheap.inc * Convert heap to ptruint. 2007-07-04 19:46:47 +00:00
sysos.inc * remove $Log 2005-06-07 09:47:55 +00:00
sysosh.inc * remove $Log 2005-06-07 09:47:55 +00:00
system.pas Move DynLibs support to System unit using a manager approach like for Threads, WideStrings, etc.. This is needed so that we can support features like "delayed" and loading of dynamic packages. 2015-02-03 20:00:00 +00:00
systhrd.inc * avoid range error for sem_indefinite_wait - fix for web bug #18263 (EMX target) 2010-12-19 15:38:54 +00:00
sysutils.pp * rawbytestring/unicodestring versions of findfirst/findnext/findclose 2013-08-19 22:04:25 +00:00