Is It Possible to Rewrite a syscall from C in Common Lisp?

This page summarizes the projects mentioned and recommended in the original post on /r/Common_Lisp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cmucl-direct-syscalls

    Douglas Crosher's public domain code for direct system calls from CMUCL on Linux

  • Sure. Here’s an example in cmucl: https://github.com/xach/cmucl-direct-syscalls

  • iolib

    Common Lisp I/O library

  • 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

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

    WorkOS logo
  • lib-os

  • And a lot more. Knee deep in documentation, but still finishing my other stuff first.

  • yew

    πš–πš˜πš—πš˜noπš›πšŽπš™πš˜ (by nibbula)

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

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts