Skip to content

Add cfmakeraw and cfsetspeed #541

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

Merged
merged 1 commit into from
Feb 27, 2017
Merged

Conversation

Susurrus
Copy link
Contributor

This includes implementations for Android. cfsetspeed is basically just a back-to-back call to cfsetispeed and cfsetospeed, both of which seem to do the same thing here, so I just copied that body as well for cfsetspeed. The implementation for cfmakeraw was taken from the man pages for termios(3).

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@Susurrus
Copy link
Contributor Author

I think the problem was that the void datatype needed to be explicit in the weird macro in the Android stuff, so hopefully that's fixed.

@Susurrus Susurrus force-pushed the more_termios branch 2 times, most recently from a108ac1 to 067a9b4 Compare February 27, 2017 16:29
@Susurrus
Copy link
Contributor Author

Ugh! I've done that so many times coming from C and I thought it was compiling on my computer. Weird.

Anyways, I've updated it. so we'll see how it goes now

@alexcrichton
Copy link
Member

Looks like CI may be failing?

@Susurrus
Copy link
Contributor Author

Indeed. The macro is picky about void functions still being annotated to return (). Should be fixed now.

This includes implementations for Android.
@Susurrus
Copy link
Contributor Author

Indeed, got it all sorted out now.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 27, 2017

📌 Commit 39e554f has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 27, 2017

⌛ Testing commit 39e554f with merge 5dd2f39...

bors added a commit that referenced this pull request Feb 27, 2017
Add cfmakeraw and cfsetspeed

This includes implementations for Android. `cfsetspeed` is basically just a back-to-back call to `cfsetispeed` and `cfsetospeed`, both of which seem to do the same thing here, so I just copied that body as well for `cfsetspeed`. The implementation for `cfmakeraw` was taken from the man pages for `termios(3)`.
@bors
Copy link
Contributor

bors commented Feb 27, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 5dd2f39 to master...

@bors bors merged commit 39e554f into rust-lang:master Feb 27, 2017
Susurrus pushed a commit to Susurrus/libc that referenced this pull request Mar 26, 2017
fcntl: Expose FcntlArg variants at the module level

This allows importing them directly from `nix::fcntl` which is more
ergonomic than needing to use them via `FcntlArg`.
danielverkamp pushed a commit to danielverkamp/libc that referenced this pull request Apr 28, 2020
* Add Vector Multiply Add

* Add Vector Negative Multiply Subtract

* Add Vector Sum Across Partial (1/2) Saturated

* Add Vector Sum Across Partial (1/4) Saturated
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.

5 participants