Page MenuHomeFreeBSD

man/man3: add stdbit.3
ClosedPublic

Authored by fuz on Nov 10 2025, 9:32 AM.
Tags
None
Referenced Files
F141985502: D53658.id166128.diff
Wed, Jan 14, 12:48 PM
F141980244: D53658.id166240.diff
Wed, Jan 14, 11:38 AM
Unknown Object (File)
Mon, Jan 12, 10:15 AM
Unknown Object (File)
Fri, Jan 2, 12:33 AM
Unknown Object (File)
Thu, Jan 1, 10:21 PM
Unknown Object (File)
Tue, Dec 30, 12:36 AM
Unknown Object (File)
Mon, Dec 22, 10:42 PM
Unknown Object (File)
Mon, Dec 22, 2:43 AM

Details

Summary

This is the overview man page for the <stdbit.h> functions.
Individual man pages will follow in a later DR.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

fuz requested review of this revision.Nov 10 2025, 9:32 AM

This is awesome!

share/man/man3/stdbit.3
4

The license block has blank comments at the top and bottom (before 1 and after 3).

11

The .Sh LIBRARY section is deprecated, .Lb libc now goes at the top of .Sh SYNOPSIS

  • stdbit.3: address ziaee's review comments
fuz marked 2 inline comments as done.
  • stdbit.3: remove - from \"-

English looks good to me. Can't speak to the rest.

kib added inline comments.
share/man/man3/stdbit.3
12

May be, 'Standard 2023 C bit and byte utilties'?

52
56
96

Why these (stdc_*) functions are listed in the 'SEE ALSO' section?
First, there is no separate man pages for each of them.
Second, isn't this man page is supposed to document them?

share/man/man3/stdbit.3
12

I don't see why it's important to point out that this header was added in C23. It's not like we say that anywhere else.

56

I would prefer to leave the sentence in, as it clarifies the behaviour on platforms where there are indeed other byte orders.
The new sentence is useful, I'll add that in.

96

D53659 adds man pages for all these functions. There are 70 functions and 14 type-generic macros in total, so I thought it would be more useful to have an individual page for each.

share/man/man3/stdbit.3
12

To direct people to where look for further reference about the functions.

96

Ok.

share/man/man3/stdbit.3
12

We usually handle this with a STANDARDS section

adrian added a subscriber: adrian.

looks good, maybe get a review from @ziaee too for manpage stuff and then land?

This revision is now accepted and ready to land.Nov 18 2025, 3:03 PM
This revision was automatically updated to reflect the committed changes.