configure: remove now-unneeded HAVE_PWRITEV.
What changed, and why it matters
This commit removes an old build-system check that tested whether the operating system supports a function called pwritev(). The project no longer uses pwritev() in its code, so the check is unnecessary. This is a routine cleanup with no security relevance.
No security action needed. Treat as normal build-system maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The configure script previously probed for HAVE_PWRITEV because gossipd used pwritev(). The commit removes that autoconf-style probe because gossipd has been changed to use pwrite() instead, which is more widely available. The diff only deletes the probe code; no runtime logic changes.
Changed components
configure scriptInspect captured patch +0 / −23
diff --git a/configure b/configure
index ebfe22af..7375b3d4 100755
--- a/configure
+++ b/configure
@@ -488,29 +488,6 @@ code=
#error "Not modern GCC"
#endif
/*END*/
-var=HAVE_PWRITEV
-desc=pwritev() defined
-style=DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE
-code=
-#include <sys/uio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-int main(void)
-{
- struct iovec iov[2];
- int fd = open("/dev/null", O_WRONLY);
-
- iov[0].iov_base = "hello";
- iov[0].iov_len = 5;
- iov[1].iov_base = " world";
- iov[1].iov_len = 6;
- if (pwritev(fd, iov, 2, 0) == 11)
- return 0;
- return 1;
-}
-/*END*/
EOF
if check_command 'python3-mako' python3 -c 'import mako'; then
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.