Skip to content
  • Gabor Buella's avatar
    Better detection of error codes in syscall return values · f76ef068
    Gabor Buella authored
    It was problematic before, especially e.g. the case in xmmap_anon:
    the function checked for MMAP_FAILED, but that is only correct
    while using the libc mmap interface. The raw syscall on Linux can
    return one of several negative integers to indicate errors.
    f76ef068