Re:Future of 32-bit platform support in FreeBSD
by dooglius on Tuesday February 20, 2024 @07:33AM
(#39440461)
I thought the Linux kernel enforces/requires a pointer to fit into a long, so any platform with Linux will define long type as appropriately sized?
[ Parent
| on HN ]
Re:Future of 32-bit platform support in FreeBSD
by DinoCoder99 on Tuesday February 20, 2024 @10:49AM
(#39442717)
I'd much prefer C users not use long at all. What's wrong with size_t and uint32_t and uint64_t?
Re:Future of 32-bit platform support in FreeBSD
by UncleEntity on Tuesday February 20, 2024 @12:14PM
(#39443876)
> What's wrong with size_t and uint32_t and uint64_t?
An extra #include and more typing?
Plus, all the C89 users are out of luck...
Re:Future of 32-bit platform support in FreeBSD
by int_19h on Tuesday February 20, 2024 @01:43PM
(#39445098)
It's trivial to roll your own basic <stdint.h> with those types for existing C89 implementations.
Unless they don't provide the corresponding type natively at all (which can be the case for some 16-bit platforms and 64-bit). But then you have a bigger problem anyway.