Commit Graph

1120 Commits

Author SHA1 Message Date
svenbarth
efe6b32638 + add declaration of FpSchedGetAffinity when the Linux target is compiled with FPC_USE_LIBC
git-svn-id: trunk@48121 -
2021-01-09 15:58:18 +00:00
ondrej
f982317ebd * cwstring: open iconv with the transliterate flag if iconvctl is not available
git-svn-id: trunk@47635 -
2020-11-29 17:09:19 +00:00
ondrej
6854f171d1 * revert r47631: cwstring: open iconv with the transliterate flag instead of setting it later with iconvctl because it may be unavailable
git-svn-id: trunk@47633 -
2020-11-29 14:59:18 +00:00
ondrej
91229dcee9 * cwstring: open iconv with the transliterate flag instead of setting it later with iconvctl because it may be unavailable
git-svn-id: trunk@47631 -
2020-11-29 12:08:55 +00:00
ondrej
a33256c1fb * cwstring: try to load the iconv library with .6 suffix as well
git-svn-id: trunk@47630 -
2020-11-29 10:53:23 +00:00
ondrej
63beb1e83a * revert r47532, r47527 (use timezone information from fpgettimeofday) because they are not available on all Linux distributions
git-svn-id: trunk@47541 -
2020-11-23 15:17:52 +00:00
ondrej
28d88b9999 * GetLocalTimeOffset: use timezone information from fpgettimeofday
git-svn-id: trunk@47532 -
2020-11-22 19:50:40 +00:00
ondrej
f5a95782a9 * use timezone information from fpgettimeofday for getting local datetime
git-svn-id: trunk@47527 -
2020-11-22 15:39:37 +00:00
michael
664283af9e * Optimized DiskAdd/DiskFree/AddDisk, bug ID #37523
git-svn-id: trunk@47365 -
2020-11-09 19:34:06 +00:00
ondrej
4fa3362355 * forgotten int64 parameter type
git-svn-id: trunk@47339 -
2020-11-08 07:18:49 +00:00
ondrej
7ded8307c9 * timezones android compilation
git-svn-id: trunk@47326 -
2020-11-05 18:39:11 +00:00
ondrej
d2a517389f * forgotten int64 parameter type
git-svn-id: trunk@47325 -
2020-11-05 17:16:27 +00:00
ondrej
be4c907117 * read int64 transition table from linux timezone files if available
git-svn-id: trunk@47324 -
2020-11-05 17:10:12 +00:00
ondrej
3ee2097f1a * unix timezone optimizations
git-svn-id: trunk@47321 -
2020-11-05 12:45:35 +00:00
ondrej
7fbceaac21 * thread-safe time zone info read/write
git-svn-id: trunk@47309 -
2020-11-04 14:56:56 +00:00
ondrej
c64429cdd0 * lazy thread initialization support
git-svn-id: trunk@47308 -
2020-11-04 14:55:40 +00:00
ondrej
934f2dc55d * introduce NowUTC() and GetUniversalTime()
git-svn-id: trunk@47306 -
2020-11-04 09:34:08 +00:00
ondrej
7ad4694e4b * remove the BaseUnix dependency added by mistake
git-svn-id: trunk@47305 -
2020-11-04 05:52:58 +00:00
ondrej
f296bf3f2d Unix timezone: fix search around TZ change back to be the same as on Windows
git-svn-id: trunk@47296 -
2020-11-03 19:40:04 +00:00
ondrej
a36caf9043 Unix LocalToEpoch: fix typo
git-svn-id: trunk@47295 -
2020-11-03 19:38:04 +00:00
ondrej
a02d676b06 GetLocalTimeOffset: add InputIsUTC parameter to DateTime-aware overloads
git-svn-id: trunk@47293 -
2020-11-03 18:15:16 +00:00
ondrej
f4cff81881 LocalToEpoch, EpochToLocal: fix for arbitrary datetime
git-svn-id: trunk@47291 -
2020-11-03 14:27:07 +00:00
ondrej
282aa0daa7 GetLocalTimeOffset: DateTime-aware overloads for Unix. Issue #35710
git-svn-id: trunk@47290 -
2020-11-03 11:41:28 +00:00
pierre
f80bd9b034 Fix typo in script comment
git-svn-id: trunk@47229 -
2020-10-27 23:11:23 +00:00
ondrej
b51729dac5 File datetime UTC support
git-svn-id: trunk@47210 -
2020-10-26 20:39:21 +00:00
ondrej
0d08b98d47 GetLocalTimeOffset: DateTime-aware overloads (Windows supported, Unix is a ToDo). Issue #35710
git-svn-id: trunk@47206 -
2020-10-26 12:29:18 +00:00
michael
48747bd161 * Patch to change numeric constant to symbolic constant for file mode (bug ID 37889)
git-svn-id: trunk@47064 -
2020-10-08 12:42:34 +00:00
pierre
f316121d53 Add handling of extra parameters, using eval if equal sign is found.
+ Add TMP_DIR variable and use it.
  * Only remove temp files if verbose is not set.

git-svn-id: trunk@46883 -
2020-09-16 20:44:44 +00:00
svenbarth
11b601d44c * TThread.Terminate does not have any platform specific behavior (it should only set FTerminated to true and call TerminatedSet), thus move it to the platform independant part
Notes:
- Netware had a ThreadSwitch in there, but that is not really required
- some platform were missing the setting of FTerminated to True, thus they'll now do that as well

git-svn-id: trunk@46543 -
2020-08-22 15:56:13 +00:00
michael
b7bd9f3325 * Add TerminatedSet (delphi compatibility, bug ID #37388)
git-svn-id: trunk@45805 -
2020-07-18 22:35:36 +00:00
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