Subject: Re: ovbcopy
To: None <>
From: Luke Mewburn <>
List: source-changes
Date: 07/09/2001 10:29:14
On Mon, Jul 09, 2001 at 08:50:58AM +0900, wrote:
> >In the medium term, I want to try to assure that FreeBSD and OpenBSD
> >both have mem*() implemented in their kernels (even if they keep b*())
> >so as to permit portable code to be written between all three.
> 	I'm sure BSD/OS does not have one yet.

This has probably already been stated, but what's wrong with using the
more standard ANSI mem*() functions in the code instead of the older
BSD b*() functions, and provide compatibility #defines on the platforms
which don't have the ANSI compatible functions in their kernel source?

This is the practice I've been using in portable user-land code for
years. (Use strrchr() instead of rindex(), memmove() instead of bcopy(),
etc, and provide #defines for systems that don't have str*() or mem*())