blob: 49c55abbf30e436995eba8ea425030f66fdf0d78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}
|