Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xingxue-ibm
Copy link

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.

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