Comments (3)
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.
Ok, thanks for your reply.
from ljsyscall.
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)
- Packaging question/request for feedback HOT 3
- No atexit on Ubuntu 14.04/15.04 HOT 4
- Add TFD_TIMER_CANCEL_ON_SET constant HOT 2
- How to create directory with sticky tag? HOT 7
- Test failing on FreeBSD 10.2 HOT 6
- Signal masked with custom handler ignored HOT 3
- getcpu() call appears not to work HOT 5
- Failing tests on x86_64 HOT 5
- nice test failing on docker cloud CI
- execv() HOT 4
- SEEK_DATA and SEEK_HOLE support for linux HOT 3
- wrong require"syscall"._VERSION HOT 1
- syscall.lfs improvement HOT 4
- copy_file_range support
- at least lfs is broken on later versions of TrueOS (eg. FreeBSD 12.0 current) HOT 7
- netlink neighbors code returns rtmsg instead of ndmsg HOT 3
- Missing O_TMPFILE constant HOT 1
- Misoptimization on lseek system call HOT 19
- WSL test failures
- Luajit Boot HOT 1
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 ljsyscall.