[Libguestfs] [PATCH] ocaml: add handling for errno ENOSPC
Richard W.M. Jones
rjones at redhat.com
Fri Nov 29 12:55:59 UTC 2019
On Fri, Nov 29, 2019 at 01:16:52PM +0100, Pino Toscano wrote:
> ---
> generator/OCaml.ml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/generator/OCaml.ml b/generator/OCaml.ml
> index 92a913015..363aa5232 100644
> --- a/generator/OCaml.ml
> +++ b/generator/OCaml.ml
> @@ -41,6 +41,7 @@ let ocaml_errnos = [
> "ESRCH";
> "ENOENT";
> "EROFS";
> + "ENOSPC";
> ]
>
> (* Generate the OCaml bindings interface. *)
ACK.
As long as the errno codes are defined by POSIX you may as well add
any you need without review.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
More information about the Libguestfs
mailing list