# std.os and std.io API update · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/46aa416c48c283849059292267ac25a6d0db76d6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 46aa416c48c283849059292267ac25a6d0db76d6

Requested commit: 46aa416c48c283849059292267ac25a6d0db76d6

Commit: 46aa416c48c283849059292267ac25a6d0db76d6

Tree: ce260c8f27835122f09c010387e7c59aabe3a59d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.os and std.io API update

 * move std.io.File to std.os.File
 * add `zig fmt` to self hosted compiler
 * introduce std.io.BufferedAtomicFile API
 * introduce std.os.AtomicFile API
 * add `std.os.default_file_mode`
 * change FileMode on posix from being a usize to a u32
 * add std.os.File.mode to return mode of an open file
 * std.os.copyFile copies the mode from the source file instead of
   using the default file mode for the dest file
 * move `std.os.line_sep` to `std.cstr.line_sep`

```

## Parents

- [8c31eaf2a87d39fe2f9ed8f5af2a059048bfffb3](https://git.cafe/gitcafe/zig/commit/8c31eaf2a87d39fe2f9ed8f5af2a059048bfffb3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/46aa416c48c283849059292267ac25a6d0db76d6?format=markdown)
