# \[std.c\] Add eventfd and dup3 functions to FreeBSD · gitcafe/zig

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

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

Visibility: public

Requested revision: cb182432b08d13a343d1db5f4ee06c9c90430779

Requested commit: cb182432b08d13a343d1db5f4ee06c9c90430779

Commit: cb182432b08d13a343d1db5f4ee06c9c90430779

Tree: e9757c39bf32da7a23684c40c0410c8ccde05d81

Author: cryptocode

Committer: Andrew Kelley

## Message

```
[std.c] Add eventfd and dup3 functions to FreeBSD

The eventfd system call and dup3 library call have been available
since FreeBSD 13 and 10 respectively, and are thus available in
all [FreeBSD releases not deemed EOL](<https://endoflife.date/freebsd>)

The lack of these were discovered when porting a terminal emulator
to FreeBSD. It would be nice to have them included in Zig's stdlib.

```

## Parents

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

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