Subject: obsoleting /usr/include/sys/md[45].h
To: None <tech-userlevel@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: tech-userlevel
Date: 12/12/2000 06:25:21
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <2451.976569871.1@itojun.org>

>Module Name:	basesrc
>Committed By:	itojun
>Date:		Mon Dec 11 21:05:15 UTC 2000
>
>Modified Files:
>	basesrc/include: Makefile
>	syssrc/sys/sys: Makefile
>Added Files:
>	basesrc/include: md5.h
>
>Log Message:
>split /usr/include/sys/md5.h and /usr/include/md5.h completely.
>future direction: nuke /usr/include/sys/md5.h, it shouldn't be there as
>we don't provide libkern to userland.

	i can think of two ways.  any opinions?

itojun



------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <2451.976569871.2@itojun.org>

Index: Makefile
===================================================================
RCS file: /cvsroot/syssrc/sys/sys/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile	2000/12/11 21:05:14	1.25
+++ Makefile	2000/12/11 21:24:16
@@ -12,7 +12,7 @@
 	fdio.h \
 	featuretest.h file.h filedesc.h filio.h gmon.h inttypes.h ioccom.h \
 	ioctl.h ioctl_compat.h ipc.h kcore.h kernel.h kgdb.h ktrace.h lkm.h \
-	localedef.h lock.h lockf.h malloc.h map.h mbuf.h md4.h md5.h midiio.h \
+	localedef.h lock.h lockf.h malloc.h map.h mbuf.h midiio.h \
 	mman.h mount.h msg.h msgbuf.h mtio.h namei.h null.h param.h poll.h \
 	pool.h proc.h protosw.h ptrace.h queue.h reboot.h resource.h \
 	resourcevar.h rnd.h scanio.h sched.h scsiio.h select.h sem.h sha1.h \

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <2451.976569871.3@itojun.org>

Index: md4.h
===================================================================
RCS file: /cvsroot/syssrc/sys/sys/md4.h,v
retrieving revision 1.1
diff -u -r1.1 md4.h
--- md4.h	2000/12/08 06:29:23	1.1
+++ md4.h	2000/12/11 21:24:16
@@ -32,6 +32,10 @@
 #ifndef _SYS_MD4_H_
 #define _SYS_MD4_H_
 
+#ifndef _KERNEL
+#error "sys/md4.h is for kernel only; use include <md4.h> instaed"
+#endif
+
 #include <sys/cdefs.h>
 #include <sys/types.h>
 
Index: md5.h
===================================================================
RCS file: /cvsroot/syssrc/sys/sys/md5.h,v
retrieving revision 1.2
diff -u -r1.2 md5.h
--- md5.h	1997/04/30 00:50:10	1.2
+++ md5.h	2000/12/11 21:24:16
@@ -32,6 +32,10 @@
 #ifndef _SYS_MD5_H_
 #define _SYS_MD5_H_
 
+#ifndef _KERNEL
+#error "sys/md5.h is for kernel only; use include <md5.h> instaed"
+#endif
+
 #include <sys/types.h>
 
 /* MD5 context. */

------- =_aaaaaaaaaa0--