This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [NETLINK]: Schedule removal of old macros exported to userspace


From: Thomas Graf <tgraf@suug.ch>
Date: Sat, 9 Dec 2006 11:39:53 +0100

> +What:	Netlink message and attribute parsing macros
> +When:	July 2007
> +Why:	The old interface which often lead to buggy code has been replaced
> +	with a new type safe interface. Parts of this interface, mainly
> +	macros, has been exported to userspace via linux/netlink.h and
> +	linux/rtnetlink.h. Use of this interface is discontinued, all helper
> +	and utility macros will be removed. Userspace applications should use
> +	one of the available libraries.
> +Who:	Thomas Graf <tgraf@suug.ch>

You can't deprecate stuff visible to userspace, sorry Thomas,
we just can't do it.

You can migrate people to "better" interfaces, but you can't
pull the rug out from anyone once things like this are visible
to userspace.  It's permanently there, and we have to live with
that.

Once idea I have is that you could tag these things as
"deprecated" by making them use inline functions or similar
and adding the deprecated GCC attribute to them.  I'd be
very happy to include a patch like that.

This way userland gets the warning and people building it (and
in particular the developer) will see that they have something
to fix up.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]