Michael VAN CANNEYT
e7ef77bcbe
* Refer to mainunit for lazarus IDE
...
(cherry picked from commit fae6b2a1f3
)
2023-12-16 12:44:58 +01:00
Michaël Van Canneyt
126fbc4dfe
* Add TDateTimeHelper by Colin Johnsun. Fixes issue #40097
...
(cherry picked from commit d5be4efc16
)
2023-12-16 12:32:48 +01:00
Michael Van Canneyt
7a9d858aa6
* Date/Time info for files (Delphi compatibility)
...
(cherry picked from commit d1b2fe1659
)
2023-12-16 12:31:45 +01:00
florian
117dce6e78
+ initial implementation of path dependent IsFileNameCaseSensitive/IsFileNameCasePreserving functions for darwin
...
git-svn-id: trunk@49164 -
(cherry picked from commit c1f85ac3a1
)
2023-12-16 12:30:20 +01:00
florian
1202d9d492
* statx based Sysutils.FileGetDate with handle fixed
...
+ test
git-svn-id: trunk@48520 -
(cherry picked from commit 3e453f92fc
)
2023-12-16 12:20:47 +01:00
florian
dcde27b8c6
* renamed new syscall wrapper in linux to be consist with the others
...
git-svn-id: trunk@48479 -
(cherry picked from commit b4a1c27c58
)
2023-12-16 12:15:48 +01:00
florian
afccc19a9e
* properly check for linux version supporting statx
...
git-svn-id: trunk@48469 -
(cherry picked from commit 33cd5778cd
)
2023-12-16 12:15:36 +01:00
pierre
9ca5ae9039
Add code to test Linux version, try statx syscall only if version is >= to 4.11
...
git-svn-id: trunk@47850 -
(cherry picked from commit 8b34e11da3
)
2023-12-16 12:15:18 +01:00
florian
934765fc0b
* linux: FileGetDate makes use of statx if needed
...
git-svn-id: trunk@48476 -
(cherry picked from commit 90ba89a128
)
2023-12-16 12:14:32 +01:00
florian
3ab27ec1c8
* sysutils on linux uses only the new syscalls if the system has no suitable clong type
...
git-svn-id: trunk@48475 -
(cherry picked from commit ef04e3983f
)
2023-12-16 12:14:24 +01:00
florian
b2da1dbfba
* fallback to fputime if fputimensat fails as not being available
...
git-svn-id: trunk@48474 -
(cherry picked from commit c3656c6b1c
)
2023-12-16 12:14:14 +01:00
florian
5ea32418d8
+ futimens syscall
...
* make use of futimens syscall in sysutils unit
+ tests
git-svn-id: trunk@48472 -
(cherry picked from commit b8ab06aae7
)
2023-12-16 12:14:02 +01:00
florian
b536bc87e8
+ make use of the fputimensat syscall on linux to enable always times beyond 32 bit
...
git-svn-id: trunk@48471 -
(cherry picked from commit e6f575d43c
)
2023-12-16 12:13:33 +01:00
florian
8be1d885e8
+ linux.fputimensat which properly uses the _tim64 version if needed and available
...
+ test
git-svn-id: trunk@48470 -
(cherry picked from commit 0c77536f11
)
2023-12-16 12:13:17 +01:00
florian
d0765540c5
* linux: make use of statx in Sysutils.FileAge if available
...
git-svn-id: trunk@48457 -
(cherry picked from commit f39f8d0f1a
)
2023-12-16 12:12:11 +01:00
marcoonthegit
7485343ffd
recordonly commit to fix earlier merge without -x
...
* small cleanups in intersectrect,unionrect offsetrect and inflaterect; fixes #40436
(cherry picked from commit 117094b540
)
2023-12-16 12:08:36 +01:00
marcoonthegit
baa85a918f
recordonly commit to fix earlier merge without -x
...
* fix win32,win64 parts, fixes #40439 . All records to under pshpack4 in header.
(cherry picked from commit e084d3259f
)
2023-12-16 12:08:20 +01:00
marcoonthegit
ff773989a6
record-only commit to fix earlier merge without -x
...
* fixes #40438 signed zero handling.
(cherry picked from commit d3ac7f1d26
)
2023-12-16 12:08:05 +01:00
marcoonthegit
cbac723c8f
recordonly commit to fix earlier merge without -x
...
* make an excpetion and allow undocumented TD_QUESTION_ICON constant. There are multiple sources for this. Fixes #40406
(cherry picked from commit 6ab91262b2
)
2023-12-16 12:07:50 +01:00
marcoonthegit
b7136960eb
recordonly commit to fix earlier merge without -x
...
* change types of method from integre to single for tpointf (probably copy-paste the interface error from integer TPoint )
(cherry picked from commit fc8b28eecd
)
2023-12-16 12:07:34 +01:00
marcoonthegit
2e9bf38914
recordonly commit to fix earlier merge without -x
...
* remove unused variable, reported by lagwagging on on forum.
(cherry picked from commit fba564242e
)
2023-12-16 12:07:16 +01:00
marcoonthegit
77c6007e6c
recordonly commit to fix earlier merge without -x
...
* small cleanup, remove redundant result assignment and unused variable (from Lagprogramming on forum)
(cherry picked from commit 8e7572faba
)
2023-12-16 12:06:39 +01:00
marcoonthegit
059a90d8d4
record only commit fixing earlier merge without -x
...
* Patch by Rika to have a char specific TStringHelper.replace. Probably faster with low number of char matches. closes #39707
* also raise rangeerror for startindex<0 in previous committed join() patch.
(cherry picked from commit 9ad1995c6d
)
2023-12-16 12:06:14 +01:00
marcoonthegit
6415d5872c
record only commit from early cherry-pick without -x
...
* Patch from Alexey T. closes #39705
* don't use copy in helper.indexof(). Watch those 0 based indexes.
(cherry picked from commit d25daba08a
)
2023-12-16 12:05:43 +01:00
marcoonthegit
e56d104b87
record only commit from earlier cherry pick without -x
...
* applied patch from Alexey for closes #39704
* reviewed checks at start of function to match Delphi in rangecheck errors and other exits
* test for the above.
(cherry picked from commit 533cd82922
)
2023-12-16 12:05:14 +01:00
marcoonthegit
84c23ffe37
* fix win32,win64 parts, fixes #40439 . All records to under pshpack4 in header.
...
(cherry picked from commit e084d3259f
)
2023-12-16 11:28:55 +01:00
Michaël Van Canneyt
5d546e2bc2
* Add overload, so system unit version of interlocked* calls is also found. Fixes issue #40283
...
(cherry picked from commit 513b02f3fd
)
2023-12-16 11:28:27 +01:00
Ondrej Pokorny
49726fa588
add all peflags
...
(cherry picked from commit 86c4b160e2
)
2023-12-16 11:28:01 +01:00
pierre
194a0dbbf0
Fix compilation for wince target after restriction of enum value to longint range
...
git-svn-id: trunk@43200 -
(cherry picked from commit 362e6232c3
)
2023-12-16 11:26:54 +01:00
florian
ed5bbbb70e
* fixed comments in sysnr.inc files
...
git-svn-id: trunk@47426 -
(cherry picked from commit b2a67d4656
)
2023-12-16 11:17:05 +01:00
Károly Balogh
ebf15a8401
arm-linux: enable epoll_pwait syscall number. this fixes the ARM Linux build after r44666
...
git-svn-id: trunk@44675 -
(cherry picked from commit afe8a7596a
)
2023-12-16 11:16:55 +01:00
florian
6156cf4e2c
* duplicate syscall number removed, resolves #36508
...
git-svn-id: trunk@43849 -
(cherry picked from commit 49d4371784
)
2023-12-16 11:16:11 +01:00
florian
e4896d6c1c
* updated linux syscall numbers
...
git-svn-id: trunk@43835 -
(cherry picked from commit 295041e523
)
2023-12-16 11:15:26 +01:00
pierre
62ea323ed1
Update syscall number for sparc and sparc64 based on results from unix/scripts/check_sys.sh
...
git-svn-id: trunk@42019 -
(cherry picked from commit ebf2e277ab
)
2023-12-16 11:15:13 +01:00
pierre
dbc3df32cc
Add st_ctime_nsec field for stat powerpc record
...
git-svn-id: trunk@41972 -
(cherry picked from commit ce1ba76ce5
)
2023-12-16 11:15:00 +01:00
pierre
3a1ed4f8ed
Update syscall numbers for powerpc-linux and powerpc64-linux
...
git-svn-id: trunk@41971 -
(cherry picked from commit 0690df1733
)
2023-12-16 11:14:43 +01:00
pierre
54f8a84dbc
* Update syscall list for i386 and x86_64 cpus,
...
based on values found on gcc121 machine,
CentOS Linux release 7.6.1810 (Core)
* Commented out values not accepted by GNU C compiler.
For i386: madvise1(219), security(223),set_zone_reclaim(251)
New last number: 382(pkey_free).
For x86_64: 331(pkey_free).
git-svn-id: trunk@41929 -
(cherry picked from commit 66401652fd
)
2023-12-16 11:14:26 +01:00
florian
d4a7e0c8c7
+ Linux.fpstatx, resolves #36501
...
git-svn-id: trunk@43837 -
(cherry picked from commit d425a85f8d
)
2023-12-16 11:11:18 +01:00
florian
2d5b6b2be8
- removed cvs remainders ($Id$ and $Log$ tags)
...
git-svn-id: trunk@47119 -
(cherry picked from commit 80394fc6e8
)
2023-12-16 10:55:15 +01:00
florian
6915d2d483
* manually added statx syscall numbers for android
...
git-svn-id: trunk@43850 -
(cherry picked from commit a79b8a145f
)
2023-12-16 10:51:56 +01:00
svenbarth
d6049c83ec
* fix for Mantis #39147 : apply adjusted patch (especially more paranoid checks) from Serge Anvarov
...
git-svn-id: trunk@49581 -
(cherry picked from commit 229506acd0
)
2023-12-14 18:42:23 +01:00
ondrej
33909bf22e
win rtl: load GetTimeZoneInformationForYear dynamically. Issue #38192
...
git-svn-id: trunk@47817 -
(cherry picked from commit 3f605a5b50
)
2023-12-14 18:42:02 +01:00
marcoonthegit
4477ac3e3a
* a few more simple handlers get custom variant intercepts. Also part of #39815
...
(cherry picked from commit 83b4555511
)
2023-12-14 18:39:50 +01:00
marcoonthegit
446a3fe410
* custom variant support for integer types, first part of #39815
...
(cherry picked from commit c67004d929
)
2023-12-14 18:39:36 +01:00
marco
f09c06c6bb
* implemented LeftPromotion to fmtbcd to fix mantis 38496 but unfortunately FPC doesn't call it.
...
git-svn-id: trunk@49413 -
(cherry picked from commit 9bc8f17f16
)
2023-12-14 18:26:05 +01:00
florian
fff5e306ae
* Y2K38 problem for linux in sysutils.findfirst/findnext should be solved
...
git-svn-id: trunk@48473 -
(cherry picked from commit d402e0b940
)
2023-12-14 18:25:06 +01:00
ondrej
6e7223dca3
Deprecate TUnicodeSearchRec.Time and TRawbyteSearchRec.Time
...
git-svn-id: trunk@47204 -
(cherry picked from commit f529253c0b
)
2023-12-14 17:49:12 +01:00
ondrej
42ccdac0bb
More precise FileAge
...
git-svn-id: trunk@47203 -
(cherry picked from commit 34d3429e43
)
2023-12-14 17:49:00 +01:00
michael
1bda357c8f
* Error when seek fails
...
git-svn-id: trunk@47056 -
(cherry picked from commit 722e8d94cd
)
2023-12-14 17:48:43 +01:00
ondrej
0f8132fc8f
* FileSetDate linux compilation
...
git-svn-id: trunk@47399 -
(cherry picked from commit e34e4b452a
)
2023-12-14 16:38:49 +01:00