# std.os.getrusage: add C extern fn and reserved field · gitcafe/zig

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

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

Visibility: public

Requested revision: fee9318b1756054ff7050bae72c87a1b63a6f968

Requested commit: fee9318b1756054ff7050bae72c87a1b63a6f968

Commit: fee9318b1756054ff7050bae72c87a1b63a6f968

Tree: 232e1be13e56305b64400e0077a95907559a5f36

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.os.getrusage: add C extern fn and reserved field

 * add reserved field to match musl struct definition so that
   it will work with musl libc.
 * add libc getrusage so that it will work with libc

what's not done in this branch is:
 * test coverage. See #1629, which should also aim to provide
   general test coverage for the std lib.
 * rusage struct bits for non-linux operating systems

```

## Parents

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

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