Added an RTEMS specific version of routines needed from copyinout.c

This commit is contained in:
Jennifer Averett
2012-04-18 12:00:33 -05:00
parent fd8fe3fdb9
commit fdd321cb3e
3 changed files with 33 additions and 0 deletions

View File

@@ -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;
}