Tomas Hajny
10911173df
* Correction of omissions in GetLocalTime
...
git-svn-id: trunk@47529 -
2020-11-22 16:19:34 +00:00
pierre
37106166f1
Replace assembler instruction 'xorl' by 'xor' in Intel mode
...
git-svn-id: trunk@44116 -
2020-02-04 22:54:52 +00:00
Tomas Hajny
9ce1d0e509
* fix for TAbstractSearchRec.Time type change
...
git-svn-id: trunk@44113 -
2020-02-04 22:04:34 +00:00
Tomas Hajny
e790cb067d
* fix of FileSetDate after int64 changes (r44010 and r44013)
...
git-svn-id: trunk@44018 -
2020-01-22 12:14:47 +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
pierre
d5b314ca52
Fix EMX rtl compilation
...
git-svn-id: trunk@36864 -
2017-08-08 22:36:16 +00:00
pierre
db00b1e554
Fix two obvious compilation errors
...
git-svn-id: trunk@36831 -
2017-08-04 12:26:24 +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
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
06d9b35ed3
* don't truncate the result of GetEnvironmentVariable to 255 characters
...
git-svn-id: branches/cpstrrtl@25105 -
2013-07-15 09:21:51 +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
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
Tomas Hajny
225cc1c1e0
* fix FileExists/DirectoryExists wrongly accepting non-existing entries with wrong path due to path normalization using ExpandFileName (correctly) accepting also non-existing paths
...
git-svn-id: trunk@20890 -
2012-04-15 19:46:33 +00:00
Tomas Hajny
7f7a4518f7
* FileExists fixed - wildcards not accepted any longer
...
git-svn-id: trunk@18846 -
2011-08-25 21:34:44 +00:00
Tomas Hajny
6aecc69389
* FindFirst enhanced for file sizes >2 GB
...
git-svn-id: trunk@18843 -
2011-08-25 21:17:30 +00:00
Tomas Hajny
867ad94115
* fix for DirectoryExists - proper handling of root directory
...
git-svn-id: trunk@18186 -
2011-08-13 00:06:14 +00:00
Tomas Hajny
5e3ebfab4d
* real implementation for FileCreate with ShareMode (plus fix for ShareMode in FileOpen)
...
git-svn-id: trunk@17565 -
2011-05-26 21:19:20 +00:00
michael
a201f07420
* Added share mode argument to FileCreate call
...
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
mazen
b127fc154a
* Fixed spell error revealed by lintian.
...
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +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
Tomas Hajny
5e1a7997ee
+ FileTruncate allows 64-bit parameter
...
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
micha
ce9e589e15
* fix FileSeek implementation to match declaration
...
git-svn-id: trunk@5159 -
2006-11-01 17:47:47 +00:00
Tomas Hajny
32774f91ed
* comment about FileOpen return value modified
...
git-svn-id: trunk@3881 -
2006-06-16 20:45:30 +00:00
oro06
42bd89095f
*fix fileopen (please OS2,EMX maintainers have a look)
...
git-svn-id: trunk@3858 -
2006-06-13 08:15:35 +00:00
Tomas Hajny
a9b515c0bf
* fexpand defines kept in platform specific sysutils.pp
...
git-svn-id: trunk@3726 -
2006-05-28 21:29:26 +00:00
Tomas Hajny
ea7f415a97
* fix for range check error during compilation
...
git-svn-id: trunk@1089 -
2005-09-15 20:48:24 +00:00
florian
6992fde8fc
* patch from Ales to Katona to change some var parameters to out
...
parameters
git-svn-id: trunk@292 -
2005-06-09 07:42:40 +00:00
fpc
790a4fe2d3
* log and id tags removed
...
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3
initial import
...
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
florian
7fef413b69
+ SysLocale
2005-02-26 14:38:14 +00:00
peter
e417e34496
* truncate log
2005-02-14 17:13:06 +00:00
Tomas Hajny
b3c9baef95
* GetEnvironmentVariableCount uses EnvC under OS/2 and EMX
2004-12-11 17:32:34 +00:00
michael
fbb13b5266
+ Added GetEnvironmentVariableCount and GetEnvironmentString calls
2004-12-11 11:32:44 +00:00
Tomas Hajny
09fd537acf
* lots of fixes (regcall, THandle, string operations in sysutils, longint2cardinal according to OS/2 docs, dosh.inc, ...)
2004-02-22 15:01:49 +00:00
Tomas Hajny
04a8acc442
* overloaded ExecuteProcess added, EnvStr param changed to longint
2004-02-15 21:26:36 +00:00
Tomas Hajny
e0f9297e01
* ExecuteProcess fixes, ProcessID and ThreadID added
2004-01-20 23:05:31 +00:00
florian
058d480f40
* error handling for Variants improved
2003-11-26 20:00:19 +00:00
Tomas Hajny
fc7111ff4b
* fixes from OS/2 merged to EMX
2003-10-19 09:35:28 +00:00
Tomas Hajny
a183b11a5f
* longint2cardinal fixes merged
2003-10-14 21:15:20 +00:00
Tomas Hajny
8ebff2e7fc
* stdcall fixes and asm routines cleanup
2003-10-07 21:33:24 +00:00
Tomas Hajny
2200cb4d8e
* stdcall changes merged to EMX
2003-10-04 17:53:08 +00:00
yuri
9fa3c4ed0e
* pmbidi added
...
* some cosmetic changes
2003-06-26 17:12:29 +00:00