Raymond Toy | 5 Sep 20:13
Picon
Favicon

Re: UNIX-MMAPBUG(src;unix-glibc2)

>>>>> "Madhu" == Madhu  <enometh <at> meer.net> writes:

    Madhu> Helu
    Madhu> UNIX:UNIX-MMAP always fails. Macroexpanding the SYSCALL macro reveals
    Madhu> that the return type of a syscall is expected to be an INT. However
    Madhu> mmap(2) returns a pointer, and the RESULT when coerced to an INT is
    Madhu> (incorrectly) negative, at least on x86f Lunix.

    Madhu> I suggest we special-case UNIX-MMAP to not use the SYSCALL macro.

Yes.  I see that unix.lisp has a nice comment that syscall can't be
used in unix-mmap.  I'll adjust unix-glibc accordingly.

Ray


Gmane