Comments (2)
During my design of this trait the intention was to involve an int-to-pointer cast here. Those are relatively rare in the ecosystem, so it should be somewhat awkward to use as a way of making sure that's what you really want.
Although, if it's common I think it would be good to add something similar to rustix::ioctl::Setter
that does a number instead of a pointer.
from rustix.
The issue is not whether it's rare, but that for these ioctl
s passing values directly are the only way to communicate with the kernel. If you want to use TUNSETOFFLOAD
with rustix
the only way is to define that UintSetter
somewhere, there are no workarounds. And I prefer that type to be placed in rustix
itself rather than my crate 😉
from rustix.
Related Issues (20)
- Misleading name of `ioctl::BadOpcode` HOT 1
- [Feature Request]: Cargo 3DS support HOT 1
- Mount syscall has wrong parameters
- Start work on rustix 1.0
- waitpgid discards valuable information
- kevent() requires a Vec for its event list, when instead it should probably take a slice HOT 1
- `proc_self_status` fails on concurrent calls
- regression in rustix 0.38.33+ on i686-unknown-linux-gnu HOT 5
- `SendFlags::EOT` seems to be misspelled HOT 1
- Move sycall functions and macro from `linux_raw/arch` to the `linux-raw-sys` crate? HOT 8
- Add `fanotify` APIs
- Bind raw socket to an interface
- Fails to build on wasm32-wasip2
- Rebase the 1.0-staging branch on main HOT 3
- aarch64 linux: `dup2_stdout(stdout())` closes stdout
- setsockopt IP_TRANSPARENT is miss
- Add support for sockaddr_vm HOT 1
- Add memory sanitizer (msan) support for rand::getrandom_uninit (and io::read) HOT 3
- Feature request: Add `fcntl_getlk` support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustix.