A mirror of Man pages
Go to file
Alejandro Colomar b0b19983d9 Various pages: Remove unused <sys/types.h>
The manual pages are already inconsistent in which headers need
to be included.  Right now, not all of the types used by a
function have their required header included in the SYNOPSIS.

If we were to add the headers required by all of the types used by
functions, the SYNOPSIS would grow too much.  Not only it would
grow too much, but the information there would be less precise.

Having system_data_types(7) document each type with all the
information about required includes is much more precise, and the
info is centralized so that it's much easier to maintain.

So let's document only the include required for the function
prototype, and also the ones required for the macros needed to
call the function.

<sys/types.h> only defines types, not functions or constants, so
it doesn't belong to man[23] (function) pages at all.

I ignore if some old systems had headers that required you to
include <sys/types.h> *before* them (incomplete headers), but if
so, those implementations would be broken, and those headers
should probably provide some kind of warning.  I hope this is not
the case.

[mtk: Already in 2001, POSIX.1 removed the requirement to
include <sys/types.h> for many APIs, so this patch seems
well past due.]

Acked-by: Zack Weinberg <zackw@panix.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2021-03-15 08:43:12 +01:00
man1 time.1: wfix: remove crufty sentence 2021-01-30 08:10:56 +01:00
man2 Various pages: Remove unused <sys/types.h> 2021-03-15 08:43:12 +01:00
man3 wprintf.3: SYNOPSIS: Use 'restrict' in prototypes 2021-03-14 22:37:58 +01:00
man4 Various pages: use real minus signs in pathnames 2021-01-21 10:29:14 +01:00
man5 elf.5: srcfix: Remove idiosyncratic mark-up 2021-02-16 11:06:37 +01:00
man6 intro.6: wfix 2017-08-25 21:41:03 +02:00
man7 inode.7: tfix 2021-03-03 23:06:32 +01:00
man8 Various pages: use "\-" to generate real minus in circumstances where appropriate 2021-01-21 10:53:59 +01:00
scripts scripts/bash_aliases: tfix 2021-03-03 23:06:32 +01:00
CONTRIBUTING CONTRIBUTING: New file with some starting tips on how to contribute 2019-09-13 15:59:08 +02:00
Changes Start of man-pages-5.11: updating Changes and Changes.old 2020-12-22 09:30:12 +01:00
Changes.old Changes.old: tfix 2020-12-31 10:07:18 +01:00
MAINTAINER_NOTES MAINTAINER_NOTES: tfix 2021-01-24 23:30:51 +01:00
Makefile Makefile: Fix html target bug 2021-02-16 11:07:36 +01:00
README README: Remove "Man page overlap and duplication" section 2020-04-13 09:06:45 +02:00
man-pages-5.11.Announce Start of man-pages-5.11: updating .Announce and .lsm files 2020-12-22 09:30:12 +01:00
man-pages-5.11.lsm Start of man-pages-5.11: updating .Announce and .lsm files 2020-12-22 09:30:12 +01:00

README

This package contains Linux man pages for sections 1 through 8.  Some
more information is given in the 'man-pages-x.y.Announce' file.

Homepage
========
For information about the Linux man-pages project, see
http://www.kernel.org/doc/man-pages/index.html.

Bug reports and contributing
============================
If you have corrections and additions to suggest, see
http://www.kernel.org/doc/man-pages/contributing.html
(Although there is a mirror of this repository on GitHub,
please don't report issues via the GitHub issue tracker!)

For further information on contributing, see the CONTRIBUTING file.

Installing and uninstalling
===========================
"make install" will copy these man pages to /usr/share/man/man[1-8].

To install to a path different from /usr, use
"make install prefix=/install/path".

"make remove" or "make uninstall" will remove any man page in this
distribution from its destination.  Use with caution, and remember to
use "prefix" if desired, as with the "install" target.

"make" or "make all" will perform "make uninstall" followed by "make
install".

Copyrights
==========
See the 'man-pages-x.y.Announce' file.