Re: Zero-length allocation with posix_memalign()

2009-07-06 Thread Fabian Keil
Jason Evans wrote: > Fabian Keil wrote: > > Rémi Denis-Courmont, one of the vlc developers, pointed out > > that passing a zero size to posix_memalign() should actually > > work, though: > > > > | In principle, while useless, there is no reason why allocating an empty > > | picture should not b

Re: mmap/munmap with zero length

2009-07-06 Thread Dag-Erling Smørgrav
Bob Bishop writes: > Dag-Erling Smørgrav writes: > > Allocating or mapping a zero-length region is not necessarily a bug. > POSIX says it is, IIRC. For mmap(), yes; for malloc(), no. DES -- Dag-Erling Smørgrav - d...@des.no ___ freebsd-hackers@freebs

Re: mmap/munmap with zero length

2009-07-06 Thread Bob Bishop
Hi, On 6 Jul 2009, at 13:14, Dag-Erling Smørgrav wrote: Allocating or mapping a zero-length region is not necessarily a bug. POSIX says it is, IIRC. -- Bob Bishop r...@gid.co.uk ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.

Re: mmap/munmap with zero length

2009-07-06 Thread Dag-Erling Smørgrav
"Paul B. Mahol" writes: > there is V flag for malloc.conf Irrelevant. > It wouldn't improve badly written program. Allocating or mapping a zero-length region is not necessarily a bug. DES -- Dag-Erling Smørgrav - d...@des.no ___ freebsd-hackers@free

[Probably interesting for us] libcompiler_rt

2009-07-06 Thread Ed Schouten
Hi all. I think I've probably mentioned dozens of times I've been working with some other people to get FreeBSD working with Clang in the base system. The LLVM people recently announced another project that may be interesting for us, which should be usable with both GCC and Clang: http://