On 5/24/21 10:48 AM, Alejandro Colomar wrote:
This avoids shadowing other pages, and clearly differentiates function pages from type pages (both are in man3). Do this for struct/union types, and not for typedefs. This makes sense because typedefs in C are in the same namespace as function identifiers, but struct and union (and enum) tags are in a different one, and can have the same name as a function. Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> Cc: G. Branden Robinson <g.branden.robinson@xxxxxxxxx> --- man3/{aiocb.3 => aiocb-struct.3} | 0 man3/{lconv.3 => lconv-struct.3} | 0 man3/{sigval.3 => sigval-struct.3} | 0 man3/{sockaddr.3 => sockaddr-union.3} | 0 man3/{timespec.3 => timespec-struct.3} | 0 man3/{timeval.3 => timeval-struct.3} | 0 man3/sigevent-struct.3 | 1 + 7 files changed, 1 insertion(+) rename man3/{aiocb.3 => aiocb-struct.3} (100%) rename man3/{lconv.3 => lconv-struct.3} (100%) rename man3/{sigval.3 => sigval-struct.3} (100%) rename man3/{sockaddr.3 => sockaddr-union.3} (100%) rename man3/{timespec.3 => timespec-struct.3} (100%) rename man3/{timeval.3 => timeval-struct.3} (100%) create mode 100644 man3/sigevent-struct.3
There are some struct/union tags wrong. I'll fix it.
diff --git a/man3/aiocb.3 b/man3/aiocb-struct.3 similarity index 100% rename from man3/aiocb.3 rename to man3/aiocb-struct.3 diff --git a/man3/lconv.3 b/man3/lconv-struct.3 similarity index 100% rename from man3/lconv.3 rename to man3/lconv-struct.3 diff --git a/man3/sigval.3 b/man3/sigval-struct.3 similarity index 100% rename from man3/sigval.3 rename to man3/sigval-struct.3 diff --git a/man3/sockaddr.3 b/man3/sockaddr-union.3 similarity index 100% rename from man3/sockaddr.3 rename to man3/sockaddr-union.3 diff --git a/man3/timespec.3 b/man3/timespec-struct.3 similarity index 100% rename from man3/timespec.3 rename to man3/timespec-struct.3 diff --git a/man3/timeval.3 b/man3/timeval-struct.3 similarity index 100% rename from man3/timeval.3 rename to man3/timeval-struct.3 diff --git a/man3/sigevent-struct.3 b/man3/sigevent-struct.3 new file mode 100644 index 000000000..db50c0f09 --- /dev/null +++ b/man3/sigevent-struct.3 @@ -0,0 +1 @@ +.so man7/system_data_types.7
-- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/