Page MenuHomeFreeBSD

gai_strerror() - Update string error messages according to RFC 3493
ClosedPublic

Authored by pfg on Dec 21 2018, 4:37 PM.
Tags
None
Referenced Files
F163119647: D18630.id52232.diff
Mon, Jul 20, 6:07 AM
Unknown Object (File)
Sat, Jul 18, 6:29 PM
Unknown Object (File)
Mon, Jul 13, 10:21 PM
Unknown Object (File)
Thu, Jul 9, 11:16 AM
Unknown Object (File)
Wed, Jul 8, 3:56 AM
Unknown Object (File)
Thu, Jul 2, 9:28 PM
Unknown Object (File)
Mon, Jun 29, 6:12 PM
Unknown Object (File)
Sat, Jun 27, 10:14 AM
Subscribers

Details

Reviewers
ygy
bcr
pfg
Group Reviewers
network
docs
manpages
Summary

I noticed NetBSD started bogusly rreplacing EAI_NONAME with the deprecated EAI_NODATA, this was done because the haven't tagged EAI_NODATA as deprecated but also because the messsage for EAI_NONAME doesn't correspond well to EAI_NODATA.

Also, for a non.-developer end user something like "Invalid value for ai_flags" or "ai_family not supported" is not a very descriptive message.

Looking up more modern descriptions, I came up with the latest RFC 3493 with more up to date messages.

I just noticed we should also update the gai_strerror(3) man page, so that will come in a future revision.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 21694

Event Timeline

This revision is now accepted and ready to land.Dec 22 2018, 9:16 AM
bcr added a subscriber: bcr.

OK from the docs side.

Keep the documentation consitent in the headers and manpage as well.
(Yes, I still have to update the manpage date before committing).

This revision now requires review to proceed.Dec 23 2018, 12:49 AM
This revision is now accepted and ready to land.Dec 23 2018, 10:48 AM
bz added inline comments.
include/netdb.h
162

Comments end in '.'

lib/libc/net/gai_strerror.3
73

Do you think you could also add a "SEE ALSO" section with a reference to the RFC(s)?

This revision now requires review to proceed.Dec 23 2018, 5:49 PM
pfg marked 2 inline comments as done.Dec 23 2018, 5:50 PM

Thanks for the suggestions.

lib/libc/net/gai_strerror.3
73

I added STANDARDS, as in other pages.

pfg marked an inline comment as done.

Commtted as r342379

This revision is now accepted and ready to land.Dec 23 2018, 6:21 PM