Subject: crcmp(), once again
To: None <tech-kern@NetBSD.org>
From: Roland Illig <rillig@NetBSD.org>
List: tech-kern
Date: 11/17/2005 22:20:21
I just looked at the kernel source, and the crcmp() function has not yet
disappeared, although I think it should. These are the reasons:
- It is unclear why it is necessary at all.
http://mail-index.netbsd.org/tech-kern/2005/11/04/0005.html
- It is only used in one place:
src/sys/kern/vfs/nfs_export.c
- It is the only reason for sorting group lists
when they enter the kernel via setgroups(),
which itself is considered unwanted.
http://mail-index.netbsd.org/tech-kern/2005/11/03/0021.html
- Removing it would make grsortu() superfluous.
src/sys/kern/kern_prot.c
- It has a big FIXME comment.
src/sys/kern/kern_prot.c
If any of these statements are wrong, please correct me.
If anyone can tell me why this function is necessary, even better.
Please do so.
Roland