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

Reply via email to