source: rtems-libbsd/rtemsbsd/src/rtems-bsd-copyinout.c @ 31230c0

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 31230c0 was fdd321c, checked in by Jennifer Averett <jennifer.averett@…>, on 04/18/12 at 17:00:33

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

  • Property mode set to 100644
File size: 641 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup rtems_bsd_rtems
5 *
6 * @brief This file contains the RTEMS implementation of the bsd functions
7 * from the copyinout.c file.
8 */
9
10/*
11 *  COPYRIGHT (c) 2012.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 * http://www.rtems.com/license/LICENSE.
17 */
18
19#include <freebsd/machine/rtems-bsd-config.h>
20
21#include <string.h>
22#include <stdio.h>
23#include <rtems.h>
24
25int
26copyinstr(const void *udaddr, void *kaddr, size_t len, size_t *done)
27{
28  memcpy(kaddr, udaddr, len);
29  *done = len;
30  return 0;
31}
Note: See TracBrowser for help on using the repository browser.