mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 11:37:24 +03:00
Merge pull request #2298 from tom-tan/trusted-file-writeImpl
Mark std.file.writeImpl as @trusted
This commit is contained in:
commit
e3888bd717
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue