Skip to content

Add asio::basic_errors::not_supported#1736

Open
Lkzeu wants to merge 1 commit intochriskohlhoff:masterfrom
Lkzeu:add_asio_basic_errors_not_supported
Open

Add asio::basic_errors::not_supported#1736
Lkzeu wants to merge 1 commit intochriskohlhoff:masterfrom
Lkzeu:add_asio_basic_errors_not_supported

Conversation

@Lkzeu
Copy link
Copy Markdown

@Lkzeu Lkzeu commented Apr 7, 2026

As noted by Vinícius dos Santos¹, ENOTSUP and EOPNOTSUPP may alias on some systems. That's the case for Linux and FreeBSD.

On Systems where ENOTSUP and EOPNOTSUPP have the same errno values, one might inadvertently catch EOPNOTSUPP when a composed operation throws ENOTSUP. There's nothing ASIO can do here, so we don't try to.

Reference:
¹https://sourceforge.net/p/asio/mailman/message/58710157/

As noted by Vinícius dos Santos¹, ENOTSUP and EOPNOTSUPP may alias
on some systems. That's the case for Linux and FreeBSD.

On Systems where ENOTSUP and EOPNOTSUPP have the same errno values,
one might inadvertently catch EOPNOTSUPP when a composed operation
throws ENOTSUP. There's nothing ASIO can do here, so we don't try to.

Reference:
¹https://sourceforge.net/p/asio/mailman/message/58710157/
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