[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] build: syscalls: Delay syscalls evaluation.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] build: syscalls: Delay syscalls evaluation. |
Date: |
Sun, 07 Feb 2016 21:47:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Mark H Weaver <address@hidden> skribis:
> From b283ad4097a48de11a616083da09ae0e76bab343 Mon Sep 17 00:00:00 2001
> From: Mark H Weaver <address@hidden>
> 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’.