# macos: getFdPath: handle E.NOSPC · gitcafe/zig

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

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

Visibility: public

Requested revision: 4cdbde55b4b1adcd27be3b0a3d7c888e90df2399

Requested commit: 4cdbde55b4b1adcd27be3b0a3d7c888e90df2399

Commit: 4cdbde55b4b1adcd27be3b0a3d7c888e90df2399

Tree: 3221f7c4d4bd6f63f520670dcc1b9ff03cee2a19

Author: Michael Dusan

Committer: Michael Dusan

## Message

```
macos: getFdPath: handle E.NOSPC

- per darwin-xnu source, fcntl F_GETPATH will return ENOSPC when path
  exceeds either user-supplied buffer or system MAXPATHLEN
- macOS does not document this (and other) possible errno values

```

## Parents

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

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