GrayJack / coreutils

Core utils re-implementation for UNIX/UNIX-like systems written in Rust
Mozilla Public License 2.0
106 stars 40 forks source link

mktemp: Initial implementation #95

Closed tobbez closed 4 years ago

GrayJack commented 4 years ago

Wow!! Amazing!! Thanks for the contribution, gonna look at the code :3

tobbez commented 4 years ago

mkdtemp returns a string since it's the only meaningful thing it can return.

In the process of creating a temporary file with mkstemp(3) you get an open file and its file name back, but when creating a directory with mkdtemp(3) you only get its name.