Page MenuHomeFreeBSD

man/man3: add stdbit.3
ClosedPublic

Authored by fuz on Nov 10 2025, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 10, 3:52 AM
Unknown Object (File)
Sun, Dec 7, 3:57 PM
Unknown Object (File)
Fri, Dec 5, 5:27 PM
Unknown Object (File)
Sun, Nov 30, 7:46 AM
Unknown Object (File)
Sat, Nov 29, 11:11 PM
Unknown Object (File)
Fri, Nov 28, 4:06 AM
Unknown Object (File)
Fri, Nov 28, 12:18 AM
Unknown Object (File)
Thu, Nov 27, 6:05 PM

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 Passed
Unit
No Test Coverage
Build Status
Buildable 68542
Build 65425: arc lint + arc unit

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
11

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

51
55
95

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
11

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.

55

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.

95

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
11

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

95

Ok.

share/man/man3/stdbit.3
11

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.Tue, Nov 18, 3:03 PM
This revision was automatically updated to reflect the committed changes.