[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 22.1 reproducible crash
From: |
Stefan Monnier |
Subject: |
Re: Emacs 22.1 reproducible crash |
Date: |
Tue, 07 Aug 2007 23:31:12 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> + int
> + posix_memalign (memptr, alignment, size)
> + __ptr_t *memptr;
> + __malloc_size_t alignment;
> + __malloc_size_t size;
> + {
> + __ptr_t mem;
> +
> + if (alignment % sizeof (__ptr_t) != 0
> + || (alignment & (alignment - 1)) != 0)
> + return EINVAL;
> +
> + mem = memalign (alignment, size);
> + if (mem == NULL)
> + return ENOMEM;
> +
> + *memptr = mem;
> +
> + return 0;
> + }
Can the result be freed by passing it to `free'?
That's a very important part of the spec.
Stefan
- Re: Emacs 22.1 reproducible crash, YAMAMOTO Mitsuharu, 2007/08/07
- Re: Emacs 22.1 reproducible crash, Gardner Bell, 2007/08/07
- Re: Emacs 22.1 reproducible crash, Giorgos Keramidas, 2007/08/08
- Re: Emacs 22.1 reproducible crash, Giorgos Keramidas, 2007/08/08
- Re: Emacs 22.1 reproducible crash, Jan Djärv, 2007/08/08
- Re: Emacs 22.1 reproducible crash, Giorgos Keramidas, 2007/08/08
- Re: Emacs 22.1 reproducible crash, Gardner Bell, 2007/08/09