# add a std lib test for reading and writing files · gitcafe/zig

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

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

Visibility: public

Requested revision: 1ac46fac15953820948b77b94083828f84673641

Requested commit: 1ac46fac15953820948b77b94083828f84673641

Commit: 1ac46fac15953820948b77b94083828f84673641

Tree: 057f8630fc4db8bc02e5e4a56d483d75fcc23fe9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add a std lib test for reading and writing files

 * fix fstat wrong on darwin
 * move std.debug.global_allocator to std.debug.global_allocator_state and make it private
 * add std.debug.global_allocator as a pointer (to upgrade your zig code remove
   the '&')

```

## Parents

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

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