Added BSD style bcopy/bzero() functions to the build again - BeOS bash
uses them, too, and maybe others as well. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8772 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7800e87a5a
commit
1676c18192
@ -1,34 +1,37 @@
|
|||||||
SubDir OBOS_TOP src kernel libroot posix string ;
|
SubDir OBOS_TOP src kernel libroot posix string ;
|
||||||
|
|
||||||
KernelMergeObject posix_string.o :
|
KernelMergeObject posix_string.o :
|
||||||
<$(SOURCE_GRIST)>memchr.c
|
bcopy.c
|
||||||
<$(SOURCE_GRIST)>memcmp.c
|
bzero.c
|
||||||
<$(SOURCE_GRIST)>memcpy.c
|
memchr.c
|
||||||
<$(SOURCE_GRIST)>memmove.c
|
memcmp.c
|
||||||
<$(SOURCE_GRIST)>memset.c
|
memcpy.c
|
||||||
<$(SOURCE_GRIST)>strcasecmp.c
|
memmove.c
|
||||||
<$(SOURCE_GRIST)>strcasestr.c
|
memset.c
|
||||||
<$(SOURCE_GRIST)>strcat.c
|
strcasecmp.c
|
||||||
<$(SOURCE_GRIST)>strchr.c
|
strcasestr.c
|
||||||
<$(SOURCE_GRIST)>strchrnul.c
|
strcat.c
|
||||||
<$(SOURCE_GRIST)>strcmp.c
|
strchr.c
|
||||||
<$(SOURCE_GRIST)>strcpy.c
|
strchrnul.c
|
||||||
<$(SOURCE_GRIST)>strcspn.c
|
strcmp.c
|
||||||
<$(SOURCE_GRIST)>strdup.c
|
strcoll.c
|
||||||
<$(SOURCE_GRIST)>strerror.c
|
strcpy.c
|
||||||
<$(SOURCE_GRIST)>strlcat.c
|
strcspn.c
|
||||||
<$(SOURCE_GRIST)>strlcpy.c
|
strdup.c
|
||||||
<$(SOURCE_GRIST)>strlen.c
|
strerror.c
|
||||||
<$(SOURCE_GRIST)>strncat.c
|
strlcat.c
|
||||||
<$(SOURCE_GRIST)>strncmp.c
|
strlcpy.c
|
||||||
<$(SOURCE_GRIST)>strncpy.c
|
strlen.c
|
||||||
<$(SOURCE_GRIST)>strnicmp.c
|
strncat.c
|
||||||
<$(SOURCE_GRIST)>strnlen.c
|
strncmp.c
|
||||||
<$(SOURCE_GRIST)>strpbrk.c
|
strncpy.c
|
||||||
<$(SOURCE_GRIST)>strrchr.c
|
strnicmp.c
|
||||||
<$(SOURCE_GRIST)>strspn.c
|
strnlen.c
|
||||||
<$(SOURCE_GRIST)>strstr.c
|
strpbrk.c
|
||||||
<$(SOURCE_GRIST)>strtok.c
|
strrchr.c
|
||||||
:
|
strspn.c
|
||||||
-fPIC -DPIC
|
strstr.c
|
||||||
|
strtok.c
|
||||||
|
|
||||||
|
: -fPIC -DPIC
|
||||||
;
|
;
|
||||||
|
@ -3,9 +3,16 @@
|
|||||||
** Distributed under the terms of the NewOS License.
|
** Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef bcopy
|
||||||
|
# undef bcopy
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void *bcopy(void const *src, void *dest, size_t count);
|
||||||
|
|
||||||
void *
|
void *
|
||||||
bcopy(void const *src, void *dest, size_t count)
|
bcopy(void const *src, void *dest, size_t count)
|
||||||
{
|
{
|
||||||
|
@ -3,12 +3,20 @@
|
|||||||
** Distributed under the terms of the NewOS License.
|
** Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef bzero
|
||||||
|
# undef bzero
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void bzero(void *dest, size_t count);
|
||||||
|
|
||||||
void
|
void
|
||||||
bzero(void *dst, size_t count)
|
bzero(void *dest, size_t count)
|
||||||
{
|
{
|
||||||
memset(dst, 0, count);
|
memset(dest, 0, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user