Jonas Maebe
b106ded0e9
* use SystemFileName instead of the original FileName in DeleteFile()
...
git-svn-id: trunk@26365 -
2014-01-03 10:59:25 +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
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
Tomas Hajny
2f25717e67
* GetTickCount(64) implementation for OS/2 added
...
git-svn-id: trunk@23239 -
2012-12-28 12:53:55 +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
49a7b48fe0
* proper support for ExecInheritsHandles in Flags
...
git-svn-id: trunk@19368 -
2011-10-04 22:10:21 +00:00
Tomas Hajny
f13c5fae05
* additional fixes for ExecuteProcess - running of DOS programs in current directory and proper closing of the created queue
...
git-svn-id: trunk@19323 -
2011-10-02 01:41:56 +00:00
Tomas Hajny
e9f6afe5e0
* fix for ExecuteProcess - starting of different executable types works properly now; dependency on unit Dos removed; redefinitions of imports from DosCalls removed also - unit DosCalls used directly now
...
git-svn-id: trunk@19319 -
2011-10-01 23:10:22 +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
cbe040bcc7
* more complete/safer checking of sharing mode values allowed by OS/2
...
git-svn-id: trunk@17564 -
2011-05-26 21:11:09 +00:00
Tomas Hajny
39312473cb
* real implementation for FileCreate with ShareMode
...
git-svn-id: trunk@17563 -
2011-05-26 20:37:43 +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
86d9eadc73
* Fixed spell errors.
...
git-svn-id: trunk@17177 -
2011-03-25 09:33:15 +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
michael
01ed4a6745
* Implemented OnBeep to install custom beep handler
...
git-svn-id: trunk@14254 -
2009-11-22 17:33:56 +00:00
michael
ddd02b7f26
* Change so that when FindFirst initially returns nonzero, FindClose is no longer needed (Windows compatible)
...
git-svn-id: trunk@13210 -
2009-05-29 07:27:41 +00:00
Tomas Hajny
5e1a7997ee
+ FileTruncate allows 64-bit parameter
...
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
Tomas Hajny
b9c017eb60
+ support for 64-bit FS calls
...
git-svn-id: trunk@6724 -
2007-03-05 00:29:11 +00:00
micha
ce9e589e15
* fix FileSeek implementation to match declaration
...
git-svn-id: trunk@5159 -
2006-11-01 17:47:47 +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
7b9c5f5c50
* fix for pointer increase
...
git-svn-id: trunk@3178 -
2006-04-08 19:36:05 +00:00
Tomas Hajny
3114cbe049
* fix for buggy FileExists and DirectoryExists
...
git-svn-id: trunk@2684 -
2006-02-26 00:28:26 +00:00
Tomas Hajny
f9e28f363d
* workaround for OS/2 bug - check for 64kB border crossing in parameters for DosExecPgm
...
git-svn-id: trunk@1861 -
2005-12-01 22:07:32 +00:00
Tomas Hajny
86e2b7f402
* fix for range check error during compilation
...
git-svn-id: trunk@1088 -
2005-09-15 20:36:51 +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
Tomas Hajny
0af5c95b6c
* SysLocale initialized to empty for OS/2 too - probably wrong for DBCS versions
2005-03-01 23:27:57 +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
2b40d78b32
* one more fix for ExecuteProcess
2004-12-06 22:11:47 +00:00
Tomas Hajny
aad1f7964a
* fix for ExecuteProcess
2004-12-06 18:50:21 +00:00
Tomas Hajny
db6015805a
* ExecuteProcess update - run VIO apps in the same window
2004-12-05 19:33:08 +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
601f2e02ce
* overloaded ExecuteProcess added, EnvStr param changed to longint
2004-02-15 21:34:06 +00:00
yuri
b1a8443699
* fixes for dosh.inc
...
* Executeprocess iverloaded function
* updated todo
2004-02-15 08:02:44 +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
yuri
0646b94499
* Now native
2003-11-23 15:50:07 +00:00