diff options
author | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-04-18 12:00:33 -0500 |
---|---|---|
committer | Jennifer Averett <jennifer.averett@oarcorp.com> | 2012-04-18 12:00:33 -0500 |
commit | fdd321cb3e97872458cadda58d66bc3da5ca6880 (patch) | |
tree | a622f2ef449f9ad4e031eae2424b9992b3b9f1ef /rtemsbsd | |
parent | Add rtems-bsd-timeout.c to Makefile (diff) | |
download | rtems-libbsd-fdd321cb3e97872458cadda58d66bc3da5ca6880.tar.bz2 |
Added an RTEMS specific version of routines needed from copyinout.c
Diffstat (limited to 'rtemsbsd')
-rw-r--r-- | rtemsbsd/src/rtems-bsd-copyinout.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/rtemsbsd/src/rtems-bsd-copyinout.c b/rtemsbsd/src/rtems-bsd-copyinout.c new file mode 100644 index 00000000..49c55abb --- /dev/null +++ b/rtemsbsd/src/rtems-bsd-copyinout.c @@ -0,0 +1,31 @@ +/** + * @file + * + * @ingroup rtems_bsd_rtems + * + * @brief This file contains the RTEMS implementation of the bsd functions + * from the copyinout.c file. + */ + +/* + * COPYRIGHT (c) 2012. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#include <freebsd/machine/rtems-bsd-config.h> + +#include <string.h> +#include <stdio.h> +#include <rtems.h> + +int +copyinstr(const void *udaddr, void *kaddr, size_t len, size_t *done) +{ + memcpy(kaddr, udaddr, len); + *done = len; + return 0; +} |