Commit graph

512 commits

Author SHA1 Message Date
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
Tomoya Tanjo
b4fef5d17a Mark a unittest for std.file.read as safe 2014-07-28 19:09:59 +09:00
Dmitry Olshansky
3fe0424b89 Merge pull request #2293 from tom-tan/trusted-file-read
Mark std.file.read as @trusted
2014-07-28 02:09:32 +04:00
Михаил Страшун
ec51209c9f Merge pull request #1653 from denis-sh/fix-bug-7648-comments
Fix bug 7648 comment in `std.stdio.File` and add bug section to `std.file.slurp`.
2014-07-12 05:17:13 +03:00
Михаил Страшун
3ee34072a6 Merge pull request #2150 from joakim-noah/android
Get tests passing on Android/x86
2014-07-12 04:05:07 +03:00
Tomoya Tanjo
f18dd38074 Mark std.file.write and append as trusted 2014-07-11 11:39:02 +09:00
David Nadlinger
e3888bd717 Merge pull request #2298 from tom-tan/trusted-file-writeImpl
Mark std.file.writeImpl as @trusted
2014-07-10 21:43:01 +02:00
David Nadlinger
057909bd2c Merge pull request #2300 from tom-tan/trusted-file-remove
Mark std.file.remove as @trusted
2014-07-10 20:15:07 +02:00
Joakim
11de397dd7 Start getting tests passing on Android/x86 2014-07-09 17:52:15 -05:00
Tomoya Tanjo
97259e87a6 Fix trustedRef 2014-07-04 15:38:42 +09:00
Tomoya Tanjo
65ef3b21e8 Using nested trusted functions 2014-07-04 15:10:13 +09:00
Tomoya Tanjo
6a24d5880e Change ReadFile(...) == 1 to ReadFile(...) != 0 2014-07-04 14:07:38 +09:00
Tomoya Tanjo
5774ec8492 Mark std.file.remove as @trusted 2014-07-03 16:04:47 +09:00
Tomoya Tanjo
0951655959 Mark std.file.rename as @trusted 2014-07-03 15:55:00 +09:00
Tomoya Tanjo
8b737f4606 Mark std.file.writeImpl as @trusted 2014-07-03 15:40:19 +09:00
Tomoya Tanjo
8feab930b6 Mark std.file.read as @trusted 2014-07-02 19:37:56 +09:00
k-hara
c90ef1b823 Mark some unittest blocks deprecated to suppress messages during Phobos build 2014-06-29 15:52:06 +09:00
Denis Shelomovskij
ccdfd1ecca Remove unused WinAPI ANSI function usages. 2014-06-12 17:22:18 +04:00
Andrej Mitrovic
45ef22eeab Merge pull request #1940 from JakobOvrum/fixgloblink
Fix cross-reference to std.path.globMatch from std.file.dirEntries
2014-02-15 12:32:00 +01:00
Jakob Ovrum
27a9b5987d Fix cross-reference to std.path.globMatch from std.file.dirEntries 2014-02-15 11:16:08 +01:00
Vladimir Panteleev
88f694dee3 std.file: Fix rmdirRecurse and symlinks/junctions on Windows 2014-02-15 03:36:54 +00:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
Andrej Mitrovic
1d7912c679 Merge pull request #1142 from MikeWey/Issue8298
Fix Issue #8298, Don't throw exceptions on broken symlinks.
2014-01-07 16:23:42 -08:00