memfd: improve error messages
commitedaed6c711f07267785a05a633d97dc9268a7385
authorIlya Maximets <i.maximets@samsung.com>
Mon, 11 Mar 2019 13:58:50 +0000 (11 16:58 +0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 11 Mar 2019 20:17:01 +0000 (11 17:17 -0300)
treefa4e23f2fff1949fad0870c6e57adc1023b7ba35
parentdf20819328d6fa3cb9d4a259a58cebbee35cdd09
memfd: improve error messages

This gives more information about the failure.
Additionally 'ENOSYS' returned for a non-Linux platforms instead of
'errno', which is not initilaized in this case.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190311135850.6537-5-i.maximets@samsung.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
util/memfd.c