Mark H Weaver <m...@netris.org> skribis:

> From b283ad4097a48de11a616083da09ae0e76bab343 Mon Sep 17 00:00:00 2001
> From: Mark H Weaver <m...@netris.org>
> Date: Sat, 22 Aug 2015 13:07:50 -0400
> Subject: [PATCH] syscalls: If a syscall is not available, defer the error.
>
> * guix/build/syscalls.scm (syscall->procedure): New procedure.
>   (mount, umount, swapon, swapoff, clone, setns, pivot-root): Use it.

Even better, indeed.

[...]

> +(define (syscall->procedure return-type name argument-types)
> +  "Return a procedure that wraps the C function NAME using the dynamic FFI.
> +If an error occurs while creating the binding, defer the error report until
> +the returned procedure is called."

Maybe add this is for GNU/Hurd, which lacks some of these wrappers.

Otherwise OK, please push!

Thanks to the two of you,
Ludo’.

Reply via email to