Edit

kc3-lang/libbsd/src

Branch :

  • Browse

    Commit

  • Author : Guillem Jover
    Date : 2017-06-14 01:49:25
    Hash : 47013bc9
    Message : Fix broken mmap() usage in nlist() by switching to pread() The offset is not page aligned, which makes mmap() return EINVAL on Linux. Switch to use pread() which handles unaligned offset and non-page sized reads, and because we are already loading parts of the executable by read() calls, so there's not much point in using mmap() anyway.