-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
6016bd5
to
e6ac2f1
Compare
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. |
a108ac1
to
067a9b4
Compare
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 |
Looks like CI may be failing? |
067a9b4
to
045ddfc
Compare
Indeed. The macro is picky about void functions still being annotated to return |
045ddfc
to
8016339
Compare
This includes implementations for Android.
8016339
to
39e554f
Compare
Indeed, got it all sorted out now. |
@bors: r+ |
📌 Commit 39e554f has been approved by |
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)`.
☀️ Test successful - status-appveyor, status-travis |
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`.
* 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
This includes implementations for Android.
cfsetspeed
is basically just a back-to-back call tocfsetispeed
andcfsetospeed
, both of which seem to do the same thing here, so I just copied that body as well forcfsetspeed
. The implementation forcfmakeraw
was taken from the man pages fortermios(3)
.