add TODO notes for Non-POSIX functions and include
This commit is contained in:
@@ -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
|
||||
"""
|
||||
|
||||
@@ -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()`.
|
||||
|
||||
Reference in New Issue
Block a user