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

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

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

Visibility: public

Requested revision: 91040b567863e7c068b21d7c6bbf76a1d28a2b2d

Requested commit: 91040b567863e7c068b21d7c6bbf76a1d28a2b2d

Commit: 91040b567863e7c068b21d7c6bbf76a1d28a2b2d

Tree: b33b08ab3c110f4a9d002f29ec18fcc34ce032e7

Author: Sardorbek Imomaliev

Committer: GitHub

## 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

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

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