D-Programming-Language/phobos — pull request #2597 by tom-tan (2014-10-09 01:32:09+00:00)
Title: Make std.file.readLink safe

It includes the following unsafe operations but we can verify that they can be trusted.
- use of unsafe functions `core.sys.posix.unistd.readlink`, `std.internal.cstring.tempCString`, `std.internal.cstring.tempCString.Res.~this` and `std.exception.assumeUnique`

I wrapped `readlink` and `tempCString` in one trusted function because `tempCString` returns a struct with unsafe destructor.