diff options
author | obrien <obrien@FreeBSD.org> | 2009-01-19 17:25:17 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2009-01-19 17:25:17 +0000 |
commit | 2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e (patch) | |
tree | af590d7b357b1c28ab81f0cde1b0ea76a098fb7e /x/binutils/libiberty/memcpy.c | |
parent | cd5f96a9efbe194cb6e0506e727cb6d287247d69 (diff) | |
download | FreeBSD-src-2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e.zip FreeBSD-src-2b02dfaa48ad11ff3ee427ee1db57fb6017a8a5e.tar.gz |
Rename vendor/binutils/*/contrib to vendor/binutils/*/x
Binutils has a "contrib" subdirectory - thus flattening cannot happen
without renaming the upper level contrib directory in a first pass.
Also, don't record this move and remove any keyword expansion.
Diffstat (limited to 'x/binutils/libiberty/memcpy.c')
-rw-r--r-- | x/binutils/libiberty/memcpy.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/x/binutils/libiberty/memcpy.c b/x/binutils/libiberty/memcpy.c new file mode 100644 index 0000000..5eece7a --- /dev/null +++ b/x/binutils/libiberty/memcpy.c @@ -0,0 +1,32 @@ +/* memcpy (the standard C function) + This function is in the public domain. */ + +/* + +@deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, size_t @var{length}) + +Copies @var{length} bytes from memory region @var{in} to region +@var{out}. Returns a pointer to @var{out}. + +@end deftypefn + +*/ + +#include <ansidecl.h> +#ifdef ANSI_PROTOTYPES +#include <stddef.h> +#else +#define size_t unsigned long +#endif + +void bcopy PARAMS((const void*, void*, size_t)); + +PTR +memcpy (out, in, length) + PTR out; + const PTR in; + size_t length; +{ + bcopy(in, out, length); + return out; +} |