linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Puiu <stefan.puiu@gmail.com>
To: Alejandro Colomar <alx.manpages@gmail.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>,
	lnx-man <linux-man@vger.kernel.org>
Subject: Re: [PATCH 00/45] Add LIBRARY section (based on FreeBSD manual pages)
Date: Mon, 13 Sep 2021 21:42:24 +0300	[thread overview]
Message-ID: <CACKs7VA=y2t3iGjKyzp-p1tt1hW3YsD6LMCqn0rotttOvk4pfw@mail.gmail.com> (raw)
In-Reply-To: <20210911160117.552617-1-alx.manpages@gmail.com>

Hi Alex,

More 2 cents from me :).

On Sat, Sep 11, 2021 at 7:01 PM Alejandro Colomar
<alx.manpages@gmail.com> wrote:
>
> Hi Michael,
>
> Here's a first patch set adding a new LIBRARY section
> to man2 and man3 pages (I started with man2).
>
> It is based on (mostly cloned from) FreeBSD's man pages,
> as I liked that section from them.
>
> It normalizes the information we had in comments in
> NOTES or SYNOPSIS or DESCRIPTION.
> Or in most pages we didn't even have it, as we assume that 'cc' already
> handles '-lc' by deafult.
>
> Patch 20/45 was removed on purpose due to a mistake.
>
> Cheers,
>
> Alex
>
>
>
>
>
> Alejandro Colomar (45):
>   _exit.2: Add LIBRARY section
>   keyctl.2: Add LIBRARY section
>   gamma.3: Add LIBRARY section
>   request_key.2: Add LIBRARY section
>   write.2: Add LIBRARY section
>   wait4.2: Add LIBRARY section
>   wait.2: Add LIBRARY section
>   vmsplice.2: Add LIBRARY section
>   vm86.2: Add LIBRARY section
>   vhangup.2: Add LIBRARY section
>   vfork.2: Add LIBRARY section
>   utimensat.2: Add LIBRARY section
>   utime.2: Add LIBRARY section
>   ustat.2: Add LIBRARY section
>   userfaultfd.2: Add LIBRARY section
>   unshare.2: Add LIBRARY section
>   uname.2: Add LIBRARY section
>   umount.2: Add LIBRARY section
>   tkill.2: Add LIBRARY section
>   unlink.2: Add LIBRARY section
>   umask.2: Add LIBRARY section
>   truncate.2: Add LIBRARY section
>   timer_getoverrun.2: Add LIBRARY section
>   timerfd_create.2: Add LIBRARY section
>   timer_delete.2: Add LIBRARY section
>   timer_create.2: Add LIBRARY section
>   time.2: Add LIBRARY section
>   tee.2: Add LIBRARY section
>   syslog.2: Add LIBRARY section
>   sysinfo.2: Add LIBRARY section
>   syscall.2: Add LIBRARY section
>   sync_file_range.2: Add LIBRARY section
>   sync.2: Add LIBRARY section
>   symlink.2: Add LIBRARY section
>   swapon.2: Add LIBRARY section
>   subpage_prot.2: Add LIBRARY section
>   statx.2: Add LIBRARY section
>   stat.2: Add LIBRARY section
>   spu_run.2: Add LIBRARY section
>   spu_create.2: Add LIBRARY section
>   splice.2: Add LIBRARY section
>   socketpair.2: Add LIBRARY section
>   socketcall.2: Add LIBRARY section
>   sigwaitinfo.2: Add LIBRARY section

Not sure what value "libc, -lc" to the man pages. I think having a
standardized section for functions that require libraries other than
libc is fine, so you remember when you need -lm or -lrt (although IIRC
recently a few of these were folded in libc, at least for glibc). But
-lc feels kind of redundant. Does that mean you need to add -lc in
your Makefile? Some people might interpret it as such.

I think no library section = no special library required might be clearer.

Also, on FreeBSD it's quite obvious you're talking about THE library.
But on Linux, you have glibc, musl libc, diet libc... Is the plan to
document requirements for all of these? E.g link with -lm on musl
libc, no special flags on glibc..?

Thanks,
Stefan.

>
>  man2/_exit.2            |  3 +++
>  man2/keyctl.2           |  9 +++++++--
>  man2/request_key.2      | 18 ++++--------------
>  man2/sigwaitinfo.2      |  3 +++
>  man2/socketcall.2       |  3 +++
>  man2/socketpair.2       |  3 +++
>  man2/splice.2           |  3 +++
>  man2/spu_create.2       |  3 +++
>  man2/spu_run.2          |  3 +++
>  man2/stat.2             |  3 +++
>  man2/statx.2            |  3 +++
>  man2/subpage_prot.2     |  3 +++
>  man2/swapon.2           |  3 +++
>  man2/symlink.2          |  3 +++
>  man2/sync.2             |  3 +++
>  man2/sync_file_range.2  |  3 +++
>  man2/syscall.2          |  3 +++
>  man2/sysinfo.2          |  3 +++
>  man2/syslog.2           |  3 +++
>  man2/tee.2              |  3 +++
>  man2/time.2             |  3 +++
>  man2/timer_create.2     |  5 +++--
>  man2/timer_delete.2     |  5 +++--
>  man2/timer_getoverrun.2 |  5 +++--
>  man2/timer_settime.2    |  5 +++--
>  man2/timerfd_create.2   |  3 +++
>  man2/times.2            |  3 +++
>  man2/tkill.2            |  3 +++
>  man2/truncate.2         |  3 +++
>  man2/umask.2            |  3 +++
>  man2/umount.2           |  3 +++
>  man2/uname.2            |  3 +++
>  man2/unlink.2           |  3 +++
>  man2/unshare.2          |  3 +++
>  man2/userfaultfd.2      |  3 +++
>  man2/ustat.2            |  3 +++
>  man2/utime.2            |  3 +++
>  man2/utimensat.2        |  3 +++
>  man2/vfork.2            |  3 +++
>  man2/vhangup.2          |  3 +++
>  man2/vm86.2             |  3 +++
>  man2/vmsplice.2         |  3 +++
>  man2/wait.2             |  3 +++
>  man2/wait4.2            |  3 +++
>  man2/write.2            |  3 +++
>  man3/gamma.3            |  5 +++--
>  46 files changed, 143 insertions(+), 26 deletions(-)
>
> --
> 2.33.0
>

  parent reply	other threads:[~2021-09-13 18:42 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-11 16:00 [PATCH 00/45] Add LIBRARY section (based on FreeBSD manual pages) Alejandro Colomar
2021-09-11 16:00 ` [PATCH 01/45] _exit.2: Add LIBRARY section Alejandro Colomar
2021-09-11 16:00 ` [PATCH 02/45] keyctl.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 03/45] gamma.3: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 04/45] request_key.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 05/45] write.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 06/45] wait4.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 07/45] wait.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 08/45] vmsplice.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 09/45] vm86.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 10/45] vhangup.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 11/45] vfork.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 12/45] utimensat.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 13/45] utime.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 14/45] ustat.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 15/45] userfaultfd.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 16/45] unshare.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 17/45] uname.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 18/45] umount.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 19/45] tkill.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 21/45] unlink.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 22/45] umask.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 23/45] truncate.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 24/45] timer_getoverrun.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 25/45] timerfd_create.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 26/45] timer_delete.2: " Alejandro Colomar
2021-09-11 16:00 ` [PATCH 27/45] timer_create.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 28/45] time.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 29/45] tee.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 30/45] syslog.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 31/45] sysinfo.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 32/45] syscall.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 33/45] sync_file_range.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 34/45] sync.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 35/45] symlink.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 36/45] swapon.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 37/45] subpage_prot.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 38/45] statx.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 39/45] stat.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 40/45] spu_run.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 41/45] spu_create.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 42/45] splice.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 43/45] socketpair.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 44/45] socketcall.2: " Alejandro Colomar
2021-09-11 16:01 ` [PATCH 45/45] sigwaitinfo.2: " Alejandro Colomar
2021-09-11 18:29 ` [PATCH 00/45] Add LIBRARY section (based on FreeBSD manual pages) Eugene Syromyatnikov
2021-09-11 18:40   ` Alejandro Colomar (man-pages)
2021-09-11 22:24     ` Eugene Syromyatnikov
2021-09-11 22:37       ` Alejandro Colomar (man-pages)
2021-09-13 18:42 ` Stefan Puiu [this message]
2021-09-14  8:30   ` Eugene Syromyatnikov
2021-09-14  8:32     ` Eugene Syromyatnikov
2021-09-15 20:20     ` Alejandro Colomar (man-pages)
2021-09-17  8:12     ` Stefan Puiu
2021-09-17  8:21     ` Florian Weimer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACKs7VA=y2t3iGjKyzp-p1tt1hW3YsD6LMCqn0rotttOvk4pfw@mail.gmail.com' \
    --to=stefan.puiu@gmail.com \
    --cc=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).