Skip to content

Modify the cfmakeraw() wrapper to handle its return type on AIX - #1495

Merged
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
xingxue-ibm:cfmakeraw
Aug 25, 2025
Merged

sunfishcode merged 1 commit into
bytecodealliance:mainfrom
xingxue-ibm:cfmakeraw

Conversation

@xingxue-ibm

Copy link
Copy Markdown
Contributor

On AIX, the signature of cfmakeraw() differs in that its return type is int instead of void. When the argument termios_p is NULL, it returns -1. Otherwise, it returns 0.

int cfmakeraw(struct termios *termios_p);

We believe it is safe to ignore the return value and have modified the cfmakeraw() wrapper to account for this difference.

@sunfishcode
sunfishcode merged commit abb4ca0 into bytecodealliance:main Aug 25, 2025
1 of 2 checks passed
@sunfishcode

Copy link
Copy Markdown
Member

Thanks!

@sunfishcode

Copy link
Copy Markdown
Member

This is now released in rustix 1.1.1.

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.

2 participants