Re: [PATCH 3/3] aiocb-struct.3, lconv-struct.3, sigevent-struct.3, sigval-union.3, sockaddr-struct.3, timespec-struct.3, timeval-struct.3: Rename some links to system_data_types.7 to add -{struct,union} suffix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux