Giter VIP home page Giter VIP logo

Comments (6)

agrover avatar agrover commented on July 25, 2024

ioctls appear to be inoperative at the moment.

from nix.

carllerche avatar carllerche commented on July 25, 2024

@agrover what do you mean?

from nix.

agrover avatar agrover commented on July 25, 2024

@carllerche on further examination I am wrong, I guess ioctl! actually is what calls ioctl() now, and no doubt it works 😄

But some more documentation and examples around ioctl! would be great. I see how iorw!() and friends map to what was in 0.3.9, but converting read_into(x) and read_into_ptr(x) calls into ioctl!(x) is not at all clear to me, or documented as well as the old way was.

(tailhook sorry for hijacking your bug)

from nix.

posborne avatar posborne commented on July 25, 2024

@agrover, I can work on improving the documentation. For now, here's a couple pieces of code I have started to put together using the new macros:

To be honest, I have somewhat mixed feelings about the new macros. I think they are better in some ways but there will likely need to be some improvement on them over time to get things where they should be long term. Feedback, changes welcome.

I'm not sure how best to approach other platforms either. Some research will be required. I think it would be good to make something like the current "bad" version of the ioctl! macro available on all platforms.

from nix.

agrover avatar agrover commented on July 25, 2024

@posborne thanks that'll get me started!

from nix.

carllerche avatar carllerche commented on July 25, 2024

Done!

from nix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.