kernel: user safe strlen

This commit is contained in:
Matheus
2022-12-13 23:41:40 -03:00
parent 9fc62579ea
commit c17a2f4c6c
5 changed files with 55 additions and 1 deletions
+2
View File
@@ -42,6 +42,8 @@ typedef struct _thread_t{
vmm_context* ctx;
pid_t tid;
int priority;
int umemoperror;
void (*umemopfailaddr)();
} thread_t;
typedef struct _proc_t{
+9
View File
@@ -0,0 +1,9 @@
#ifndef _USTRING_H_INCLUDE
#define _USTRING_H_INCLUDE
#include <stddef.h>
int u_strlen(const char* str, size_t* size);
#endif