add TODO notes for Non-POSIX functions and include

This commit is contained in:
auronandace
2026-06-14 14:29:32 +01:00
parent 60e301360c
commit 297bc7bd62
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ after_includes = """
#include <bits/ssize-t.h> // for ssize_t from sys/types.h
#include <bits/iovec.h> // for iovec
// TODO should be guarded by _DEFAULT_SOURCE or _BSD_SOURCE
// for Non-POSIX functions preadv and pwritev
#include <bits/off-t.h> // for off_t from sys/types.h
"""
+2
View File
@@ -14,6 +14,7 @@ use crate::{
pub use crate::header::bits_iovec::{gather, iovec, scatter};
// TODO should be guarded by _DEFAULT_SOURCE or _BSD_SOURCE
/// Non-POSIX, see <https://man7.org/linux/man-pages/man2/readv.2.html>.
///
/// Combines the functionality of `readv()` and `pread()`.
@@ -42,6 +43,7 @@ pub unsafe extern "C" fn preadv(
ret
}
// TODO should be guarded by _DEFAULT_SOURCE or _BSD_SOURCE
/// Non-POSIX, see <https://man7.org/linux/man-pages/man2/readv.2.html>.
///
/// Combined the functionality of `writev()` and `pwrite()`.