# Macos system call validation failure

**URL:** <https://ziggit.dev/t/macos-system-call-validation-failure/16409>\
**Category:** Help\
**Tags:** standard-library\
**Created:** [June 29, 2026, 2:12pm UTC](https://ziggit.dev/t/macos-system-call-validation-failure/16409 "2026-06-29T14:12:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![npc1054657282](https://ziggit.dev/user_avatar/ziggit.dev/npc1054657282/32/5790_2.png) [@npc1054657282](https://ziggit.dev/u/npc1054657282)\
**Post date:** [June 29, 2026, 9:46pm UTC](https://ziggit.dev/t/macos-system-call-validation-failure/16409/4 "2026-06-29T21:46:28Z")

</div>

The code under `std.os` isn’t portable, so obviously `std.os.linux` code won’t work on macOS.  
edit: This might be what you want

> [@Get CWD path without \`realPath\`](https://ziggit.dev/t/get-cwd-path-without-realpath/16293/2):
>
> Hi, and welcome to Ziggit slight_smile I know of [std.process.currentPath()](https://ziglang.org/documentation/master/std/#std.process.currentPath). It returns current working directory of the executed program.

---

_[View the full topic](https://ziggit.dev/t/macos-system-call-validation-failure/16409)._
