All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: linux-man <linux-man@vger.kernel.org>,
	"G. Branden Robinson" <g.branden.robinson@gmail.com>,
	Ingo Schwarze <schwarze@usta.de>
Cc: Douglas McIlroy <douglas.mcilroy@dartmouth.edu>
Subject: intro(3type) draft
Date: Thu, 17 Nov 2022 00:13:56 +0100	[thread overview]
Message-ID: <c7f78a1b-a7bb-a077-3445-802e99f5e9c7@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1821 bytes --]

Hi Branden and Ingo!

Per the request of Branden that I should discourage programmers of writing their 
manuals with subchapters, which fundamentally means discouraging programmers of 
writing their libraries (or modules, or whatever a given language uses) in a way 
that you can't document a header in a single page, I wrote the following 
introductory page intro(3type).

The caveat that you'll read should go either in all intro([23]\w+) pages.  We 
could put it in the main section into pages too.  I want to hear some opinions 
about this.

I used temporarily the term [sub]chapter to see how it fits.

Cheers,

Alex

---

intro(3type)                                        intro(3type)

NAME
        intro - introduction to library types

DESCRIPTION
        Subchapter  3type  of the manual describes the types pro‐
        vided by C libraries.

CAVEATS
        The separation of chapter 3 of this manual into  subchap‐
        ters  is  only  a  consequence of the organization in the
        Standard C Library.  Probably, a better design for a  li‐
        brary would be such that each header file is minimal, and
        contains  only  one or a few APIs, and the types and con‐
        stants that are intrinsic to that API.   Types  and  con‐
        stants  that  are to be used by many APIs can go in sepa‐
        rate header files that provide no APIs.   That  organiza‐
        tion  permits  writing manual pages that document exactly
        one header file per manual page, which will  improve  the
        readability of the documentation, and thereby the usabil‐
        ity of the software.

SEE ALSO
        intro(3)

Linux man‐pages (unreleased) (date)                 intro(3type)


-- 
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2022-11-16 23:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-16 23:13 Alejandro Colomar [this message]
2022-11-17  0:06 ` intro(3type) draft G. Branden Robinson
2022-11-18  2:02   ` G. Branden Robinson

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=c7f78a1b-a7bb-a077-3445-802e99f5e9c7@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=douglas.mcilroy@dartmouth.edu \
    --cc=g.branden.robinson@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=schwarze@usta.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.