# std.mem.indexOfSentinel: don't ask the OS the page size · gitcafe/zig

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

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

Visibility: public

Requested revision: faf256e429914a816dd5ab1555671b7ee69ecc4e

Requested commit: faf256e429914a816dd5ab1555671b7ee69ecc4e

Commit: faf256e429914a816dd5ab1555671b7ee69ecc4e

Tree: 0d18c16ef226ba40119455d0e9ed4a8ea2c82512

Author: Andrew Kelley

Committer: David Rubin

## Message

```
std.mem.indexOfSentinel: don't ask the OS the page size

simply use page_size_min instead.

better yet, this logic would avoid depending on page size entirely...

```

## Parents

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

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