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
304372262a
* Char -> AnsiChar
2023-07-14 17:26:09 +02: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
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
michael
a201f07420
* Added share mode argument to FileCreate call
...
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
armin
2859348450
make netwlibc compilable with current rtl
...
git-svn-id: trunk@16899 -
2011-02-08 22:06:53 +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
peter
f4f3ae84d0
* AllowDirectorySeparators and AllowDriveSeparators typed constants
...
added to allow customization of path and directory parsing in the rtl
* Use the new sets instead of the hardcoded / and \
git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
pierre
f932ccbc59
* use libc unit GetLastError to implement GetLastOSError
...
git-svn-id: trunk@7582 -
2007-06-05 09:22:40 +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
a9b515c0bf
* fexpand defines kept in platform specific sysutils.pp
...
git-svn-id: trunk@3726 -
2006-05-28 21:29:26 +00:00
armin
31be63f9b5
changed handle to THandle
...
git-svn-id: trunk@3232 -
2006-04-16 15:28:10 +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
armin
6f66b80ea8
* rtl code cleanup, compat fixes between clib and libc
2005-01-04 11:25:33 +00:00
armin
41e0b1a0a7
* added NetWare Alert
...
* added sysutils.sleep
2004-12-16 12:42:54 +00:00
armin
e564787163
* dont copy imp files with a rule because this always builds system.pp
...
* implemented GetEnvironmentVariableCount and GetEnvironmentString
* removed dependency from dos unit
2004-12-14 19:23:22 +00:00
michael
fbb13b5266
+ Added GetEnvironmentVariableCount and GetEnvironmentString calls
2004-12-11 11:32:44 +00:00
armin
173aea0681
* exiting threads at nlm unload
...
* renamed some libc functions
2004-09-26 19:23:34 +00:00
armin
811f2da364
* removed get/free video buf from video.pp
...
* implemented sockets
* basic library support
* threadvar memory leak removed
* fixes (ide now starts and editor is usable)
* support for lineinfo
2004-09-19 20:06:37 +00:00
armin
76400e6c05
* added keyboard and video
...
* a lot of fixes
2004-09-12 20:51:22 +00:00
armin
4add7ccbc6
* first rtl version for netwlibc
2004-09-05 20:58:47 +00:00