Page MenuHomeFreeBSD

include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t
ClosedPublic

Authored by fuz on Apr 19 2026, 7:48 PM.
Tags
None
Referenced Files
F170742897: D56515.id175867.diff
Sun, Sep 6, 8:59 AM
F170724410: D56515.diff
Sun, Sep 6, 5:49 AM
F170631863: D56515.diff
Sat, Sep 5, 5:45 PM
Unknown Object (File)
Fri, Sep 4, 5:47 AM
Unknown Object (File)
Wed, Sep 2, 5:38 PM
Unknown Object (File)
Wed, Sep 2, 3:43 PM
Unknown Object (File)
Wed, Sep 2, 10:34 AM
Unknown Object (File)
Wed, Sep 2, 6:07 AM
Subscribers

Details

Summary

These are required by ISO/IEC 9899:2024 § 7.18.1 ¶ 1 but were forgotten
in my initial work.

The current approach leaks intptr_t, uintptr_t, intmax_t, and uintmax_t
through <sys/_stdint.h>. This could be avoided using a more complicated
approach if desired.

PR: 294131
Reported by: Collin Funk <collin.funk1@gmail.com>
MFC after: 1 week

Diff Detail

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