5 Sep 20:13
Re: UNIX-MMAPBUG(src;unix-glibc2)
From: Raymond Toy <raymond.toy <at> ericsson.com>
Subject: Re: UNIX-MMAPBUG(src;unix-glibc2)
Newsgroups: gmane.lisp.cmucl.devel
Date: 2006-09-05 18:13:45 GMT
Subject: Re: UNIX-MMAPBUG(src;unix-glibc2)
Newsgroups: gmane.lisp.cmucl.devel
Date: 2006-09-05 18:13:45 GMT
>>>>> "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
RSS Feed