mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 11:58:41 +02:00
![]() 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 - |
||
---|---|---|
.. | ||
i386 | ||
powerpc | ||
x86_64 | ||
bsd.pas | ||
bunxfunch.inc | ||
bunxsysc.inc | ||
osdefs.inc | ||
osmacro.inc | ||
osmain.inc | ||
ossysc.inc | ||
ostypes.inc | ||
readme.txt | ||
suuid.inc | ||
sysctl.pp | ||
sysos.inc | ||
sysosh.inc | ||
system.pp | ||
unxsysch.inc |
{ $Id: readme.txt,v 1.2 2002/10/27 11:58:30 marco Exp $ This file is part of the Free Pascal run time librar~y. Copyright (c) 2000 by Marco van de Voort member of the Free Pascal development team. Filellist and some notes about the *BSD RTL architecture. See the file COPYING.FPC, included in this distribution, for details about the copyright. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. **********************************************************************} *BSD commonly means FreeBSD, OpenBSD and NetBSD, but since Apple's Darwin has a FreeBSD userland, I also add Darwin to it. At least Darwin's userland seems to be compatible enough to be included, despite its internal Mach architecture. Common *BSD files: bsd.pa BSD specific syscall functions bsdmacro.inc The POSIX mode_t (IS_DIR etc) and exit macro's. bsdsysc.inc The base syscalls for *BSD system unit. including a few that are _not_ posix, but still required in the system unit. All routines have a public alias. bsdsysch.inc EXTERNAL declarations for the non-posix calls in bsdsysc.inc (to import them into e.g. Unix) bsdtypes.inc some non POSIX BSD types required for the syscalls and base functions. bsdfuncs.inc POSIX syscalls and functions that are not needed for system. osposix.inc The implementation of unit posix, redirects to libc or bsdtypes.inc (via aliases) osposixh.inc The headers of unit posix. sysctl.pp Some basic sysctl headers, needed for implementation of POSIX functions. sysposix.inc BSD specific part of the implementation i386/syscall.inc The primitives for performing syscalls i386/syscallh.inc Headers to syscall.inc powerpc/syscall.inc likewise for PPC.