From 9e6bb4573162644dc83a51d96f3ffc99f74bae30 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 3 Mar 2012 00:15:10 +0000 Subject: RPC updates git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4446 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/string.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'nuttx/include') diff --git a/nuttx/include/string.h b/nuttx/include/string.h index 5cc8d7962..1c6f5c964 100644 --- a/nuttx/include/string.h +++ b/nuttx/include/string.h @@ -1,8 +1,8 @@ /**************************************************************************** * include/string.h * - * Copyright (C) 2007-2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -45,8 +45,15 @@ #include /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ +/* Compatibility definitions */ + +#ifndef CONFIG_ARCH_BZERO +# define bzero(s,n) (void)memset(s,0,n) +#endif + +#define bcopy(b1,b2,len) (void)memmove(b2,b1,len) /**************************************************************************** * Global Function Prototypes @@ -89,10 +96,6 @@ EXTERN FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n); EXTERN int memcmp(FAR const void *s1, FAR const void *s2, size_t n); EXTERN FAR void *memmove(FAR void *dest, FAR const void *src, size_t count); -#ifndef CONFIG_ARCH_BZERO -# define bzero(s,n) (void)memset(s,0,n) -#endif - #undef EXTERN #if defined(__cplusplus) } -- cgit v1.2.3