mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 03:41:03 +08:00
Added an RTEMS specific version of routines needed from copyinout.c
This commit is contained in:
31
rtemsbsd/src/rtems-bsd-copyinout.c
Normal file
31
rtemsbsd/src/rtems-bsd-copyinout.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user