Our great sponsors
-
cmucl-direct-syscalls
Douglas Crosher's public domain code for direct system calls from CMUCL on Linux
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Sure. Hereβs an example in cmucl: https://github.com/xach/cmucl-direct-syscalls
Perhaps the easiest approach is to use the foreign function interface (FFI) of your compiler and wrap the types and functions of unistd.h. One example: https://github.com/sionescu/iolib/tree/master/src/syscalls. Alternatively, you could use syscall
And a lot more. Knee deep in documentation, but still finishing my other stuff first.
It's possible, but you can observe how much trouble it can be in opsys , which doesn't depend on any C headers or do any grovelling. You may be suprised the amount of syscall instability papered over by libc.