Skip to content

Conversation

@flowerysong
Copy link
Owner

@flowerysong flowerysong commented Aug 8, 2025

For what I'm sure are very good reasons, libc implementations like to export the symbol as __res_ninit and have res_ninit as a #define.

https://sourceware.org/git/?p=glibc.git;a=blob;f=resolv/resolv.h;h=b8a0f66a;hb=HEAD#l228

This means a naive check for the symbol always fails.

I've tested this replacement check on Rocky Linux 9, FreeBSD 14, and Alpine (musl does not implement res_ninit), but I'd kind of like to find somewhere where an additional library is actually necessary to have complete confidence in it...

@flowerysong flowerysong force-pushed the res_ninit branch 2 times, most recently from 8806acb to c928cd6 Compare August 8, 2025 16:32
For what I'm sure are very good reasons, libc implementations like
to export the symbol as `__res_ninit` and have `res_ninit` as a
`#define`.

https://sourceware.org/git/?p=glibc.git;a=blob;f=resolv/resolv.h;h=b8a0f66a;hb=HEAD#l228

This means a naive check for the symbol always fails.
@flowerysong flowerysong merged commit 861245e into main Aug 18, 2025
6 checks passed
@flowerysong flowerysong deleted the res_ninit branch August 18, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant