|
From: | Andreas Färber |
Subject: | [Qemu-devel] Re: [PATCH v6] Introduce qemu_madvise() |
Date: | Wed, 15 Sep 2010 21:35:56 +0200 |
Am 15.09.2010 um 21:00 schrieb Blue Swirl:
madvise() actually returns 0 or -1 with error code in errno. Should we try to match that?
posix_madvise() doesn't seem to... "otherwise, an error number shall be returned to indicate the error"
It documents EINVAL for invalid advice, and so does madvise. Are we using ENOTSUP knowingly?
Maybe return -1 and set errno to the posix_madvise() return code? (but is it errno = -retval or errno = retval then?)
Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |