diff options
author | Marvin Borner | 2021-04-03 14:04:23 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-03 14:04:23 +0200 |
commit | 394ee169ea6eb4dd5c8fa778d1c2769e26e52f01 (patch) | |
tree | 70440fb0d9eeb09e1aeec7eba6f2319d34b4918c /libs/libc/inc/str.h | |
parent | ce98400f8a9ebd4e62e76b9e292b7598d0d66cc0 (diff) |
Enabled SMAP/SMEP protections
Diffstat (limited to 'libs/libc/inc/str.h')
-rw-r--r-- | libs/libc/inc/str.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/libs/libc/inc/str.h b/libs/libc/inc/str.h index e77eeee..b00750b 100644 --- a/libs/libc/inc/str.h +++ b/libs/libc/inc/str.h @@ -7,14 +7,28 @@ u32 strlen(const char *s) NONNULL; u32 strlcpy(char *dst, const char *src, u32 size) NONNULL; -char *strchr(char *s, int c) NONNULL; -char *strrchr(char *s, int c) NONNULL; +char *strchr(char *s, char c) NONNULL; +char *strrchr(char *s, char c) NONNULL; u32 strlcat(char *dst, const char *src, u32 size) NONNULL; -int strcmp(const char *s1, const char *s2) NONNULL; -int strncmp(const char *s1, const char *s2, u32 n) NONNULL; +s32 strcmp(const char *s1, const char *s2) NONNULL; +s32 strncmp(const char *s1, const char *s2, u32 n) NONNULL; char *strinv(char *s) NONNULL; char *strdup(const char *s) NONNULL; +#ifdef KERNEL + +u32 strlen_user(const char *s) NONNULL; +u32 strlcpy_user(char *dst, const char *src, u32 size) NONNULL; +char *strchr_user(char *s, char c) NONNULL; +char *strrchr_user(char *s, char c) NONNULL; +u32 strlcat_user(char *dst, const char *src, u32 size) NONNULL; +s32 strcmp_user(const char *s1, const char *s2) NONNULL; +s32 strncmp_user(const char *s1, const char *s2, u32 n) NONNULL; +char *strinv_user(char *s) NONNULL; +char *strdup_user(const char *s) NONNULL; + +#endif + const char *strerror(u32 err); #endif |