mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] About the glibc libresolv vs musl network resolver routines signature
@ 2020-10-23  9:25 =?gb18030?B?xMnAvMja0ak=?=
  2020-10-23 17:08 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: =?gb18030?B?xMnAvMja0ak=?= @ 2020-10-23  9:25 UTC (permalink / raw)
  To: =?gb18030?B?bXVzbA==?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 593 bytes --]

I work with any third party code written with glic, and I need compile and run it in a musl runtime.The code use `res_ninit`, but I cloud not find it in musl's resolv.h file.I noticed that glibc use `res_ninit`, `res_nclose`, `res_nquery`, etc, and marked `res_init`, `res_query`, etc as deprecated, but musl still using the old signature.I'm wondering:- How do I compile the code that use the `res_ninit` routine signature?- Is there a standard for the sinature for `resolv.h` (/usr/include/resolv.h)?- Will musl will use the new `res_ninit` glibc current using or the `res_init` style still?

[-- Attachment #2: Type: text/html, Size: 1306 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [musl] About the glibc libresolv vs musl network resolver routines signature
  2020-10-23  9:25 [musl] About the glibc libresolv vs musl network resolver routines signature =?gb18030?B?xMnAvMja0ak=?=
@ 2020-10-23 17:08 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2020-10-23 17:08 UTC (permalink / raw)
  To: 纳兰融雪; +Cc: musl

On Fri, Oct 23, 2020 at 05:25:44PM +0800, 纳兰融雪 wrote:
> I work with any third party code written with glic, and I need
> compile and run it in a musl runtime.The code use `res_ninit`, but I
> cloud not find it in musl's resolv.h file.I noticed that glibc use
> `res_ninit`, `res_nclose`, `res_nquery`, etc, and marked `res_init`,
> `res_query`, etc as deprecated, but musl still using the old
> signature.I'm wondering:- How do I compile the code that use the
> `res_ninit` routine signature?- Is there a standard for the sinature
> for `resolv.h` (/usr/include/resolv.h)?- Will musl will use the new
> `res_ninit` glibc current using or the `res_init` style still?

resolv.h defines the __RES version macro to indicate the API level
provided, and its meaning is consistent across different libcs. __RES
>= 19991006 indicates support for the res_n* functions. musl's
resolver is stateless and does not have them, and defines __RES
appropriately to indicate that it doesn't.

Rich

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-23 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23  9:25 [musl] About the glibc libresolv vs musl network resolver routines signature =?gb18030?B?xMnAvMja0ak=?=
2020-10-23 17:08 ` Rich Felker

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git