aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-02-26 14:14:02 +0100
committerAlejandro Colomar <alx@kernel.org>2024-02-26 16:26:31 +0100
commit8a60e58ba5dd4a1c4965b038d94edee83b3ebf01 (patch)
treefcc2a5c67de20bcc8c7253652e8baec2d869d7d1
parent5ad78dd5f1b5e8bee5691a5baaf08110e12ef20b (diff)
downloadman-pages-8a60e58ba5dd4a1c4965b038d94edee83b3ebf01.tar.gz
share/mk/, man*/: build-ex: Skip expected failures
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/_syscall.22
-rw-r--r--man2/bpf.22
-rw-r--r--man3/encrypt.32
-rw-r--r--man3/malloc_info.32
-rw-r--r--man3/mallopt.32
-rw-r--r--man3/matherr.32
-rw-r--r--man3/mcheck.32
-rw-r--r--man3/mtrace.32
-rw-r--r--man3/setbuf.32
-rw-r--r--share/mk/build/examples/cc.mk28
-rw-r--r--share/mk/build/examples/ld.mk26
11 files changed, 63 insertions, 9 deletions
diff --git a/man2/_syscall.2 b/man2/_syscall.2
index aab31b5450..0b781a39e9 100644
--- a/man2/_syscall.2
+++ b/man2/_syscall.2
@@ -123,7 +123,7 @@ passed by-value or by-pointer (for aggregates like structs).
.\" Otherwise, the use of a _syscall macro is required.
.\"
.SH EXAMPLES
-.\" [[deprecated]] SRC BEGIN (_syscall.c)
+.\" SRC BEGIN (_syscall.c)
.EX
#include <stdio.h>
#include <stdlib.h>
diff --git a/man2/bpf.2 b/man2/bpf.2
index e4390ff2a7..9b8e81fa24 100644
--- a/man2/bpf.2
+++ b/man2/bpf.2
@@ -1192,7 +1192,7 @@ riscv (since Linux 5.1).
.\" commit 2353ecc6f91fd15b893fa01bf85a1c7a823ee4f2
.PD
.SH EXAMPLES
-.\" [[FIXME]] SRC BEGIN (bpf.c)
+.\" SRC BEGIN (bpf.c)
.EX
/* bpf+sockets example:
* 1. create array map of 256 elements
diff --git a/man3/encrypt.3 b/man3/encrypt.3
index 47a9b918a7..4ec5cd7fd7 100644
--- a/man3/encrypt.3
+++ b/man3/encrypt.3
@@ -155,7 +155,7 @@ See
.SS Features in glibc
In glibc 2.2, these functions use the DES algorithm.
.SH EXAMPLES
-.\" [[deprecated]] SRC BEGIN (encrypt.c)
+.\" SRC BEGIN (encrypt.c)
.EX
#define _XOPEN_SOURCE
#include <crypt.h>
diff --git a/man3/malloc_info.3 b/man3/malloc_info.3
index 15f3d64e68..0aa55ba67b 100644
--- a/man3/malloc_info.3
+++ b/man3/malloc_info.3
@@ -162,7 +162,7 @@ glibc 2.13
.EE
.in
.SS Program source
-.\" [[memory leak]] SRC BEGIN (malloc_info.c)
+.\" SRC BEGIN (malloc_info.c)
.EX
#include <err.h>
#include <errno.h>
diff --git a/man3/mallopt.3 b/man3/mallopt.3
index 8308203ae6..8224872511 100644
--- a/man3/mallopt.3
+++ b/man3/mallopt.3
@@ -569,7 +569,7 @@ main(): returned from second free() call
.in
.SS Program source
\&
-.\" [[memory leak]] SRC BEGIN (mallopt.c)
+.\" SRC BEGIN (mallopt.c)
.EX
#include <malloc.h>
#include <stdio.h>
diff --git a/man3/matherr.3 b/man3/matherr.3
index 53ab9965d1..66b2f0fe81 100644
--- a/man3/matherr.3
+++ b/man3/matherr.3
@@ -357,7 +357,7 @@ x=12345.000000
.in
.SS Program source
\&
-.\" [[deprecated]] SRC BEGIN (matherr.c)
+.\" SRC BEGIN (matherr.c)
.EX
#define _SVID_SOURCE
#include <errno.h>
diff --git a/man3/mcheck.3 b/man3/mcheck.3
index e3cfe58302..4b2920c193 100644
--- a/man3/mcheck.3
+++ b/man3/mcheck.3
@@ -179,7 +179,7 @@ Aborted (core dumped)
.in
.SS Program source
\&
-.\" [[memory leak]] SRC BEGIN (mcheck.c)
+.\" SRC BEGIN (mcheck.c)
.EX
#include <mcheck.h>
#include <stdio.h>
diff --git a/man3/mtrace.3 b/man3/mtrace.3
index 31db0793a1..3885f73af9 100644
--- a/man3/mtrace.3
+++ b/man3/mtrace.3
@@ -124,7 +124,7 @@ The demonstration uses the following program:
.P
.in +4n
.RB "$ " "cat t_mtrace.c"
-.\" [[memory leak]] SRC BEGIN (t_mtrace.c)
+.\" SRC BEGIN (t_mtrace.c)
.EX
#include <mcheck.h>
#include <stdio.h>
diff --git a/man3/setbuf.3 b/man3/setbuf.3
index d363fb056b..8604d47540 100644
--- a/man3/setbuf.3
+++ b/man3/setbuf.3
@@ -201,7 +201,7 @@ points to still exists by the time
is closed, which also happens at program termination.
For example, the following is invalid:
.P
-.\" [[invalid]] SRC BEGIN (setbuf.c)
+.\" SRC BEGIN (setbuf.c)
.EX
#include <stdio.h>
\&
diff --git a/share/mk/build/examples/cc.mk b/share/mk/build/examples/cc.mk
index 36675ae7db..6513fbe7fe 100644
--- a/share/mk/build/examples/cc.mk
+++ b/share/mk/build/examples/cc.mk
@@ -6,12 +6,40 @@ ifndef MAKEFILE_BUILD_EX_CC_INCLUDED
MAKEFILE_BUILD_EX_CC_INCLUDED := 1
+include $(MAKEFILEDIR)/build/_.mk
include $(MAKEFILEDIR)/build/examples/src.mk
include $(MAKEFILEDIR)/configure/build-depends/cc.mk
include $(MAKEFILEDIR)/configure/build-depends/cpp.mk
+include $(MAKEFILEDIR)/configure/xfail.mk
+
+
+_XFAIL_UNITS_ex_o := \
+ $(_MANDIR)/man2/bpf.2.d/bpf.o \
+ $(_MANDIR)/man2/seccomp.2.d/seccomp.o \
+ $(_MANDIR)/man2/sigaction.2.d/sigaction.o \
+ $(_MANDIR)/man2/spu_run.2.d/spu_run.o \
+ $(_MANDIR)/man2/_syscall.2.d/_syscall.o \
+ $(_MANDIR)/man3/circleq.3.d/circleq.o \
+ $(_MANDIR)/man3/encrypt.3.d/encrypt.o \
+ $(_MANDIR)/man3/getsubopt.3.d/getsubopt.o \
+ $(_MANDIR)/man3/hsearch.3.d/hsearch.o \
+ $(_MANDIR)/man3/malloc_info.3.d/malloc_info.o \
+ $(_MANDIR)/man3/mallopt.3.d/mallopt.o \
+ $(_MANDIR)/man3/matherr.3.d/matherr.o \
+ $(_MANDIR)/man3/mcheck.3.d/mcheck.o \
+ $(_MANDIR)/man3/mtrace.3.d/t_mtrace.o \
+ $(_MANDIR)/man3/__ppc_get_timebase.3.d/__ppc_get_timebase.o \
+ $(_MANDIR)/man3/pthread_getcpuclockid.3.d/pthread_getcpuclockid.o \
+ $(_MANDIR)/man3/rtime.3.d/rtime.o \
+ $(_MANDIR)/man3/setbuf.3.d/setbuf.o \
+ $(_MANDIR)/man3/stpncpy.3.d/stpncpy.o \
+ $(_MANDIR)/man3head/printf.h.3head.d/register_printf_specifier.o
_UNITS_ex_o := $(patsubst %.c,%.o,$(_UNITS_ex_c))
+ifeq ($(SKIP_XFAIL),yes)
+_UNITS_ex_o := $(filter-out $(_XFAIL_UNITS_ex_o), $(_UNITS_ex_o))
+endif
$(_UNITS_ex_o): %.o: %.c $(MK)
diff --git a/share/mk/build/examples/ld.mk b/share/mk/build/examples/ld.mk
index aa44890626..9d5535d46a 100644
--- a/share/mk/build/examples/ld.mk
+++ b/share/mk/build/examples/ld.mk
@@ -6,11 +6,37 @@ ifndef MAKEFILE_BUILD_EX_LD_INCLUDED
MAKEFILE_BUILD_EX_LD_INCLUDED := 1
+include $(MAKEFILEDIR)/build/_.mk
include $(MAKEFILEDIR)/build/examples/cc.mk
include $(MAKEFILEDIR)/configure/build-depends/ld.mk
+include $(MAKEFILEDIR)/configure/xfail.mk
+
+
+_XFAIL_UNITS_ex_bin := \
+ $(_MANDIR)/man2/add_key.2.d/add_key \
+ $(_MANDIR)/man2/keyctl.2.d/key_instantiate \
+ $(_MANDIR)/man2/request_key.2.d/t_request_key \
+ $(_MANDIR)/man2/select_tut.2.d/select \
+ $(_MANDIR)/man2/shmop.2.d/svshm_string_read \
+ $(_MANDIR)/man3/cacos.3.d/cacos \
+ $(_MANDIR)/man3/cacosh.3.d/cacosh \
+ $(_MANDIR)/man3/catan.3.d/catan \
+ $(_MANDIR)/man3/catanh.3.d/catanh \
+ $(_MANDIR)/man3/getaddrinfo_a.3.d/async \
+ $(_MANDIR)/man3/inet_net_pton.3.d/inet_net_pton \
+ $(_MANDIR)/man3/list.3.d/list \
+ $(_MANDIR)/man3/mallinfo.3.d/mallinfo \
+ $(_MANDIR)/man3/slist.3.d/slist \
+ $(_MANDIR)/man3/stailq.3.d/stailq \
+ $(_MANDIR)/man3/strncat.3.d/strncat \
+ $(_MANDIR)/man3/tailq.3.d/tailq \
+ $(_MANDIR)/man3/tsearch.3.d/tsearch
_UNITS_ex_bin := $(patsubst %.o,%,$(_UNITS_ex_o))
+ifeq ($(SKIP_XFAIL),yes)
+_UNITS_ex_bin := $(filter-out $(_XFAIL_UNITS_ex_bin), $(_UNITS_ex_bin))
+endif
$(_UNITS_ex_bin): %: %.o $(MK)