tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: constification ?



In article <200804210213.WAA04925%Sparkle.Rodents.Montreal.QC.CA@localhost>,
der Mouse  <mouse%Rodents.Montreal.QC.CA@localhost> wrote:
>> What is the feeling about constification of libc?
>
>In general, I think it's good, though I can't claim to speak for "the
>feeling".
>
>There are a few problems, though, notably readv/writev, which for
>historical reasons share the same struct iovec, which because of readv
>cannot have a const iov_base - which means writev requires a
>const-stripper to be used in properly const-poisoned code.
>
>I've been thinking about it for a while now and haven't come up with
>any solution I like.

A union would work, but it breaks the standards.

christos



Home | Main Index | Thread Index | Old Index