aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-08-31 01:05:27 +0200
committerAlejandro Colomar <alx@kernel.org>2023-08-31 01:44:02 +0200
commitdf2441df2b39136f9777adbdc4ade121b0e471d4 (patch)
tree9c88c1d1c9e719db1b236073f8151d7cbf4d2501
parent613ce42cdc9063007385c202c4da369bdbc58ca3 (diff)
downloadman-pages-df2441df2b39136f9777adbdc4ade121b0e471d4.tar.gz
man3/: EXAMPLES: Don't build programs that have UB on purpose
It doesn't make sense linting and building these, as we know they'll yell at us. Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/malloc_info.32
-rw-r--r--man3/mallopt.32
-rw-r--r--man3/mcheck.32
-rw-r--r--man3/mtrace.32
4 files changed, 4 insertions, 4 deletions
diff --git a/man3/malloc_info.3 b/man3/malloc_info.3
index 05aa753d61..4cf1ae515c 100644
--- a/man3/malloc_info.3
+++ b/man3/malloc_info.3
@@ -162,7 +162,7 @@ glibc 2.13
.EE
.in
.SS Program source
-.\" SRC BEGIN (malloc_info.c)
+.\" [[memory leak]] SRC BEGIN (malloc_info.c)
.EX
#include <err.h>
#include <errno.h>
diff --git a/man3/mallopt.3 b/man3/mallopt.3
index 5f73c499de..03f2083ac5 100644
--- a/man3/mallopt.3
+++ b/man3/mallopt.3
@@ -569,7 +569,7 @@ main(): returned from second free() call
.in
.SS Program source
\&
-.\" SRC BEGIN (mallopt.c)
+.\" [[memory leak]] SRC BEGIN (mallopt.c)
.EX
#include <malloc.h>
#include <stdio.h>
diff --git a/man3/mcheck.3 b/man3/mcheck.3
index 27d0c2f43a..285ea946ca 100644
--- a/man3/mcheck.3
+++ b/man3/mcheck.3
@@ -179,7 +179,7 @@ Aborted (core dumped)
.in
.SS Program source
\&
-.\" SRC BEGIN (mcheck.c)
+.\" [[memory leak]] SRC BEGIN (mcheck.c)
.EX
#include <mcheck.h>
#include <stdio.h>
diff --git a/man3/mtrace.3 b/man3/mtrace.3
index 07ca964540..f30511cd0b 100644
--- a/man3/mtrace.3
+++ b/man3/mtrace.3
@@ -124,7 +124,7 @@ The demonstration uses the following program:
.PP
.in +4n
.RB "$ " "cat t_mtrace.c"
-.\" SRC BEGIN (t_mtrace.c)
+.\" [[memory leak]] SRC BEGIN (t_mtrace.c)
.EX
#include <mcheck.h>
#include <stdio.h>