svenbarth
c26348a3dd
* follow up to r42457: FreeTerminateProcs needs to be called before DoneExceptions just in case an exception is triggered due to a corrupted list
...
git-svn-id: trunk@42461 -
2019-07-20 08:41:59 +00:00
svenbarth
176a63b67b
* fix for Mantis #35862 : free the list of functions added with AddTerminateProc to avoid memory leaks
...
+ added test
git-svn-id: trunk@42457 -
2019-07-19 15:55:21 +00:00
Jonas Maebe
faf75095cd
* synchronised with trunk till r42189
...
git-svn-id: branches/debug_eh@42190 -
2019-06-07 18:24:38 +00:00
svenbarth
90278f4859
+ add fpmprotect function to complete fpmmap/fpmunmap
...
git-svn-id: trunk@42181 -
2019-06-06 20:46:01 +00:00
Jonas Maebe
9e9a982bfe
* synchronised with trunk till r42095
...
git-svn-id: branches/debug_eh@42096 -
2019-05-18 18:43:51 +00:00
pierre
c8129c5228
Disable 64-bit version of CPU_SOURCE is 32-bit
...
git-svn-id: trunk@42081 -
2019-05-16 08:21:09 +00:00
Jonas Maebe
1b6425176b
* synchronised with trunk till r42049
...
git-svn-id: branches/debug_eh@42050 -
2019-05-12 18:44:05 +00:00
pierre
a7a67f3d3c
* Improve handling of command line args setting variables (did not work if it contained spaces)
...
+ Group all recognized macros into list_defines in preproc.awk file
+ Convert Pascal style hexadecimal constants into C style
git-svn-id: trunk@42018 -
2019-05-07 08:13:38 +00:00
pierre
0a3a35152d
Also remove -m32 option for arm native GNU C compiler
...
git-svn-id: trunk@42017 -
2019-05-06 22:07:49 +00:00
pierre
12647c348e
Add script to use h2paschk on t_OS.h2paschk file for rtl tests for system header compliance
...
git-svn-id: trunk@42015 -
2019-05-06 21:10:12 +00:00
pierre
cb4b085a99
* Also allow '-' in include file names
...
+ Add os_cpu and cpu_source variables
* Cope with aarch64 GNU C compiler that does not support -m64 option
+ Add support for arm test on aarch64 machine
* Better accept expressions instead of constants in C #define
git-svn-id: trunk@42014 -
2019-05-06 21:08:47 +00:00
Jonas Maebe
3a1fb45315
* synchronised with trunk till r41976
...
git-svn-id: branches/debug_eh@41977 -
2019-05-02 19:44:41 +00:00
pierre
0100c4abf8
More improvements to script testing syscall numbers
...
git-svn-id: trunk@41970 -
2019-05-02 12:55:51 +00:00
pierre
5f4a0c7af7
* freebsd and openbsd also use sys/syscall.h header
...
+ Add AWK parser to removed parts of source not concerning current CPU
(only handles CPUXXX like CPUI386)
git-svn-id: trunk@41969 -
2019-05-01 22:00:06 +00:00
pierre
639adc314f
Eliminate wrong line (bug report 35441)
...
git-svn-id: trunk@41934 -
2019-04-25 13:04:39 +00:00
pierre
a83bc62639
Improve syscall number testing script:
...
+ Add support for parameters:
-v sets verbose variable to 1
VAR=value gets evaluated.
* moves to rtl/$os if called at diferent level.
+ check if there is a incude directive in sysnr.inc file.
+ Add compilation of C source code with the C variant of the syscall number.
+ Support 32 and 64-bit version of C compilation for systems
allowing 32 and 64-bit executable (like x86_64-linux).
+ Add 'preprocessing' using AWK to test {$ifdef CPUXXX} macro.
+ Add summary at end of script.
* Rename check_syscall_number to check_c_syscall_from_fpc_rtl
* Rename check_syscall_number_reverse to check_c_syscall_in_fpc_rtl
* Try to remove most intermediate files.
+ Generate add_missing_syscalls.inc file if numbers are missing.
git-svn-id: trunk@41928 -
2019-04-25 06:10:43 +00:00
Jonas Maebe
d93c05a90c
* synchronised with trunk till r41207
...
git-svn-id: branches/debug_eh@41208 -
2019-02-03 21:05:37 +00:00
nickysn
248fd313f8
+ introduced unit SortBase, which implements the foundation for pluggable
...
sorting algorithms. A default QuickSort implementation is provided by the
unit. Other units can be added, to provide other sorting algorithms (e.g.
HeapSort, MergeSort, IntroSort, etc.)
* TList and TFPList updated to use the current default sorting algorithm defined
in SortBase for their .Sort method.
git-svn-id: trunk@41167 -
2019-02-02 20:06:50 +00:00
Jonas Maebe
b3a8543a56
* synchronised with trunk till r40942
...
git-svn-id: branches/debug_eh@40943 -
2019-01-20 17:37:07 +00:00
Károly Balogh
e547dfa837
haiku: update baseunix unit, remove syscalls code, flock() and nanosleep() is actually supported on Haiku for a long time now, so lets use it
...
git-svn-id: trunk@40823 -
2019-01-10 03:51:35 +00:00
Jonas Maebe
b41cd1eb6a
* synchronised with trunk till r40575
...
git-svn-id: branches/debug_eh@40576 -
2018-12-16 20:45:55 +00:00
michael
d49510cc8c
* Fix bug #0034499
...
git-svn-id: trunk@40548 -
2018-12-14 10:00:44 +00:00
Jonas Maebe
bd23ac0dab
- disable I/O-port-related intrinsic functionality when using LLVM, as the
...
x86-specific inline nodes are not available then
git-svn-id: branches/debug_eh@40437 -
2018-12-01 20:30:43 +00:00
florian
72416edcc4
+ support for tlsm_general on i386-linux
...
git-svn-id: trunk@40281 -
2018-11-11 17:32:20 +00:00
florian
9c041afc7c
* disable generic threadvar handling if section thread vars are available
...
git-svn-id: trunk@40270 -
2018-11-07 22:03:01 +00:00
yury
b717a149b6
* android: Removed cwstring from the uses clause of the unix unit. Use cwstring indirectly. It allows to avoid using cwstring if needed.
...
git-svn-id: trunk@40198 -
2018-11-03 12:34:59 +00:00
yury
5e92e2d23f
* Fixed crash in DiskFree() and DiskSize() on Unices due to out of bound read of the DriveStr[] array in rare cases.
...
git-svn-id: trunk@39866 -
2018-10-06 13:52:56 +00:00
yury
23006d16f5
* Fixed UnhookSignal when RTL_SIGDEFAULT is passed. The bug have caused crash on aarch64-android due to out of bounds read of the rtlsig2ossig[] array.
...
git-svn-id: trunk@39860 -
2018-10-05 18:33:55 +00:00
pierre
0e6c072365
define iconv_is_in_libc by default for netbsd OS (can be disabled by adding -dDISABLE_ICONV_LIBC option
...
git-svn-id: trunk@39801 -
2018-09-24 22:20:30 +00:00
svenbarth
09e5f463dc
+ add Delphi-compatible FileGetSymLinkTarget functions to all platforms (currently returns False on all platforms); this also includes TSymLinkRec variants for both RawByteString and UnicodeString
...
git-svn-id: trunk@39669 -
2018-08-24 15:33:45 +00:00
svenbarth
92dcdd8b5b
+ add Delphi compatible FollowLink parameter (default is True) to FileExists and DirectoryExists; support for it is up to each target
...
git-svn-id: trunk@39668 -
2018-08-24 15:33:09 +00:00
nickysn
7df861487b
* use include files in the unix ports unit as well
...
+ add portsh.inc and ports.inc for x86_64 as well
git-svn-id: trunk@39420 -
2018-07-09 14:42:01 +00:00
nickysn
f733e0a31c
+ use the x86 inline intrinsics for port access in the unix ports unit as well
...
git-svn-id: trunk@39372 -
2018-07-04 00:17:18 +00:00
nickysn
3ed284953b
* use the new x86 port access intrinsics in the x86 unit for unix
...
git-svn-id: trunk@39371 -
2018-07-03 23:25:18 +00:00
Károly Balogh
ab1a82bfb3
fix typo in comment. no functional change.
...
git-svn-id: trunk@37567 -
2017-11-07 15:50:59 +00:00
pierre
0c7646761f
Also disable pthread_attr_setinheritsched call for BeOS
...
git-svn-id: trunk@37266 -
2017-09-20 13:56:05 +00:00
pierre
98be7e67f1
Disable FpSigTimedWait also for BeOS
...
git-svn-id: trunk@37259 -
2017-09-20 08:49:12 +00:00
marco
b6824290fc
* initial fileflush, mantis #15824
...
git-svn-id: trunk@37135 -
2017-09-03 16:41:32 +00:00
marco
d98065d706
* change external name of wait to wait instead of waitpid. Reported
...
by Toshihiko Okuhara, mantis #32288
git-svn-id: trunk@36858 -
2017-08-08 10:56:54 +00:00
michael
52cd572cec
* Use specific type for TFPSet elements
...
git-svn-id: trunk@36710 -
2017-07-09 14:47:27 +00:00
florian
a927181d87
* properly align threadvars for sparc64
...
git-svn-id: trunk@36694 -
2017-07-08 21:22:40 +00:00
svenbarth
d5c8fe7455
* on targets with indirect main entry argc, argv and envp are provided through the indirect entry information instead of externals
...
git-svn-id: trunk@36686 -
2017-07-08 19:18:20 +00:00
florian
453fedf089
* empty lines removed
...
git-svn-id: trunk@36541 -
2017-06-19 21:17:56 +00:00
florian
1b371b15e3
* make webtbs/tw30535 also working on OSes using cthreads
...
git-svn-id: trunk@35570 -
2017-03-12 09:28:41 +00:00
Jonas Maebe
6d5339cdb6
* CP819/IBM819 should be mapped to Windows code page 28591 (ISO8859-1)
...
(mantis #30639 )
git-svn-id: trunk@35397 -
2017-02-04 22:44:36 +00:00
michael
d05175a17f
* FileOpen should not open directories (Windows compatible) Bug ID #30766
...
git-svn-id: trunk@35063 -
2016-12-04 12:41:57 +00:00
yury
1ccf551d1c
* android: Try to get the package files directory for any shared library. If it is valid use it as a home dir.
...
* android: Always set the syslog tag.
git-svn-id: trunk@34926 -
2016-11-20 10:53:23 +00:00
Jonas Maebe
1c04470b66
* converted for-loop to while-loop, because its loop count is used on exit
...
even if no break is triggered
git-svn-id: trunk@34776 -
2016-11-01 14:01:41 +00:00
Jonas Maebe
85f2903b8b
* don't index past the end of the transitions array (mantis #30829 )
...
git-svn-id: trunk@34775 -
2016-11-01 14:01:38 +00:00
sergei
67bd4775fd
- Cleaned out thread manager semaphore support which was ever implemented only for Unix, and not used since r28965. This also reverts changes to System unit interface introduced in r27665.
...
git-svn-id: trunk@34542 -
2016-09-20 20:14:36 +00:00