Source-Changes-D archive

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

Re: CVS commit: src/share/man/man3

On Wed, Mar 03, 2010 at 12:58:33PM -0500, Greg A. Woods wrote:
> I believe that __UNCONST() in particular is _never_ absolutely necessary
> -- it may sometimes save a very few cycles and a few bytes of storage,
> but that's the best it can do.

At least one important interface would use its purpose without
__UNCONST. I'm talking about writev -- if you have to copy all constants
first, because struct iovec has a void * as iov_base, it stops making
sense to use writev in first place.

There is the general issue of const char ** vs char * const * in POSIX
to be considered as well.


Home | Main Index | Thread Index | Old Index