Commit Graph

1142 Commits

Author SHA1 Message Date
Jonas Maebe
d5b368988f LLVM: add Read/WritePort* implementations
Fixes Unix graph compilation on x86 with LLVM
2021-12-16 21:17:42 +01:00
Michaël Van Canneyt
e97e27b8d5 * Raise exception for fileseek positions that do not fit in longing. Issue #39407 2021-10-17 17:58:11 +02:00
Nikolay Nikolov
f21273612a + also fill DayOfWeek in the Unix implementation of SysUtils.GetLocalTime 2021-10-13 02:39:04 +03:00
svenbarth
d0b1402e10 * fix for Mantis #37252: apply patch by Bi0T1N to implement TThread.NameThreadForDebugging for Mac OS X 10.6 and newer (older versions don't provide the required functions)
git-svn-id: trunk@49323 -
2021-05-02 12:46:39 +00:00
florian
c1f85ac3a1 + initial implementation of path dependent IsFileNameCaseSensitive/IsFileNameCasePreserving functions for darwin
git-svn-id: trunk@49164 -
2021-04-10 13:29:59 +00:00
Jonas Maebe
0eb9dd3879 * Darwin support for printing line info for backtraces when using Dwarf,
based on patches by Colin Western, mantis #38483)
   o requires that the program/library is compiled with -Xg (or that
     dsymutil is run on it after compiling), and that the .dSYM bundle
     is in the same directory as the program/library
   o always use the "dl" unit in exeinfo for Darwin, as that's needed for
     dynamic library support, and this does not cause an extra dependency
     since on Darwin we always use libc
   o cleaned up the exeinfo unit for Darwin, and sped it up by using mmap
     instead of small reads
   o fixed unit dependencies for exeinfo, lineinfo and lnfodwarf in Darwin
     RTL Makefile
  * use the process address info from the original exe even when reading
    the debug information from an external file
  - removed outdated ifdef'd darwin code from dl.pp (no longer needed now
    that processaddress gets set correctly in exeinfo for that platform)

git-svn-id: trunk@49140 -
2021-04-08 19:50:34 +00:00
michael
2a96ad2715 * Check buffer overflow when reading
git-svn-id: trunk@49012 -
2021-03-19 14:25:21 +00:00
michael
3575369989 * Fix leap second reading
git-svn-id: trunk@49006 -
2021-03-19 09:22:13 +00:00
ondrej
2a61397d37 unix: fix timezone info for timers after the last transition
git-svn-id: trunk@49005 -
2021-03-19 08:11:10 +00:00
ondrej
881235b489 unix: fix RefreshTZInfo UTC parameter
git-svn-id: trunk@49001 -
2021-03-18 19:21:51 +00:00
florian
b7fe338bbe * mips and xtensa compilation fixed
git-svn-id: trunk@48928 -
2021-03-09 21:07:51 +00:00
florian
bb97c5ab69 + RiscV: set threadvarblocksize
* sanity check if threadvarblocksize is really set

git-svn-id: trunk@48925 -
2021-03-08 22:07:07 +00:00
florian
3e453f92fc * statx based Sysutils.FileGetDate with handle fixed
+ test

git-svn-id: trunk@48520 -
2021-02-07 17:59:28 +00:00
florian
b08717fef6 * make statx based Sysutils.FileAge working with relative pathes
+ test

git-svn-id: trunk@48519 -
2021-02-07 17:41:27 +00:00
florian
b4a1c27c58 * renamed new syscall wrapper in linux to be consist with the others
git-svn-id: trunk@48479 -
2021-01-31 22:25:18 +00:00
florian
90ba89a128 * linux: FileGetDate makes use of statx if needed
git-svn-id: trunk@48476 -
2021-01-31 18:38:50 +00:00
florian
ef04e3983f * sysutils on linux uses only the new syscalls if the system has no suitable clong type
git-svn-id: trunk@48475 -
2021-01-31 18:20:01 +00:00
florian
c3656c6b1c * fallback to fputime if fputimensat fails as not being available
git-svn-id: trunk@48474 -
2021-01-31 18:09:57 +00:00
florian
d402e0b940 * Y2K38 problem for linux in sysutils.findfirst/findnext should be solved
git-svn-id: trunk@48473 -
2021-01-31 18:02:55 +00:00
florian
b8ab06aae7 + futimens syscall
* make use of futimens syscall in sysutils unit
  + tests

git-svn-id: trunk@48472 -
2021-01-31 17:12:39 +00:00
florian
e6f575d43c + make use of the fputimensat syscall on linux to enable always times beyond 32 bit
git-svn-id: trunk@48471 -
2021-01-31 16:43:53 +00:00
florian
f39f8d0f1a * linux: make use of statx in Sysutils.FileAge if available
git-svn-id: trunk@48457 -
2021-01-30 18:47:27 +00:00
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