bug in mmap() and mremap() return value - and a fix
Stelian Ionescu
sionescu at cddr.org
Sun Jan 12 00:37:56 UTC 2014
On Thu, 2014-01-09 at 01:08 +0000, Luís Oliveira wrote:
> On Thu, Jan 9, 2014 at 12:15 AM, Massimiliano Ghilardi
> <massimiliano.ghilardi at gmail.com> wrote:
> > 2) Thinking that (or actually defining) MAP_FAILED = -1 is misleading.
> > MAP_FAILED is (void *)-1.
>
> Your patch looks good. Perhaps we could teach cffi-grovel how to
> grovel pointers, then we'd be able to ditch the *map-failed-pointer*
> bits. I've attached an untested patch that does that. Does using
> (constant ... :type pointer) for the MAP_* constants solve the problem
> you found?
Somebody with more free time than me should try to back-port into cffi
iolib-grovel, which is cffi-grovel modified to use C++. iolib-grovel has
no problems with pointers because it uses C++ polymorphism and its
implicit casts for grovelling.
--
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/osicat-devel/attachments/20140112/620562e8/attachment.sig>
More information about the osicat-devel
mailing list