# add macOS handling for totalSystemMemory \(\#24903\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 6f07cc95d0c17c7778b37eea646a20886bc7d34c

Requested commit: 6f07cc95d0c17c7778b37eea646a20886bc7d34c

Commit: 6f07cc95d0c17c7778b37eea646a20886bc7d34c

Tree: 68665d2f75440aa4187f3171bdea693df5640264

Author: Sardorbek Imomaliev

Committer: Alex Rønne Petersen

## Message

```
add macOS handling for totalSystemMemory (#24903)

* add macos handling for totalSystemMemory

* fix return type cast for .freebsd in totalSystemMemory

* add handling for the whole Darwin family in totalSystemMemory
```

## Parents

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

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