Subject: __RCSID vs. __KERNEL_RCSID in shared code
To: None <tech-kern@NetBSD.org>
From: Chapman Flack <nblists@anastigmatix.net>
List: tech-kern
Date: 06/06/2006 11:02:42
Is there a Right Way to include RCS ids in code that can be built
both for kernel and userland?  I notice there are two macros, so does
that mean

#ifdef _KERNEL
__KERNEL_RCSID(0,"foo");
#else
__RCSID("foo");
#endif

?

I don't see it done in existing code, but common/lib/libc uses
plain __RCSID unconditionally, and common/lib/libprop uses no
RCS ids at all, so I'm not sure what lesson to take away.

-Chap