Code Monkey home page Code Monkey logo

Comments (3)

justincormack avatar justincormack commented on June 26, 2024

Yes, although there are only two use cases that I have found, one is signals, but I have found the signalfd interface is actually nicer to use (originally it was necessity!), and the other is for epoll where it might be useful to pass a luajit function pointer, unless I missed some.

from ljsyscall.

ogoudron avatar ogoudron commented on June 26, 2024

Ok, thanks for your reply.

from ljsyscall.

justincormack avatar justincormack commented on June 26, 2024

I have implemented initial support for sigaction with callbacks. Some more options to implement, once I work out what the kernel API actually is...

The epoll case doesn't really make sense, it is just a value, you should be able to pass anything as it is never explicitly a C callback.

The other one I had listed was clone, but it turns out that the syscall does not actually call a function, but the libc version does. I think I will probably implement the system call version.

So I think that is all the callback cases.

from ljsyscall.

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.