Commit Graph

15 Commits

Author SHA1 Message Date
Michael VAN CANNEYT
d88a7c2e24 * Char -> AnsiChar 2023-07-14 17:26:10 +02:00
Tomas Hajny
288c7e3c9e * Do_IsDevice treats pipes and sockets the same way as character devices
git-svn-id: trunk@46863 -
2020-09-13 22:08:18 +00:00
Tomas Hajny
a4df1b644c * allow Append to work on character devices
git-svn-id: trunk@29669 -
2015-02-11 00:08:53 +00:00
Tomas Hajny
acbca7254d * remove unused local variable
git-svn-id: trunk@29177 -
2014-11-29 01:29:31 +00:00
pierre
7bbb30ccd4 * Reset filerec mode field to fmClosed if the system call to open the file failed
git-svn-id: trunk@29132 -
2014-11-23 21:49:29 +00:00
Tomas Hajny
8cd2b615ce * added (limited) GetLastOSError by emulation of Win32 and *nix behaviour in the RTL
git-svn-id: trunk@28947 -
2014-10-30 14:44:03 +00:00
Jonas Maebe
df6a2dce00 + unicodestring support for assign/erase/rename
+ codepage support for textrec/filerec and the above routines
  * textrec/filerec now store the filename by default using widechar. It is
    possible to switch back to ansichars using the FPC_ANSI_TEXTFILEREC define.
    In that case, from now on the filename will always be stored in
    DefaultFileSystemEncoding
  * fixed potential buffer overflows and non-null-terminated file names in
    textrec/filerec
  + dodirseparators(pwidechar), changed the dodirseparators(pchar/pwidechar)
    parameters into var-parameters and gave those routines an extra parameter
    that indicates whether the p(wide)char can be changed in place if
    necessary or whether a copy must be made first (avoids us having to make
    all strings always unique everywhere, because they might be changed on
    some platforms via a pchar)
  * do_open/do_erase/do_rename got extra boolean parameters indicating whether
    the passed pchars point to data that can be freely changed (to pass on to
    dodirseparators() if applicable)
  * objects.pp: force assign(pchar) to be called, because
    assign(array[0..255]) cannot choose between pchar and rawbytestring
    versions (and removing the pchar version means that assign(pchar) will
    be mapped to assign(shortstring) in {$h-})
  * fixed up some routines in other units that depend on the format of
    the textrec/filerec.name field

git-svn-id: branches/cpstrrtl@25137 -
2013-07-19 16:30:51 +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
Tomas Hajny
1740525027 + dynamically loaded 64-bit FS calls made available outside unit System
git-svn-id: trunk@6723 -
2007-03-05 00:17:27 +00:00
Tomas Hajny
67bba60578 * 64-bit I/O calls
git-svn-id: trunk@3941 -
2006-06-25 15:10:14 +00:00
Tomas Hajny
bafdfa7a9c + preparations for conditional 64-bit FS support
git-svn-id: trunk@3802 -
2006-06-04 21:26:56 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +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
peter
e49fa4bd08 * threads for go32v2,os,emx,netware 2005-02-06 16:57:18 +00:00