[Swan-dev] u_int*_t vs uint*_t

D. Hugh Redelmeier hugh at mimosa.com
Tue Sep 12 19:33:06 UTC 2017

I would think that uintN_t should be used in preference to u_intN_t
since the former is a standard part of C and the latter comes from
some Linux kernal internal convention (I think).

See stdint.h(0P)

Why do we use u_* so often?

u_* may well make sense for kernel interfaces.  It depends how they
are documented (huh!).

u_* seems wrong for things in ietf_constants.h.

More information about the Swan-dev mailing list