Define bzero()/bcopy() in terms of memset()/memcpy() if LIBSA_USE_MEMSET

or LIBSA_USE_MEMCPY is defined.  Most everything pulls in stand.h so
this should cover ports that only use memset/memcpy but still want to
pull in as much as possible from sys/lib/libsa.
This commit is contained in:
simonb 1999-02-22 10:08:42 +00:00
parent e87d6bf17e
commit e7d831fa31
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: stand.h,v 1.29 1999/02/12 10:51:28 drochner Exp $ */
/* $NetBSD: stand.h,v 1.30 1999/02/22 10:08:42 simonb Exp $ */
/*-
* Copyright (c) 1993
@ -45,6 +45,13 @@
#define NULL 0
#endif
#ifdef LIBSA_USE_MEMSET
#define bzero(s, l) memset(s, 0, l)
#endif
#ifdef LIBSA_USE_MEMCPY
#define bcopy(s, d, l) memcpy(d, s, l) /* For non-overlapping copies only */
#endif
struct open_file;
/*