about summary refs log tree commit diff stats
path: root/src/bindings/pledge.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/pledge.nim')
-rw-r--r--src/bindings/pledge.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bindings/pledge.nim b/src/bindings/pledge.nim
new file mode 100644
index 00000000..8d265fe6
--- /dev/null
+++ b/src/bindings/pledge.nim
@@ -0,0 +1,6 @@
+{.push header: "<unistd.h>", importc.}
+
+proc pledge*(promises, execpromises: cstring): cint
+proc unveil*(path, permissions: cstring): cint
+
+{.pop.}