Merge pull request #2298 from tom-tan/trusted-file-writeImpl

Mark std.file.writeImpl as @trusted
This commit is contained in:
David Nadlinger 2014-07-10 21:43:01 +02:00
commit e3888bd717

View file

@ -376,7 +376,7 @@ void append(in char[] name, in void[] buffer)
// Posix implementation helper for write and append
version(Posix) private void writeImpl(in char[] name,
in void[] buffer, in uint mode)
in void[] buffer, in uint mode) @trusted
{
immutable fd = core.sys.posix.fcntl.open(toStringz(name),
mode, octal!666);