Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
Date: Wed, 3 Jan 2024 03:15:39 +0300
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
Message-ID: <ZZSnK_B-W7hCQR2s%snips.stderr.spb.ru@localhost>
| for userland uses should include stddef.h where size_t is supposed
| to come from
Unfortunately, while <stddef.h> is defined to specify size_t it
isn't specified to include ssize_t - and many things that need
size_t also need ssize_t (which includes src/usr.bin/tprof one of
the users of <sys/rbtree.h>)
All of this is horribly ugly - perhaps we'd do better to remove
stuff from <sys/types.h> that shouldn't be there (which is probably
any definition which doesn't end in _t except probably the old u_char
u_short ... and their uchar/ushort/... variants). In particular
I doubt that <sys/types.h> should really be including <machine/endian.h>
and almost certainly not <sys/cdefs.h>, and shouldn't have prototypes
for any functions at all.
kre
Home |
Main Index |
Thread Index |
Old Index