User Details
- User Since
- Jul 1 2014, 6:02 PM (596 w, 1 d)
Yesterday
Mon, Dec 1
Clarify why _ALIGN* are obsolete and what should be used instead.
Fri, Nov 28
- Attempt to clarity _ALIGN's questionable interface
- Use __align_up (just wraps the builtin which has is supported on all compilers that support typeof() by a fallback).
Add an inline function to compute the misalignment. To it in nscache.h
rather than libc_private.h as that's also a private header and I don't
want this sort of thing to spread.
Thu, Nov 27
Wed, Nov 26
Fri, Nov 21
Thu, Nov 20
Describe the types
Actually switch to a pattern
Switch to a pattern
Add some advice about (not) using __intcap_t
I don't feel super strongly about this, but I'm not entirely convinced we should be defining these from first principles. I believe that compilers we care about define __*_WIDTH__ macros we could use instead and things are likely to go very badly wrong if there's disagreement.
Wed, Nov 19
On CheriBSD we also include intcap_t and uintcap_t to be friendly, but we're trying to discourage the hybrid programming model so I'd like to stick with __ variants in FreeBSD.
Tue, Nov 18
Please add Effort: CHERI upstreaming to the commit message so we count this as part of that effort.
Mon, Nov 17
Thu, Nov 6
Oct 24 2025
Oct 23 2025
Oct 21 2025
Oct 20 2025
Oct 15 2025
Oct 8 2025
Could we not just swap the order of the checks in stdckdint.h so clang never evaluates __GNUC_PREREQ__? We're already requiring at least an always-false __has_builtin in the next section in cdefs.h.
@cperciva committed the same thing in 0a3792d5c5764945259333db4c66774385f01ba7
Oct 7 2025
Drop riscv_clen and add CHERI__
Mention __riscv_clen. It definitly exists in CHERI LLVM, I didn't have
an easy way to check RV64Y so go with this for now.
Corrections and suggestions from @jhb
Oct 3 2025
Add (planned) to CHERI architectures
Actully add previous change I guess I hadn't rebased
Address suggestions from markj and kib
FWIW, we do currently add __LP64__ to CFLAGS in bsd.cpu.mk has a hack because there's a lot of code of the form:
#ifdef __LP64__ // 64-bit stuff #else // 32-bit stuff #endif
and we haven't cleaned it all up yet. The goal here is to get people stop adding more. It is usually less wrong to write:
#ifdef __ILP32__ // 32-bit stuff #else // 64-bit stuff #endif
since much of the time a the 64-bit stuff isn't about pointer size.
Be explicit that the compiler does not define LP64 on CHERI
architectures. Don't bother mentioning ILP32 as FreeBSD will never
support 32-bit CHERI.
Oct 2 2025
Revise wording around ptrdiff_t, etc use.
Attempt to approve wording around continued use of ILP32 and LP64.
