Commit Graph

46 Commits

Author SHA1 Message Date
pierre
04a2d0bc94 * Handle -1 return if GetFileAttr call inside DirectoryExists
git-svn-id: trunk@18220 -
2011-08-16 15:01:20 +00:00
Tomas Hajny
6992049034 * fix for a silly typo in the previous revision
git-svn-id: trunk@18189 -
2011-08-13 18:18:15 +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
pierre
9d763ec052 * Avoid warnings about pointer to signed integers typecasts
+ Accept on trailing directory seperator for DirectoryExists
    and handle 'X:' directory separately by calling
    GetDir(drive,dir) to find the current directory of the drive
    considered.

git-svn-id: trunk@18176 -
2011-08-12 08:35:55 +00:00
pierre
1dfa5c2e74 + Implement !proxy support for long command line
this allows passing command lines longer than 126 chars to
    Free Pascal or go32v2 programs.

    By default only command lines longer than 126 chars are
    passed using !proxy method,
    it is however possible to disable this conversion completely by
    set Use_go32v2_proxy boolean variable to false (true by fdefault).
    In that case, command lines longer than 126 will be truncated, but
    a warning is echoed to stderr.
    For testing purposes, it is possible to set the boolean variable
    force_go32v2_proxy to true to force systematic use of this
    conversion.

    This is set by default if the RTL is compiled with
    SYSTEM_DEBUG_STARTUP conditional set.

    To allow use by sysutils unit, a new procedure:
    exec_ansistring(path : string;comline : ansistring);

    has been added to the interface, which is now called instead
    of Dos.Exec from Sysutils.ExecuteProcess

git-svn-id: trunk@18159 -
2011-08-10 14:27:24 +00:00
michael
a201f07420 * Added share mode argument to FileCreate call
git-svn-id: trunk@17548 -
2011-05-23 21:11:07 +00:00
pierre
9276fa437f * Fix tw1041 test failure
git-svn-id: trunk@16571 -
2010-12-16 13:25:20 +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
Tomas Hajny
573bc3b767 * inline on needed for 2.0.x
git-svn-id: trunk@8532 -
2007-09-17 21:19:12 +00:00
Tomas Hajny
f0959c1b1d * yet another fix for DiskFree/DiskSize
git-svn-id: trunk@8516 -
2007-09-16 20:17:27 +00:00
Tomas Hajny
77fe5f40fe * remove erratic / unreliable check for DOS version in Do_DiskData
git-svn-id: trunk@8461 -
2007-09-13 20:54:00 +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
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
8280fbe06c * FileOpen fixes for DR-DOS, resourcestring in ExecuteProcess, implementation of Sleep changed to give up timeslices 2004-12-18 20:22:17 +00:00
michael
fbb13b5266 + Added GetEnvironmentVariableCount and GetEnvironmentString calls 2004-12-11 11:32:44 +00:00
Tomas Hajny
601f2e02ce * overloaded ExecuteProcess added, EnvStr param changed to longint 2004-02-15 21:34:06 +00:00
Jonas Maebe
5386a1c2ca * fixed compilation errors 2004-01-25 13:05:08 +00:00
Tomas Hajny
e0f9297e01 * ExecuteProcess fixes, ProcessID and ThreadID added 2004-01-20 23:05:31 +00:00
michael
5a1477ef6f + Added rtlconst dependency to classes.ppu and implemented sysutils.sleep 2004-01-10 20:25:14 +00:00
Jonas Maebe
c6550c2b3b * fixed compilation 2004-01-10 10:49:24 +00:00
florian
058d480f40 * error handling for Variants improved 2003-11-26 20:00:19 +00:00
florian
99b2916678 * applied patch from Joe da Silva to fix OpenFile on older DOS versions 2003-11-05 11:42:27 +00:00
Tomas Hajny
57538cb669 * THandle in sysutils common using System.THandle 2003-10-25 23:42:35 +00:00
michael
7f072488e3 + Patch from Peter for millisecond timing 2003-06-03 07:54:27 +00:00
peter
6547b5129f * fix argument names 2003-04-02 15:18:28 +00:00
peter
60e5c18645 * made THandle platform dependent and unique type 2003-04-01 15:57:41 +00:00
Tomas Hajny
9e0f41900a * DirectoryExists declaration changed to that one from fixes branch 2003-03-29 18:21:41 +00:00
peter
1714855f8e * directoryexists added 2003-03-28 19:06:59 +00:00
peter
1ac1f644da * FileCreate(string,mode) overload added 2003-01-03 20:41:04 +00:00
peter
9f31783a0a * old logs removed and tabs fixed 2002-09-07 16:01:16 +00:00
carl
75a02e7812 * Merges from Fixes branch 2002-05-09 08:42:24 +00:00
peter
24fdea1ad0 * merged filesearch() fix 2002-01-25 16:23:03 +00:00
peter
de31797244 * merged fixes 2002-01-19 11:57:55 +00:00
peter
36bafdc7aa * added 64bit fileseek 2001-10-25 21:23:49 +00:00
peter
47a24b5da6 * eoutofmemory and einvalidpointer fix 2001-06-03 15:18:01 +00:00
peter
36e5967c3b * merged getenvironmentvariable 2001-02-20 22:14:19 +00:00
michael
12d7aaabe7 + Merged syserrormsg fix 2000-08-30 06:29:19 +00:00
peter
d24c580d24 * sysutils.pp moved to target and merged with disk.inc, filutil.inc 2000-08-20 15:46:46 +00:00