tech-userlevel archive

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

Re: constification ?

In article <>,
Iain Hibbert  <> wrote:
>What is the feeling about constification of libc?  I have seen problems
>sometimes where FreeBSD has already done these (eg passing const strings
>to dirname(3) and basename(3) breaks on NetBSD) and wonder if we should
>now I was writing something using uuid(3) and find that comparing against
>a const value won't build, are there objections to the patch below that
>constifies uuid(3) ?
>so far as I understand, this sort of thing doesn't actually change the ABI
>at all (just makes the API more liberal) so doesn't require a version

I think that we should follow. I don't think it breaks the ABI even for
c++ because these are all c functions.


Home | Main Index | Thread Index | Old Index