Commit Graph

60 Commits

Author SHA1 Message Date
Pierre Muller
e16364b567 Adapt sources to FPC_DOTTEDUNITS 2023-08-09 00:33:15 +02:00
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
78374bf772 * Synchronize API for AnsiString/Unicode string, keep string where possible. 2023-07-24 15:38:09 +02:00
Michael VAN CANNEYT
a17efde2a3 * Char -> AnsiChar 2023-07-14 17:26:10 +02:00
Michaël Van Canneyt
0639ec476d * No symlink support on WinCE 2023-02-06 09:53:30 +01:00
Michaël Van Canneyt
4f029720be * Attempt to fix FileGetDateTimeInfo 2023-02-04 10:42:40 +01:00
ondrej
934f2dc55d * introduce NowUTC() and GetUniversalTime()
git-svn-id: trunk@47306 -
2020-11-04 09:34:08 +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
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
florian
8dc8647c7b * WinCE compilation fixed
git-svn-id: trunk@44025 -
2020-01-23 20:47:55 +00:00
florian
69956cd97a * fix compilation on several OSes after r44010
git-svn-id: trunk@44013 -
2020-01-21 21:50:37 +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
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
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
svenbarth
dfe00a8ed1 Fix for Mantis #30279. Apply patch by Max Nazhalov to fix compilation of i386-wince and arm-wince (the only modification is that the no longer used AnsiString variants of ExecuteProcess are removed)
git-svn-id: trunk@33996 -
2016-06-16 17:03:17 +00:00
michael
e838317177 * Fix bug #0028980
git-svn-id: trunk@32277 -
2015-11-08 21:35:12 +00:00
michael
fde42ca8ef * Type helpers, compatible to Delphi XE 8
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
Jonas Maebe
2da7c3f05c * changed declarations in finah.inc and diskh.inc from ansistring to
rawbytestring
  * DoDirSeparators() and GetDirs() marked as "rtlproc" so they can accept
    non-rawbytestring arguments as their var-parameters

git-svn-id: branches/cpstrrtl@25306 -
2013-08-19 22:04:40 +00:00
Jonas Maebe
af3f12f60c * rawbytestring/unicodestring versions of findfirst/findnext/findclose
o these routines are now generic wrappers in filutil.inc, and call
     the platform-dependent internalfindfirst/next/close routines
   o on unix, the fnmatch routine got proper support for UTF-8 matching
     (e.g., it won't match a partial UTF-8 code point to a "?" wildcard)
   o for NativeNT, a similar (untested) UTF-16 version has been added
  + test for the above
  * rawbytestring/unicodestring versions of fileage

git-svn-id: branches/cpstrrtl@25302 -
2013-08-19 22:04:25 +00:00
Jonas Maebe
155aafc255 * moved SYSUTILS_HAS_ANSISTR/UNICODESTR_FILEUTIL_IMPL define to interface
so declarations can also depend on it and similar defines (not yet the
    case)
  + added SYSUTILS_HAS_ANSISTR_ENVVAR_IMPL/SYSUTILS_HAS_UNICODESTR_ENVVAR_IMPL
    to indicate whether the platform-dependent part of the unit provides
    an ansistring/unicodestring interface to get environment variables
  + Windows version of getenvironmentvariable(unicodestring)
  + generic ansistring/unicodestring versions of GetEnvironmentVariable()
    in case the platform doesn't provide them
  * result of GetEnvironmentString() is ansistring/unicodestring depending
    on the state of the FPC_RTL_UNICODE define

git-svn-id: branches/cpstrrtl@25116 -
2013-07-16 14:16:34 +00:00
Jonas Maebe
eeb98a0c0f - removed platform-specific implementations of GetCurrentDir, SetCurrentDir,
CreateDir and RemoveDir, and implemented a generic one (based on the OS/2
    version) in the shared sysutils code (so that the filesystem code page
    support for the system unit routines can be reused)
  * include both ansistring and unicodestring versions of the above routines,
    and of ForceDirectories. Exception: GetCurrentDir, which cannot be
    overloaded based on function result and whose return type currently
    dependends on the FPC_UNICODE_RTL define

git-svn-id: branches/cpstrrtl@25113 -
2013-07-16 14:15:55 +00:00
Jonas Maebe
26b2149ced * converted the following sysutils routines to unicodestring and
rawbytestring: FileExists, DirectoryExists, FileSetDate, FileGetAttr,
    FileSetAttr, DeleteFile, RenameFile, FileSearch, ExeSearch,
    FileIsReadOnly

git-svn-id: branches/cpstrrtl@25078 -
2013-07-09 19:01:45 +00:00
Jonas Maebe
ab9036ecbf + missing unicodestring version of ExpandUNCFileName
* make ansistring version of ExpandUNCFileName call the unicodestring version

git-svn-id: branches/cpstrrtl@25045 -
2013-07-04 22:28:24 +00:00
Jonas Maebe
ecd3cba02b * synchronised with trunk up to r24912
o resolved conflict in updated morphos sysutils unit
   o moved code that had been added to the now deleted  sysunix.inc to the
     unix-specific block of the fpwidestring unit's init code

git-svn-id: branches/cpstrrtl@24913 -
2013-06-17 20:50:02 +00:00
marco
96da57ee95 * Applied patch from Victor Campillo that adds GetLocalTimeOffset support
similar to win32. Mantis #24253

git-svn-id: trunk@24302 -
2013-04-22 15:58:15 +00:00
svenbarth
c6c67dc182 Set the UnicodeCompare functions in the WideString manager also for WinCE and implement the Wide- and UnicodeCompare functions similar to Win32/64 by calling a common DoCompareString function.
git-svn-id: trunk@23574 -
2013-02-05 16:33:42 +00:00
Jonas Maebe
a3c936fe5f + rawbytestring/unicodestring overloads for FileCreate and FileOpen.
The WinCE implementation converts the rawbytestring arguments to
    unicodestring and calls unicode OS APIs, while the others convert
    unicodestring arguments to DefaultFileSystemCodePage and call
    single byte OS APIs
  + test for the above

git-svn-id: branches/cpstrrtl@22467 -
2012-09-27 07:54:25 +00:00
michael
a201f07420 * Added share mode argument to FileCreate call
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
sergei
15e1abddf7 * Windows RTL: Simplify SysUtils.GetLocalTime(). TSystemTime type for these targets matches one defined in Windows unit, so WinAPI function result can be used directly. Resolves #18346.
git-svn-id: trunk@16665 -
2010-12-30 20:40:47 +00:00
marco
be98b13554 * fix for 11263, changed fileread and fd_zero to out using $modeswitch.
git-svn-id: trunk@14965 -
2010-03-01 22:35:14 +00:00
marco
8e9a7e14ad * Revised yesterday solution to a more general one. Executeprocess gets
another parameter, a set type with flags, default = []

git-svn-id: trunk@14572 -
2010-01-07 20:49:28 +00:00
michael
e2387a5ac5 * Fixed OnBeep
git-svn-id: trunk@14271 -
2009-11-25 09:37:04 +00:00
yury
57e49c4bb9 * Fixed AV in SysErrorMessage() when there is no message string corresponding to a error code. Bug #13617.
git-svn-id: trunk@13082 -
2009-05-02 14:15:50 +00:00
Almindor
4a54f15b47 * fix GetAppConfigDir and GetTmpDir for Windows(R)(c)(TM) and WinCE, unify with unix and provide pathdelim at end
git-svn-id: trunk@11529 -
2008-08-07 10:22:30 +00:00
yury
10a286532f * Fixed Wide<->Ansi conversion for wince.
git-svn-id: trunk@10725 -
2008-04-19 21:52:12 +00:00
yury
18e663240a * Fixed AnsiXXX string handling routines.
git-svn-id: trunk@10659 -
2008-04-13 20:59:11 +00:00
yury
0109c29e3f * Fixed bug #10716.
git-svn-id: trunk@10139 -
2008-02-01 19:59:12 +00:00
yury
f040558e1c * Fixed wince compilation.
* Added some constants.

git-svn-id: trunk@10134 -
2008-02-01 17:39:02 +00:00
peter
69363bad5e * quote parameters with spaces
git-svn-id: trunk@10111 -
2008-01-30 00:15:22 +00:00
peter
95d0ce1270 * VendorName function added to allow an extra subdirectory
to group multiple products
  * OnGetVendorName hook, like OnGetApplicationName
  * use COMMON_APPPATH for global config files under windows

git-svn-id: trunk@10072 -
2008-01-27 21:40:55 +00:00
yury
220a37b443 * Do not fill generic upcase and lowcase conversion tables for windows targets, because generic ANSI routines are not used here.
git-svn-id: trunk@9049 -
2007-11-01 16:15:29 +00:00
peter
627cf69ae3 * svn props
git-svn-id: trunk@8468 -
2007-09-14 07:19:48 +00:00
yury
a768c29b2d * Implemented GetTempDir for wince. Bug #9348.
git-svn-id: trunk@8326 -
2007-08-28 21:17:49 +00:00
Tomas Hajny
5e1a7997ee + FileTruncate allows 64-bit parameter
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
yury
fef99bf8cb * Fixed AnsiCompareStr and AnsiCompareText if string(s) contains #0. It fixes webtbs/tw3170.pp
git-svn-id: trunk@5949 -
2007-01-13 17:00:58 +00:00
micha
ce9e589e15 * fix FileSeek implementation to match declaration
git-svn-id: trunk@5159 -
2006-11-01 17:47:47 +00:00
Marc Weustink
3232e59810 * fixed compilation on CE
- removed declaration of WCHAR since it is defined in systemh

git-svn-id: trunk@5135 -
2006-10-31 22:46:09 +00:00
yury
5a49addb35 * fixed more warnings and notes while compiling RTL.
git-svn-id: trunk@4259 -
2006-07-19 19:10:02 +00:00