diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-03 00:15:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-03 00:15:10 +0000 |
commit | 9e6bb4573162644dc83a51d96f3ffc99f74bae30 (patch) | |
tree | c04cf1a916551d9bbcc5ff4d77a270bf285e593c /nuttx/include | |
parent | c2bf95773d0f1fe32e28d269ac100a240849b6e4 (diff) | |
download | px4-nuttx-9e6bb4573162644dc83a51d96f3ffc99f74bae30.tar.gz px4-nuttx-9e6bb4573162644dc83a51d96f3ffc99f74bae30.tar.bz2 px4-nuttx-9e6bb4573162644dc83a51d96f3ffc99f74bae30.zip |
RPC updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4446 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/string.h | 17 |
1 files changed, 10 insertions, 7 deletions
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 <spudmonkey@racsa.co.cr> + * Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -45,8 +45,15 @@ #include <stddef.h> /**************************************************************************** - * 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) } |