diff --git a/tools/doc/html.js b/tools/doc/html.js
index c7ffb392e05ad2..510e2b08d22370 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -120,6 +120,8 @@ function preprocessText() {
// Syscalls which appear in the docs, but which only exist in BSD / macOS.
const BSD_ONLY_SYSCALLS = new Set(['lchmod']);
+const LINUX_DIE_ONLY_SYSCALLS = new Set(['uname']);
+const HAXX_ONLY_SYSCALLS = new Set(['curl']);
const MAN_PAGE = /(^|\s)([a-z.]+)\((\d)([a-z]?)\)/gm;
// Handle references to man pages, eg "open(2)" or "lchmod(2)".
@@ -136,6 +138,14 @@ function linkManPages(text) {
return `${beginning}${displayAs}`;
}
+ if (LINUX_DIE_ONLY_SYSCALLS.has(name)) {
+ return `${beginning}${displayAs}`;
+ }
+ if (HAXX_ONLY_SYSCALLS.has(name)) {
+ return `${beginning}${displayAs}`;
+ }
+
return `${beginning}${displayAs}`;
});