Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nop:
@echo "Run make syscall to update syscall.lisp"

syscall:
{ cat syscall.header; awk '/^#define __NR_/ { name=$$2; sub(/^__NR_/, "", name); print "(defconst SYS_" name " " $$3 ")" }' /usr/include/x86_64-linux-gnu/asm/unistd_64.h; } > syscall.lisp
9 changes: 9 additions & 0 deletions packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ Property list code, included as part of `stdlib.lisp`, so there is no need to ad
```


### syscall

A package containing the definition of linux kernel syscall-numbers, as read from `/usr/include/x86_64-linux-gnu/asm/unistd_64.h`.

```lisp
(require syscall)
```


### tree

A package containing simple AVL-tree routines, used by [our lisp interpreter](../INCEPTION.md).
Expand Down
4 changes: 4 additions & 0 deletions packages/syscall.header
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
;;; syscall-constants
;;
;; These constants define known syscalls, and are auto-generated.
;;
Loading
Loading