Commit Graph

22 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
3a5b18e0e4 * string -> shortstring 2023-07-14 20:31:42 +02:00
Michael VAN CANNEYT
1852006c61 * Char -> AnsiChar 2023-07-14 17:26:09 +02:00
magorium
f2fc63aed2 AROS 64bit fixes filehandles #2
Solve crashes when opening, closing and managing files for AROS 64-bit when
filehandles are located in memory > 32-bit by making sure the used file
handles are actually of type BPTR/THandle instead of longint/cardinal
(and stays compatible to AROS 32-bit).
2022-04-29 20:30:17 +00:00
Marcus Sackrow
729d920ed3 AROS: Locks must be BPTR type 2022-03-17 18:05:24 +01:00
marcus
7eba7122d2 AROS: ABIv1 AmigaDOS unit
git-svn-id: trunk@35067 -
2016-12-04 16:58:59 +00:00
marcus
e38e051425 Amicommon: Unified parameterhandling for Amiga, AROS, MorphOS
git-svn-id: trunk@33528 -
2016-04-17 15:31:18 +00:00
marcus
62c4ff0e21 AROS: BackTraceStrFunc for AROS via debug.library, enable with EnableBackTraceStr()
git-svn-id: trunk@33261 -
2016-03-17 19:12:56 +00:00
Károly Balogh
7eb05ba2ab AROS: use BPTR type as filehandle. BPTR is now PtrInt instead of a Pointer, because it's usually not directly referenceable, and that allows interoperability with THandle type
git-svn-id: trunk@31181 -
2015-06-29 23:11:02 +00:00
Károly Balogh
1a53f6a799 AROS: in agreement with Marcus Sackrow, AThreads is now enabled for AROS, and the old AROS-specific threading implementation is zapped
git-svn-id: trunk@31008 -
2015-06-07 18:35:50 +00:00
Károly Balogh
f5bcb011ea amicommon: properly arbitrate access to the open file list in a multithreaded environment
git-svn-id: trunk@30899 -
2015-05-24 12:15:02 +00:00
marcus
ff56b81ad3 AROS: Copy WBArgs to argv so its available for Objpas.ParamStr()
git-svn-id: trunk@30886 -
2015-05-19 16:56:20 +00:00
marcus
ebf9c07f41 AROS: RKM demands a Forbid before reply WBStartupMsg
git-svn-id: trunk@30813 -
2015-05-06 16:44:11 +00:00
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
sergei
3a5e6485b5 - RTL: removed InitVariantManager, it was an empty procedure since day 1.
git-svn-id: trunk@29114 -
2014-11-22 20:35:46 +00:00
marcus
34a726b89d AROS: hooked the new debug stuff into the AROS RTL, to be compatible with MorphOS and Amiga
git-svn-id: trunk@28703 -
2014-09-21 17:05:48 +00:00
marcus
8ec15cb6ba AROS: some bugfixes for threading
git-svn-id: trunk@28684 -
2014-09-17 15:19:40 +00:00
marcus
980abaa9ba AROS: introduced threading without additional library
git-svn-id: trunk@28682 -
2014-09-16 19:32:56 +00:00
marcus
85700afd0d AROS: StdErrout introduced, string fixes, preparations for threading
git-svn-id: trunk@28602 -
2014-09-05 18:45:00 +00:00
Károly Balogh
ef5f1b7ed2 amicommon: fixed sysdir.inc/do_chdir() to actually work on AROS
- fixed all Amiga-like system units to not leak the last directory
  lock while changing back to the original dir in System_exit;
  (a bug found by Marcus Sackrow, thanks!)
* renamed AOS_origDir to ASYS_origDir

git-svn-id: trunk@28537 -
2014-08-30 00:58:42 +00:00
Károly Balogh
785a1690a2 amicommon: AOS_heapPool renamed to ASYS_heapPool. common stuff should start with ASYS, to avoid confusion on AmigaOS, so more to come
git-svn-id: trunk@28533 -
2014-08-28 21:50:05 +00:00
Károly Balogh
65f13ac118 amicommon: a common Amiga RTL implementation based on the current AROS one, and made AROS port to use it
git-svn-id: trunk@28507 -
2014-08-21 22:33:07 +00:00
Károly Balogh
4179e8812d AROS: initial RTL, based on the work by Marcus Sackrow. this is enough to have a working native compiler. contains duplicated code from the Amiga and MorphOS RTLs, but the three Amiga variants will be merged soon, and then it will go away.
git-svn-id: trunk@28445 -
2014-08-18 16:42:02 +00:00