]> git.ipfire.org Git - thirdparty/man-pages.git/commit
Many pages: Move type pages to subsection 3type
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 15 Jun 2022 13:51:26 +0000 (15:51 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Wed, 15 Jun 2022 15:26:35 +0000 (17:26 +0200)
commit178eaf37e2e971cae88bd4d3f124ede0afbb1015
tree8facab09d1645bbedc62ea87a9015ee74d16799a
parent0f8ae01d82a38e763bdd2684289afa757731245e
Many pages: Move type pages to subsection 3type

These pages are not exactly what man3 typically contains, which is
library functions.  Instead, types fit better in a subsection of
man3, and some UNIX systems have already a section 3type, so let's
use the same name.

Adapt the Makefile to work with this subsection.  Except for the
Makefile, these changes are scripted.

Scripted changes:

$ find man3 -type f \
  | grep '_t\.3$' \
  | while read f; do
mv $f ${f}type;
  done;

$ find man? -type f \
  | xargs grep -l '^\.so.*_t\.3' \
  | xargs sed -i '/^\.so/s/\.3$/\.3type/';

$ find man? -type f \
  | xargs grep -l '^\.BR .*_t (3)' \
  | xargs sed -i '/^\.BR .*_t (3)/s/3)/3type)/';

$ find man? -type f \
  | grep -- '-struct\.[23]$' \
  | while read f; do
g="$(echo $f | sed 's/-struct//')"type;

mv $f $g;
  done;

$ find man? -type f \
  | xargs grep -l '^\.so.*-struct\.[23]' \
  | xargs sed -i -e '/^\.so/s/-struct//' -e '/^\.so/s/$/type/';

$ find man? -type f \
  | xargs grep -l '^\.BR .*-struct (.)' \
  | xargs sed -i -e '/^\.BR .*-struct (.)/s/\([23]\)/\1type/' \
                 -e '/^\.BR .*-struct /s/-struct//';

$ find man? -type f \
  | grep -- '-union\.[23]$' \
  | while read f; do
g="$(echo $f | sed 's/-union//')"type;

mv $f $g;
  done;

$ find man? -type f \
  | grep '3type' \
  | xargs sed -i '/^\.TH/s/ 3 / 3type /';

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
95 files changed:
Makefile
man2/stat.2
man3/aiocb.3type [moved from man3/aiocb-struct.3 with 94% similarity]
man3/blkcnt_t.3type [moved from man3/blkcnt_t.3 with 88% similarity]
man3/blksize_t.3type [moved from man3/blksize_t.3 with 88% similarity]
man3/cc_t.3type [moved from man3/cc_t.3 with 90% similarity]
man3/clock_t.3type [moved from man3/clock_t.3 with 92% similarity]
man3/clockid_t.3type [moved from man3/clockid_t.3 with 89% similarity]
man3/dev_t.3type [moved from man3/dev_t.3 with 89% similarity]
man3/div_t.3type [moved from man3/div_t.3 with 95% similarity]
man3/double_t.3type [moved from man3/double_t.3 with 93% similarity]
man3/fenv_t.3type [moved from man3/fenv_t.3 with 92% similarity]
man3/fexcept_t.3 [deleted file]
man3/fexcept_t.3type [new file with mode: 0644]
man3/float_t.3 [deleted file]
man3/float_t.3type [new file with mode: 0644]
man3/gid_t.3 [deleted file]
man3/gid_t.3type [new file with mode: 0644]
man3/id_t.3type [moved from man3/id_t.3 with 97% similarity]
man3/imaxdiv_t.3 [deleted file]
man3/imaxdiv_t.3type [new file with mode: 0644]
man3/in6_addr-struct.3 [deleted file]
man3/in6_addr.3type [new file with mode: 0644]
man3/in_addr-struct.3 [deleted file]
man3/in_addr.3type [new file with mode: 0644]
man3/in_addr_t.3 [deleted file]
man3/in_addr_t.3type [new file with mode: 0644]
man3/in_port_t.3 [deleted file]
man3/in_port_t.3type [new file with mode: 0644]
man3/int16_t.3 [deleted file]
man3/int16_t.3type [new file with mode: 0644]
man3/int32_t.3 [deleted file]
man3/int32_t.3type [new file with mode: 0644]
man3/int64_t.3 [deleted file]
man3/int64_t.3type [new file with mode: 0644]
man3/int8_t.3 [deleted file]
man3/int8_t.3type [new file with mode: 0644]
man3/intN_t.3type [moved from man3/intN_t.3 with 97% similarity]
man3/intmax_t.3type [moved from man3/intmax_t.3 with 95% similarity]
man3/intptr_t.3type [moved from man3/intptr_t.3 with 96% similarity]
man3/lconv.3type [moved from man3/lconv-struct.3 with 96% similarity]
man3/ldiv_t.3 [deleted file]
man3/ldiv_t.3type [new file with mode: 0644]
man3/lldiv_t.3 [deleted file]
man3/lldiv_t.3type [new file with mode: 0644]
man3/mode_t.3type [moved from man3/mode_t.3 with 90% similarity]
man3/off64_t.3type [moved from man3/off64_t.3 with 100% similarity]
man3/off_t.3type [moved from man3/off_t.3 with 100% similarity]
man3/pid_t.3 [deleted file]
man3/pid_t.3type [new file with mode: 0644]
man3/ptrdiff_t.3type [moved from man3/ptrdiff_t.3 with 100% similarity]
man3/regex_t.3type [moved from man3/regex_t.3 with 100% similarity]
man3/regmatch_t.3type [moved from man3/regmatch_t.3 with 100% similarity]
man3/regoff_t.3type [moved from man3/regoff_t.3 with 100% similarity]
man3/sigevent.3type [moved from man3/sigevent-struct.3 with 100% similarity]
man3/siginfo_t.3type [moved from man3/siginfo_t.3 with 100% similarity]
man3/sigset_t.3type [moved from man3/sigset_t.3 with 100% similarity]
man3/sigval.3type [moved from man3/sigval-union.3 with 100% similarity]
man3/size_t.3type [moved from man3/size_t.3 with 100% similarity]
man3/sockaddr.3type [moved from man3/sockaddr-struct.3 with 98% similarity]
man3/sockaddr_in-struct.3 [deleted file]
man3/sockaddr_in.3type [new file with mode: 0644]
man3/sockaddr_in6-struct.3 [deleted file]
man3/sockaddr_in6.3type [new file with mode: 0644]
man3/sockaddr_storage-struct.3 [deleted file]
man3/sockaddr_storage.3type [new file with mode: 0644]
man3/sockaddr_un-struct.3 [deleted file]
man3/sockaddr_un.3type [new file with mode: 0644]
man3/socklen_t.3 [deleted file]
man3/socklen_t.3type [new file with mode: 0644]
man3/ssize_t.3type [moved from man3/ssize_t.3 with 100% similarity]
man3/stat.3type [moved from man3/stat-struct.3 with 100% similarity]
man3/suseconds_t.3type [moved from man3/suseconds_t.3 with 100% similarity]
man3/time_t.3type [moved from man3/time_t.3 with 100% similarity]
man3/timer_t.3type [moved from man3/timer_t.3 with 100% similarity]
man3/timespec.3type [moved from man3/timespec-struct.3 with 100% similarity]
man3/timeval.3type [moved from man3/timeval-struct.3 with 100% similarity]
man3/uid_t.3 [deleted file]
man3/uid_t.3type [new file with mode: 0644]
man3/uint16_t.3 [deleted file]
man3/uint16_t.3type [new file with mode: 0644]
man3/uint32_t.3 [deleted file]
man3/uint32_t.3type [new file with mode: 0644]
man3/uint64_t.3 [deleted file]
man3/uint64_t.3type [new file with mode: 0644]
man3/uint8_t.3 [deleted file]
man3/uint8_t.3type [new file with mode: 0644]
man3/uintN_t.3 [deleted file]
man3/uintN_t.3type [new file with mode: 0644]
man3/uintmax_t.3 [deleted file]
man3/uintmax_t.3type [new file with mode: 0644]
man3/uintptr_t.3 [deleted file]
man3/uintptr_t.3type [new file with mode: 0644]
man3/useconds_t.3type [moved from man3/useconds_t.3 with 100% similarity]
man3/usleep.3