matos/core/uaccess.h

9 lines
251 B
C
Raw Normal View History

2021-11-09 20:35:55 +01:00
#pragma once
#include "types.h"
2024-01-31 23:47:42 +01:00
#include "stddef.h"
2021-11-09 20:35:55 +01:00
#include "stdarg.h"
int memcpyFromUser(vaddr_t to, uaddr_t from, size_t size);
int memcpyToUser(uaddr_t to, vaddr_t from, size_t size);
2023-03-24 23:43:09 +01:00
int strzcpyFromUser(vaddr_t *to, uaddr_t *from, size_t size);