Coder Social home page Coder Social logo

Comments (11)

xiaoxiang781216 avatar xiaoxiang781216 commented on August 29, 2024 1

Ok, we support the final one(signalfd), great!

from nuttx.

patacongo avatar patacongo commented on August 29, 2024

I would prefer not. These are non-standard GLIBC functions. NuttX follows the standards defined at OpenGroup.org which does not include these interfaces.

There are exceptions to this in the code base now, but I don't think we should proliferate non-standard interfaces.

from nuttx.

patacongo avatar patacongo commented on August 29, 2024

The solution would also required timerfd_create(). https://linux.die.net/man/2/timerfd_settime

While I don't advocate including non-standard interfaces in the OS, I would not oppose the inclusion of these GLIBC/Linux interfaces if they were properly implemented in the nuttx/fs directory (with new interfaces to sched/timer, were configurable, and had proper system calls implemented in syscall/.

from nuttx.

edbek avatar edbek commented on August 29, 2024

yes, of course, the timerfd_create () function is also required. I think it would be very useful for this project to have such a set of functions:

timerfd_create ();
thimerfd_settime ();
thimerfd_gettime ();

Thank you in advance if they appear !

from nuttx.

xiaoxiang781216 avatar xiaoxiang781216 commented on August 29, 2024

We can add eventfd and signalfd to the list too, these three API set is the good addition to POSIX since they strengthen the core UNIX design principle: Everything is a file. And also simplify the signal and timer handling a lot especially if caller need deal with file/socket at the same time.

from nuttx.

edbek avatar edbek commented on August 29, 2024

I agree !

from nuttx.

patacongo avatar patacongo commented on August 29, 2024

eventfd APIs introduced with PR #1479. PR #1479 does not address signalfd and timerfd interfaces, however.

from nuttx.

eerimoq avatar eerimoq commented on August 29, 2024

Hello!

I'm interested in timerfd_create(), timerfd_settime() and timerfd_gettime() as well. Does anyone have an implementation ready? If not, I might try to implement it myself.

from nuttx.

xiaoxiang781216 avatar xiaoxiang781216 commented on August 29, 2024

@eerimoq as far as I know nobody start the work, it will be great to add timerfd support! Actually, you can reference the recent addition of eventfd PR #1479 and #1479.

from nuttx.

pkarashchenko avatar pkarashchenko commented on August 29, 2024

Trying to address this issue in scope of #5014

from nuttx.

xiaoxiang781216 avatar xiaoxiang781216 commented on August 29, 2024

Nice!

from nuttx.

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.