No longer needed
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Dec 16 2025
ping?
Nov 17 2025
In D52526#1228287, @jrtc27 wrote:In D52526#1228284, @arichardson wrote:In D52526#1228266, @jrtc27 wrote:I forgot about this revision and ended up reinventing it in 4dd2b869cd078ed6f40c42d1ef429222da16a58f and 34e7a57673c9730ee5d1f7ebb07e152567bd8e0b so it should be fixed in-tree. I did however retain the knowledge about Clang's bugginess wrt __gnu_linux__ (and wondered where I'd got that from...) so did not use it myself... I did also check musl matched us rather than glibc.
Thanks for committing this. Do we still need the && defined(__USE_GNU)? Technically it's needed but I guess this file is only every compiled with -D_GNU_SOURCE so probably doesn't matter?
Yeah I don't think this is the first place we assume _GNU_SOURCE is in use (and I doubt it builds without), and I'd rather not poke at internal defines if at all possible (i.e. only add it if we ever end up in a case where we get the non-GNU prototype with glibc).
In D52526#1228266, @jrtc27 wrote:I forgot about this revision and ended up reinventing it in 4dd2b869cd078ed6f40c42d1ef429222da16a58f and 34e7a57673c9730ee5d1f7ebb07e152567bd8e0b so it should be fixed in-tree. I did however retain the knowledge about Clang's bugginess wrt __gnu_linux__ (and wondered where I'd got that from...) so did not use it myself... I did also check musl matched us rather than glibc.
Oct 13 2025
Sep 17 2025
In D52528#1200432, @emaste wrote:commit message disagrees with __nonstring?
In D52563#1200450, @sjg wrote:No need for a comment, I committed the following upstream:
Index: var.c =================================================================== RCS file: /cvsroot/src/usr.bin/make/var.c,v retrieving revision 1.1171 diff -u -p -r1.1171 var.c --- var.c 29 Jun 2025 11:02:17 -0000 1.1171 +++ var.c 16 Sep 2025 15:13:28 -0000 @@ -1850,7 +1850,7 @@ QuoteShell(const char *str, bool quoteDo static char * Hash(const char *str) { - static const char hexdigits[16] = "0123456789abcdef"; + static const char hexdigits[] = "0123456789abcdef"; const unsigned char *ustr = (const unsigned char *)str; uint32_t h = 0x971e137bU;
Sep 16 2025
Okay it looks like musl does not have the weird char* strerror_r: https://git.musl-libc.org/cgit/musl/tree/include/string.h#n66, so it will need to be conditional on glibc.
Sep 15 2025
rebase
rebase
rebase
rebase
In D52531#1199810, @emaste wrote:Note: This patch should be a separate commit and not merged.
For testing purposes they are combined.This seems confusing in the commit message
silence warning instead
Sep 14 2025
avoid sys/types.h includes, and update test list
Aug 20 2025
In D52041#1188826, @imp wrote:Do you need sys/types.h, or sys/_types.h? The latter has less namespace pollution...
And if these are on the excluded list for check headers for buildworld, please remove them.
In D52041#1188826, @imp wrote:Do you need sys/types.h, or sys/_types.h? The latter has less namespace pollution...
And if these are on the excluded list for check headers for buildworld, please remove them.
Aug 5 2025
Aug 4 2025
This looks sensible to me. One suggestion would be to avoid the manual caching.
Aug 26 2024
Aug 23 2024
Aug 22 2024
In D46403#1057696, @jrtc27 wrote:In D46403#1057695, @arichardson wrote:In D46403#1057654, @kib wrote:In D46403#1057647, @arichardson wrote:In D46403#1057619, @kib wrote:Could it be simplified by providing an fcntl variant that takes the third arg unconditionally, instead?
I would also be happy with that approach, just assumed this variant would be more flexible. Would the unconditional one look like this: fcntl2(int, int, __intptr_t)?
The actual syscall takes three args unconditionally, so there is no point in adding more complications IMO. By existing conventions, the function perhaps should be called fcntl3.
Actually, I just remembered this would not help with the interposing of fcntl since the interposer would still need to extract the variadic argument.
Well, fcntl would call fcntl3, and you can then interpose the latter, just as with vfcntl.
In D46403#1057654, @kib wrote:In D46403#1057647, @arichardson wrote:In D46403#1057619, @kib wrote:Could it be simplified by providing an fcntl variant that takes the third arg unconditionally, instead?
I would also be happy with that approach, just assumed this variant would be more flexible. Would the unconditional one look like this: fcntl2(int, int, __intptr_t)?
The actual syscall takes three args unconditionally, so there is no point in adding more complications IMO. By existing conventions, the function perhaps should be called fcntl3.
Aug 21 2024
review comments
In D46403#1057607, @jrtc27 wrote:there
is currently no portable way to interpose a variadic function without
relying on undefined behaviourThat's not entirely true, but it requires you to know how many arguments were passed in every possible case, what types they are, va_arg them in turn and call the interposed function with those arguments (or more). Whereas interposing a function that takes the va_list itself means you only need to interpret the arguments in the cases where you actually want to inspect at them.
In D46403#1057619, @kib wrote:Could it be simplified by providing an fcntl variant that takes the third arg unconditionally, instead?
Also zero fp
In D46400#1057540, @jrtc27 wrote:Should we also do fp/s0 to match, like arm64 does?
Jul 8 2024
No sure how much the builtins optimization matters here but if it does the other workaround would be:
Jun 17 2024
It looks like removing this call to memcpy might actually also fix the TSan issue I tried to work around in https://reviews.freebsd.org/D28536. Might be time to try run the TSan testsuite again.
May 2 2024
May 1 2024
They should build for x86, that was the whole point of the upstream changes (supporting ieee 128-bit float in addition to ld80)
Mar 28 2024
Thanks for working on this. This reminds me of my efforts a few years ago to avoid the build-tools awkwardness: https://reviews.freebsd.org/D28253.
Mar 6 2024
Feb 25 2024
In D44030#1004970, @kevans wrote:In D44030#1004924, @arichardson wrote:Have you tried running the lsan test suite with this change?
I'm working on it, but just trying to get the llvm test suite running has been... rough. I chose to redirect from your question to the tangentially related and still valuable: "Have you tried running the asan test suite with this change?" since we can know how much of the asan test suite has passed already.
After fumbling around and finally figuring out that I needed to configure llvm/ with -DLLVM_ENABLE_PROJECTS="clang;compiler-rt" because some of the test prereqs are in llvm or clang, most of the tests that actually run fail because they're trying to do something like:
22:56 <@kevans91_> 70252 103012 Asan-aarch64-inline CALL execve(0,0x81278f78,0x81278f98) 22:56 <@kevans91_> 70252 103012 Asan-aarch64-inline RET execve -1 errno 9 Bad file descriptor... and this is the realization that I just burned a not-insignificant chunk of time because this hasn't been upstreamed yet, three months later: https://cgit.freebsd.org/src/commit/?id=4c9a0adad18263ec8725d9bfc5f560c6ad1da8bd
Feb 23 2024
Have you tried running the lsan test suite with this change?
Feb 2 2024
For example the linux joystick.h defines a bunch of ioctls that I don't see implemented on FreeBSD, so we really shouldn't claim support for it? Maybe the header should only includes the constants?
In D43498#996756, @adridg wrote:input-event-codes.h hasn't changedu pstream in 4 years (perhaps "of course" because it's a tagged release) but if wulf@ says that that one should be obtained upstream, then that seems reasonable. There's no meaningful difference between the base-system-provided version and upstream that I can see -- it's all defines of constants. One concern I have is that we stopped using base-system headers at some point -- at least that's how I remember it -- because the dev/evdev/ headers were not meant for user-space consumption. I can't find that in ports commit history, though, so maybe I'm dreaming it.
Jan 30 2024
Commit message should probably be qualified with "for kernel compilation"?
This LGTM but the commit message should also include the minimum Clang+GCC versions