]> git.ipfire.org Git - thirdparty/man-pages.git/commit - Makefile
Many pages: Use man3type/ and man2type/ for type pages
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 21 Jul 2022 13:45:12 +0000 (15:45 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Thu, 21 Jul 2022 14:00:04 +0000 (16:00 +0200)
commit451a27a78d51973b01bfb5d3b1e0ec081d9161e1
treede8b6ee467561b799fc817d8eb102deb85090190
parent8042eca2fb8edc41c20c225cce6bfae143e055ed
Many pages: Use man3type/ and man2type/ for type pages

Quoting Ingo:

[
The mandoc(1) program is also able to handle paths like
"man3/id_t.3type".  It will consider that page to be *both* in section
"3" (as specified by the directory name) and in section "3type" (as
specified by the file name and by the .TH macro).  I would consider
it better style to keep section names consistent, i.e. to use either
"man3/id_t.3" .TH id_t 3 or "man3type/id_t.3type" .TH id_t 3type,
but it's not a big deal: since many systems (in particular various
Linux distros) suffer from such inconsistencies, handling such
inconsistencies gracefully is an important feature that certainly
won't get removed.
]

Let's be nice, and do things right here, in the hope that others
may follow the example.

===

Most of this patch has been scripted:

$ mkdir man2type man3type
$ find man2 | grep type$ | while read f; do mv -t man2type $f; done
$ find man3 | grep type$ | while read f; do mv -t man3type $f; done
$ grep -rl man3/.*type man* | xargs sed -i 's,man3/,man3type/,'

Apart from that, I adapted the Makefiles, and moved va_list into
the man3type subsection (it was accidentally placed in the main 3
section).

Link: <https://lore.kernel.org/linux-man/YrB66rgFZqryrmpt@asta-kit.de/T/#u>
Reported-by: Ingo Schwarze <schwarze@usta.de>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
112 files changed:
Makefile
lib/build-src.mk
lib/install-man.mk
lib/lint.mk
man2type/open_how.2type [moved from man2/open_how.2type with 100% similarity]
man3/epoll_data.3type [deleted file]
man3/epoll_data_t.3type [deleted file]
man3/fexcept_t.3type [deleted file]
man3/float_t.3type [deleted file]
man3/gid_t.3type [deleted file]
man3/imaxdiv_t.3type [deleted file]
man3/in6_addr.3type [deleted file]
man3/in_addr.3type [deleted file]
man3/in_addr_t.3type [deleted file]
man3/in_port_t.3type [deleted file]
man3/int16_t.3type [deleted file]
man3/int32_t.3type [deleted file]
man3/int64_t.3type [deleted file]
man3/int8_t.3type [deleted file]
man3/ldiv_t.3type [deleted file]
man3/lldiv_t.3type [deleted file]
man3/loff_t.3type [deleted file]
man3/off64_t.3type [deleted file]
man3/pid_t.3type [deleted file]
man3/sockaddr_in.3type [deleted file]
man3/sockaddr_in6.3type [deleted file]
man3/sockaddr_storage.3type [deleted file]
man3/sockaddr_un.3type [deleted file]
man3/socklen_t.3type [deleted file]
man3/ssize_t.3type [deleted file]
man3/suseconds_t.3type [deleted file]
man3/uid_t.3type [deleted file]
man3/uint16_t.3type [deleted file]
man3/uint32_t.3type [deleted file]
man3/uint64_t.3type [deleted file]
man3/uint8_t.3type [deleted file]
man3/uintN_t.3type [deleted file]
man3/uintmax_t.3type [deleted file]
man3/uintptr_t.3type [deleted file]
man3/useconds_t.3type [deleted file]
man3type/aiocb.3type [moved from man3/aiocb.3type with 100% similarity]
man3type/blkcnt_t.3type [moved from man3/blkcnt_t.3type with 100% similarity]
man3type/blksize_t.3type [moved from man3/blksize_t.3type with 100% similarity]
man3type/cc_t.3type [moved from man3/cc_t.3type with 100% similarity]
man3type/clock_t.3type [moved from man3/clock_t.3type with 100% similarity]
man3type/clockid_t.3type [moved from man3/clockid_t.3type with 100% similarity]
man3type/dev_t.3type [moved from man3/dev_t.3type with 100% similarity]
man3type/div_t.3type [moved from man3/div_t.3type with 100% similarity]
man3type/double_t.3type [moved from man3/double_t.3type with 100% similarity]
man3type/epoll_data.3type [new file with mode: 0644]
man3type/epoll_data_t.3type [new file with mode: 0644]
man3type/epoll_event.3type [moved from man3/epoll_event.3type with 100% similarity]
man3type/fenv_t.3type [moved from man3/fenv_t.3type with 100% similarity]
man3type/fexcept_t.3type [new file with mode: 0644]
man3type/float_t.3type [new file with mode: 0644]
man3type/gid_t.3type [new file with mode: 0644]
man3type/id_t.3type [moved from man3/id_t.3type with 100% similarity]
man3type/imaxdiv_t.3type [new file with mode: 0644]
man3type/in6_addr.3type [new file with mode: 0644]
man3type/in_addr.3type [new file with mode: 0644]
man3type/in_addr_t.3type [new file with mode: 0644]
man3type/in_port_t.3type [new file with mode: 0644]
man3type/int16_t.3type [new file with mode: 0644]
man3type/int32_t.3type [new file with mode: 0644]
man3type/int64_t.3type [new file with mode: 0644]
man3type/int8_t.3type [new file with mode: 0644]
man3type/intN_t.3type [moved from man3/intN_t.3type with 100% similarity]
man3type/intmax_t.3type [moved from man3/intmax_t.3type with 100% similarity]
man3type/intptr_t.3type [moved from man3/intptr_t.3type with 100% similarity]
man3type/iovec.3type [moved from man3/iovec.3type with 100% similarity]
man3type/lconv.3type [moved from man3/lconv.3type with 100% similarity]
man3type/ldiv_t.3type [new file with mode: 0644]
man3type/lldiv_t.3type [new file with mode: 0644]
man3type/loff_t.3type [new file with mode: 0644]
man3type/mode_t.3type [moved from man3/mode_t.3type with 100% similarity]
man3type/off64_t.3type [new file with mode: 0644]
man3type/off_t.3type [moved from man3/off_t.3type with 100% similarity]
man3type/pid_t.3type [new file with mode: 0644]
man3type/ptrdiff_t.3type [moved from man3/ptrdiff_t.3type with 100% similarity]
man3type/regex_t.3type [moved from man3/regex_t.3type with 100% similarity]
man3type/regmatch_t.3type [moved from man3/regmatch_t.3type with 100% similarity]
man3type/regoff_t.3type [moved from man3/regoff_t.3type with 100% similarity]
man3type/sigevent.3type [moved from man3/sigevent.3type with 100% similarity]
man3type/siginfo_t.3type [moved from man3/siginfo_t.3type with 100% similarity]
man3type/sigset_t.3type [moved from man3/sigset_t.3type with 100% similarity]
man3type/sigval.3type [moved from man3/sigval.3type with 100% similarity]
man3type/size_t.3type [moved from man3/size_t.3type with 100% similarity]
man3type/sockaddr.3type [moved from man3/sockaddr.3type with 100% similarity]
man3type/sockaddr_in.3type [new file with mode: 0644]
man3type/sockaddr_in6.3type [new file with mode: 0644]
man3type/sockaddr_storage.3type [new file with mode: 0644]
man3type/sockaddr_un.3type [new file with mode: 0644]
man3type/socklen_t.3type [new file with mode: 0644]
man3type/ssize_t.3type [new file with mode: 0644]
man3type/stat.3type [moved from man3/stat.3type with 100% similarity]
man3type/suseconds_t.3type [new file with mode: 0644]
man3type/time_t.3type [moved from man3/time_t.3type with 100% similarity]
man3type/timer_t.3type [moved from man3/timer_t.3type with 100% similarity]
man3type/timespec.3type [moved from man3/timespec.3type with 100% similarity]
man3type/timeval.3type [moved from man3/timeval.3type with 100% similarity]
man3type/tm.3type [moved from man3/tm.3type with 100% similarity]
man3type/uid_t.3type [new file with mode: 0644]
man3type/uint16_t.3type [new file with mode: 0644]
man3type/uint32_t.3type [new file with mode: 0644]
man3type/uint64_t.3type [new file with mode: 0644]
man3type/uint8_t.3type [new file with mode: 0644]
man3type/uintN_t.3type [new file with mode: 0644]
man3type/uintmax_t.3type [new file with mode: 0644]
man3type/uintptr_t.3type [new file with mode: 0644]
man3type/useconds_t.3type [new file with mode: 0644]
man3type/va_list.3type [moved from man3/va_list.3 with 100% similarity]
man3type/void.3type [moved from man3/void.3type with 100% similarity]