Commit graph

435 commits

Author SHA1 Message Date
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
Tomoya Tanjo
01d8dd9c6d Make std.file.getTimes safe 2014-08-23 12:49:09 +09:00
Михаил Страшун
fb82fa8c37 Merge pull request #2445 from tom-tan/safe-unittest-for-file-getSize
Mark a unittest for std.file.getSize as safe
2014-08-21 18:48:33 +02:00
Tomoya Tanjo
209447754f Mark std.file.getTimesWin as safe 2014-08-21 15:58:20 +09:00
Tomoya Tanjo
718b40e7b4 Mark a unittest for std.file.getSize as safe 2014-08-21 14:34:38 +09:00
Dmitry Olshansky
a108353290 Merge pull request #2385 from tom-tan/trusted-file-getSize
Mark std.file.getSize as trusted
2014-08-09 19:12:41 +04:00
Lars T. Kyllingstad
8ce300ac97 Deprecated most of the old std.process functions
I have purposefully omitted doing anything about the exec* function
family here, as their fate is still under discussion.
2014-08-07 21:21:19 +02:00
Joakim
60cfc11a11 Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path 2014-08-04 23:33:25 -05:00
Tomoya Tanjo
c572ce776e Use nested trusted function 2014-08-01 13:43:11 +09:00
Tomoya Tanjo
06c47d0157 Mark std.file.getSize as trusted 2014-07-31 15:18:37 +09:00
Tomoya Tanjo
9157f52e51 Mark unittests for std.file.readText, rename and exists as safe 2014-07-31 11:36:30 +09:00
David Nadlinger
b5a783bf40 Merge pull request #2378 from tom-tan/trusted-file-readText
Mark std.file.readText as trusted
2014-07-30 18:16:14 +02:00
Tomoya Tanjo
7aecde3a55 Mark std.file.readText as trusted 2014-07-31 00:17:24 +09:00
Tomoya Tanjo
e339c907e1 Mark std.file.getFileAttributesWin as trusted and makeUlong as safe pure
nothrow nogc
2014-07-30 13:41:39 +09:00