1/*
2 * Copyright 2002-2023, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT license.
4 *
5 * Authors:
6 *		Ingo Weinhold, bonefish@cs.tu-berlin.de.
7 *		Axel D��rfler, axeld@pinc-software.de.
8 */
9
10#include <string.h>
11
12#include <KernelExport.h>
13
14#include <vm/vm_page.h>
15
16
17extern "C" status_t
18user_memcpy(void *to, const void *from, size_t size)
19{
20	memcpy(to, from, size);
21	return B_OK;
22}
23
24
25extern "C" ssize_t
26user_strlcpy(char *to, const char *from, size_t size)
27{
28	return strlcpy(to, from, size);
29}
30
31
32extern "C" status_t
33user_memset(void* target, char data, size_t length)
34{
35	memset(target, data, length);
36	return B_OK;
37}
38
39
40page_num_t
41vm_page_num_pages(void)
42{
43	return 65536;
44		// TODO: 256 MB. Return real value?
45}
46