diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/string.h | 2 | ||||
-rw-r--r-- | src/include/sys/msg.h | 4 | ||||
-rw-r--r-- | src/include/sys/vfs.h | 26 |
3 files changed, 30 insertions, 2 deletions
diff --git a/src/include/string.h b/src/include/string.h index a2b704067..30c878d65 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -9,6 +9,8 @@ extern "C" #endif void* memset(void* s, int c, size_t n); + + char* strcpy(char* d, const char* s); int strcmp(const char* s1, const char* s2); #ifdef __cplusplus diff --git a/src/include/sys/msg.h b/src/include/sys/msg.h index ca5dab7e6..d7c42f4e3 100644 --- a/src/include/sys/msg.h +++ b/src/include/sys/msg.h @@ -22,8 +22,8 @@ struct msg_t // Message queue interfaces. msg_q_t msg_q_create(); int msg_q_destroy(); -int msg_q_register(msg_q_t q, char* name); -msg_q_t msg_q_resolve(char* name); +int msg_q_register(msg_q_t q, const char* name); +msg_q_t msg_q_resolve(const char* name); // Message interfaces. __attribute__((always_inline)) diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h new file mode 100644 index 000000000..579b9ba34 --- /dev/null +++ b/src/include/sys/vfs.h @@ -0,0 +1,26 @@ +#ifndef __SYS_VFS_H +#define __SYS_VFS_H + +#include <stdint.h> + +#ifdef __cplusplus +extern "C" +{ +#endif + +extern const char* VFS_ROOT; +extern const char* VFS_ROOT_BIN; +extern const char* VFS_ROOT_DATA; +extern const char* VFS_ROOT_MSG; + +enum VfsMessages +{ + VFS_MSG_REGISTER_MSGQ, + VFS_MSG_RESOLVE_MSGQ, +}; + +#ifdef __cplusplus +} +#endif + +#endif |