aboutsummaryrefslogtreecommitdiff
path: root/pk/usermem.h
blob: 3cb3ed0c4df9d818c3bd6c39d6f24913e9fd0c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// See LICENSE for license details.

#ifndef _PK_USERMEM_H
#define _PK_USERMEM_H

#include <stdbool.h>
#include <stddef.h>

void memset_user(void* dst, int ch, size_t n);
void memcpy_to_user(void* dst, const void* src, size_t n);
void memcpy_from_user(void* dst, const void* src, size_t n);
bool strcpy_from_user(char* dst, const char* src, size_t n);

#endif