| author | |
| committer | |
| log | cb182432b08d13a343d1db5f4ee06c9c90430779 |
| tree | e9757c39bf32da7a23684c40c0410c8ccde05d81 |
| parent | a31fe8aa3ed4868fb10000c1e3eeaa094488fc94 |
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.1 files changed, 2 insertions(+), 0 deletions(-)
lib/std/c/freebsd.zig+2| ... | ... | @@ -1870,3 +1870,5 @@ pub const MFD = struct { |
| 1870 | 1870 | |
| 1871 | 1871 | pub extern "c" fn memfd_create(name: [*:0]const u8, flags: c_uint) c_int; |
| 1872 | 1872 | pub extern "c" fn copy_file_range(fd_in: fd_t, off_in: ?*off_t, fd_out: fd_t, off_out: ?*off_t, len: usize, flags: u32) usize; |
| 1873 | pub extern "c" fn eventfd(initval: c_uint, flags: c_uint) c_int; | |
| 1874 | pub extern "c" fn dup3(old: c_int, new: c_int, flags: c_uint) c_int; |