[OpenAFS] OpenAFS on OpenBSD-current (ELF)

Jim Rees rees@umich.edu
Mon, 23 Jun 2003 12:00:52 -0400


I don't think it's a good idea to add the missing string functions back into
the kernel.

Please try this patch to your patch.  If it works I'll commit it.

--- src/config/param.i386_obsd34.h-	Mon Jun 23 11:39:04 2003
+++ src/config/param.i386_obsd34.h	Mon Jun 23 11:42:34 2003
@@ -18,7 +18,8 @@
 #define AFS_NAMEI_ENV		1	/* User space interface to file system */
 #define AFS_64BIT_ENV		1
 #define AFS_64BIT_IOPS_ENV	1	/* Needed for NAMEI */
-#define	AFS_OBSD_ENV		1
+#define AFS_OBSD_ENV		1
+#define AFS_OBSD34_ENV		1
 #define AFS_NONFSTRANS		1
 #define AFS_KERBEROS_ENV	1
 #define AFS_VM_RDWR_ENV		1
Index: src/afs/OBSD/osi_machdep.h
===================================================================
RCS file: /cvs/openafs/src/afs/OBSD/osi_machdep.h,v
retrieving revision 1.9
diff -u -r1.9 osi_machdep.h
--- src/afs/OBSD/osi_machdep.h	14 Feb 2003 19:07:19 -0000	1.9
+++ src/afs/OBSD/osi_machdep.h	23 Jun 2003 15:57:00 -0000
@@ -82,7 +82,11 @@
 
 /* str */
 #define afs_strcasecmp(s1, s2)	strncasecmp((s1), (s2), 65535)
+#ifdef AFS_OBSD34_ENV
+#define strcpy(s1, s2)		strncpy((s1), (s2), 65535)
+#else
 #define afs_strcat(s1, s2)	strcat((s1), (s2))
+#endif
 
 /* other */
 #define afs_bufferpages bufpages