Skip to content

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.

@fiveop
Copy link
Contributor

fiveop commented Feb 27, 2017

@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