diff options
author | Homu <homu@barosl.com> | 2016-10-02 22:36:18 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-10-02 22:36:18 +0900 |
commit | 1222f52954205288e3c25b870c13138d361a65d7 (patch) | |
tree | 76780cdcdefa8d04b95f7b97091079cc4f6ab39c /src/ucontext.rs | |
parent | 1b4656f49172f65e2af2291ecee8c72b0e92bc17 (diff) | |
parent | b47120d5dcb2ab71cd0ac5ee75017eee4c4f9114 (diff) | |
download | nix-1222f52954205288e3c25b870c13138d361a65d7.zip |
Auto merge of #428 - philippkeller:mkstemp, r=fiveop
Add Mkstemp (fixed for rust 1.2)
I fixed @antifuchs addition of `mkstmp` in https://github.com/nix-rust/nix/pull/365 by making it compile in Rust 1.2 and adding documentation.
A few remarks:
- made it working with Rust 1.2 which needed `to_bytes_with_nul()`. I think the implementation is memory safe but would like to have a pair of eyes checking that
- replaced Path by PathBuf so it's more in line with getcwd
- I didn't move it into another module. If this still the consensus then I would like to do that but in a separate PR (probably moving all stdio methods out)
- it's true that unistd doesn't need mkstmp since there is the crate tempdir and tempfile, but I'd love to see this here for completeness
Diffstat (limited to 'src/ucontext.rs')
0 files changed, 0 insertions, 0 deletions