Commit graph

348 commits

Author SHA1 Message Date
Walter Bright
dc302d26a4 DIP25: make phobos work with it 2015-01-30 12:02:48 -08:00
Ulrich Küttler
56ea547034 fix comment 2014-12-08 09:42:56 +01:00
Ulrich Küttler
eaf99c607f Add PreserveAttributes flag to copy function to preserve file attributes (issue 11434) and current behavior (not at the same time)
Avoid compiler errors from new versions

rename flag

add documentation and spaces
2014-12-06 19:43:53 +01:00
Timothee Cour
25babfc37d added version(Posix) to unittest 2014-12-04 22:13:37 +01:00
Timothee Cour
82c506c95d fix issue 11434 2014-12-04 22:13:37 +01:00
k-hara
c6d1f79b5b Add missing imports 2014-12-05 00:13:45 +09:00
Martin Nowak
3473f6b5c7 Merge pull request #2765 from 9il/rename
std.range: constraints => primitives
2014-11-24 14:38:59 +01:00
Ilya Yaroshenko
2c744b54e1 std.range: constraints => primitives
See discussion and voting in #2661
2014-11-23 20:05:20 +03:00
kai
e838cc73ac Solaris changes for std.file and std.socket.
std.file: Add implementation for thisExePath(), fix struct DirEntry
std.socket: Add implementation for formatSocketError
2014-11-22 00:18:49 +01:00
k-hara
b80083f198 fix property enforcement 2014-11-20 22:37:57 +09:00
Ilya Yaroshenko
1be2f486fb std.file: clean imports
fix

fix

fix

fix

fix

fix

fix
2014-11-15 19:27:10 +03:00
jmdavis
76df657bb4 Move some deprecations along. 2014-10-26 19:31:08 -07:00
Andrei Alexandrescu
6fe8b57728 Merge pull request #2597 from tom-tan/safe-file-readLink
Make std.file.readLink safe
2014-10-19 11:43:52 -07:00
Andrei Alexandrescu
a62bdfe63f Merge pull request #2601 from tom-tan/safe-file-DirEntry-_ensureStatDone
Make std.file.DirEntry._ensureStatDone safe
2014-10-19 08:53:27 -07:00
Tomoya Tanjo
2bec7fc296 Make std.file.DirEntry._ensureStatDone safe 2014-10-09 19:04:18 +09:00
Tomoya Tanjo
03dbb80446 Mark a unittest for std.file.thisExePath as safe 2014-10-09 18:53:16 +09:00
Tomoya Tanjo
303cc83de0 Make std.file.readLink safe 2014-10-09 10:27:50 +09:00
Tomoya Tanjo
6ed5c51163 Make std.file.symlink safe 2014-10-08 14:43:01 +09:00
Tomoya Tanjo
4de8acff18 Fix the documentation for mkdir 2014-09-29 10:57:29 +09:00
Tomoya Tanjo
1ef562de1f Use std.windows.syserror.wenforce instead of cenforce on Windows 2014-09-27 23:53:46 +09:00
Tomoya Tanjo
52b3e44ff5 Make std.file.mkdir safe 2014-09-27 03:32:43 +09:00
Tomoya Tanjo
1baaa911cd Call cenforce in one line 2014-09-27 00:37:58 +09:00
Tomoya Tanjo
95e526499b Make std.file.chdir safe 2014-09-26 17:43:50 +09:00
Dmitry Olshansky
64e2233182 Merge pull request #2520 from tom-tan/safe-file-isFile-isSymlink
Make std.file.isFile, isSymlink and their unittests safe
2014-09-20 12:41:41 +04:00
Tomoya Tanjo
68048967ae Fix argument for isSymlink, and fix unittest for it 2014-09-20 16:11:07 +09:00
Tomoya Tanjo
1a91e853e6 Make std.file.setAttributes safe 2014-09-18 14:43:02 +09:00
k-hara
0bc582f51e Add missing imports 2014-09-17 21:14:12 +09:00
Tomoya Tanjo
3a55c93825 Fix trustedSymlink to use toStringz 2014-09-17 11:21:46 +09:00
Tomoya Tanjo
1ac1cb672a Make std.file.isFile, isSymlink and their unittests safe 2014-09-16 16:35:35 +09:00
Tomoya Tanjo
4c7abb11d2 Mark unittests for std.file.attrIsDir and attrIsFile as safe 2014-09-16 16:14:57 +09:00
JakobOvrum
a5cf543fd5 Merge pull request #2516 from tom-tan/safe-file-getLinkAttributes
Make std.file.getLinkAttributes safe
2014-09-16 15:59:08 +09:00
Tomoya Tanjo
2114694360 Mark std.file.isDir and its unittest as safe 2014-09-16 14:11:54 +09:00
Tomoya Tanjo
71d461ba4e Make std.file.getLinkAttributes safe 2014-09-16 12:10:38 +09:00
H. S. Teoh
72ee9ab8b7 Merge pull request #2496 from tom-tan/safe-file-getAttributes
Make std.file.getAttributes safe
2014-09-15 16:18:16 -07:00
Jay Pinkman
5eec258514 make it easier to find getcwd() in the docs 2014-09-11 00:22:55 +03:00
Tomoya Tanjo
19cf705be5 Make std.file.getAttributes safe 2014-09-08 16:39:31 +09:00
Dicebot
8b2b66a63a Further increase buffer for GetTempPathW
Documentation can be interpreted as if null terminator is not counted, better to be safe than sorry.
2014-09-06 19:07:24 +02:00
H. S. Teoh
a54b129091 Merge pull request #2486 from tom-tan/safe-pure-nogc-attrIsDir-attrIsFile-attrIsSymlink
Mark std.file.attrIsDir, attrIsFile and attrIsSymlink as safe pure nogc
2014-09-05 11:54:15 -07:00
Felix Hufnagel
298a324fdc Update file.d
The maximum possible return value is MAX_PATH+1 (261).

see aa364992(v=vs.85).aspx
2014-09-05 12:21:51 +02:00
Tomoya Tanjo
ffdd6f0afd Mark std.file.attrIsDir, attrIsFile and attrIsSymlink as safe pure nogc 2014-09-05 15:57:10 +09:00
Михаил Страшун
b30c5b30ed Merge pull request #2479 from denis-sh/fix-some-property-enforcements
Fix some property enforcements.
2014-09-01 19:23:43 +02:00
Denis Shelomovskij
d63035003a Fix some property enforcements. 2014-09-01 18:01:16 +04:00
H. S. Teoh
76db0de19c Eliminate C-style array declarations. 2014-08-30 06:51:27 -07:00
Tomoya Tanjo
f7fc11ee8f Make std.file.timeLastModified with two arguments safe 2014-08-29 15:10:11 +09:00
H. S. Teoh
6cd2e43eab Merge pull request #2466 from tom-tan/safe-file-timeLastModified
Make std.file.timeLastModified(in char[]) safe
2014-08-28 10:12:50 -07:00
Tomoya Tanjo
72c2867713 Remove void initializers 2014-08-28 10:59:45 +09:00
Tomoya Tanjo
499085e89c Make std.file.timeLastModified safe 2014-08-26 16:40:42 +09:00
Tomoya Tanjo
3657448052 Make std.file.setTimes safe 2014-08-26 16:20:17 +09:00
Denis Shelomovskij
ff144b0ae0 Replace most toStringz/toUTF16z/toUTFz usages with tempCString* ones.
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
Jonathan M Davis
40f63b2368 Merge pull request #2446 from tom-tan/safe-file-getTimes
Make std.file.getTimes safe
2014-08-22 22:01:04 -07:00