Commit Graph

1090 Commits

Author SHA1 Message Date
svenbarth
73026618c8 * protect against empty strings inside the SetThreadDebugNameA and -U functions
git-svn-id: trunk@45237 -
2020-05-03 21:11:36 +00:00
svenbarth
0906714aa4 * fix for Mantis #36950: apply (slightly adjusted) patch by Bi0T1N to implement SetThreadDebugNameA and -U for Linux and Android targets
git-svn-id: trunk@45233 -
2020-05-03 15:08:35 +00:00
svenbarth
c8b7094378 * fix for Mantis #36940: apply (adjusted) patch by Bi0T1N to add functionality to the thread manager to set a thread's debug name (if supported by the platform)
git-svn-id: trunk@45160 -
2020-04-28 19:58:20 +00:00
joost
e7f5b89c2c * Avoid doing a syscall with a nil parameter in fileexists
git-svn-id: trunk@44090 -
2020-02-02 11:06:14 +00:00
florian
01302bc47d * subroutines working with an OS dependend time stamp use an int64 now, so the 2038 problem
on unixes can be tackled

git-svn-id: trunk@44010 -
2020-01-21 20:59:20 +00:00
florian
3edc0560b0 * patch by Benjamin Rosseaux: TEvent.WaitFor on *nix uses Monotonic Clock now
git-svn-id: trunk@43589 -
2019-11-25 20:58:18 +00:00
marco
f7721cadcc * fix for mantis #36229, off by one in bounds check. Only affects invalid input though.
git-svn-id: trunk@43324 -
2019-10-29 13:44:24 +00:00
Károly Balogh
7f0675d937 netbsd: updated to link against the right setlocale function. the renaming from __setlocale_mb_len_max_32 to __setlocale50 occured in NetBSD include/locale.h in rev 1.17, which was in 2010, and shipped in NetBSD 6 in 2012.
git-svn-id: trunk@43118 -
2019-10-04 11:28:10 +00:00
svenbarth
f46b8539d0 * implement FileSymLinkGetTarget for *nix systems
git-svn-id: trunk@43113 -
2019-10-03 12:07:33 +00:00
svenbarth
2a38d07d8f * implement FollowLink=False handling for DirectoryExists and FileExists on *nix systems
git-svn-id: trunk@43112 -
2019-10-03 12:07:28 +00:00
svenbarth
46dac1419e * fix FileExists on *nix systems returning True for directories
git-svn-id: trunk@43111 -
2019-10-03 12:07:25 +00:00
michael
db4bc06b67 * dlinfo call added (bug ID 0036105)
git-svn-id: trunk@43097 -
2019-09-29 22:28:47 +00:00
Jonas Maebe
693e72ade3 * Darwin now uses Mach VM calls for memory allocation instead of mmap/munmap
+ added sysrealloc support for Darwin (Darwin does not have mremap)

git-svn-id: trunk@42729 -
2019-08-18 15:55:07 +00:00
florian
f0213a2c46 + make use of the mremap syscall of linux to re-allocate large memory blocks faster
git-svn-id: trunk@42713 -
2019-08-16 20:47:37 +00:00
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