Skip to contentSkip to conversation

gai.conf(5): Example table

DISCUSSION Dr. David Alan Gilbert 2 participants 2 messages Jan 5 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

Hi,
The 'EXAMPLES' section in gai.conf(5) has a table that matches
RFC 3484; however that's not what glibc's default label table is; it's table has three extra entries:

https://sourceware.org/git/?p=glibc.git;a=blob;f=nss/getaddrinfo.c;h=c0f496f96c752220e68bf0257d9ff1ffc624ebe6;hb=HEAD#l1341

and partially in the more readable:
https://sourceware.org/git/?p=glibc.git;a=blob;f=posix/gai.conf;h=4616ed005b2e064175c88609b6d6022a6da4d5d8;hb=HEAD#l31

I wonder if it makes sense to document glibc's default rather than the RFC default?

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
#1 lore raw

Hi Dave,

Quoted 5 lines · Dr. David Alan Gilbert

Hi,
The 'EXAMPLES' section in gai.conf(5) has a table that matches
RFC 3484; however that's not what glibc's default label table is; it's table has three extra entries:

Quoted 7 lines

https://sourceware.org/git/?p=glibc.git;a=blob;f=nss/getaddrinfo.c;h=c0f496f96c752220e68bf0257d9ff1ffc624ebe6;hb=HEAD#l1341

and partially in the more readable:
https://sourceware.org/git/?p=glibc.git;a=blob;f=posix/gai.conf;h=4616ed005b2e064175c88609b6d6022a6da4d5d8;hb=HEAD#l31

I wonder if it makes sense to document glibc's default rather than the RFC default?

Yup; feel free to send patches documenting the glibc behavior. It would also be good to note that those differences are specific to glibc.

Have a lovely New Year!
Alex

Quoted 7 lines

Dave

Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
Signature · 1 line
<https://www.alejandro-colomar.es>