string: add lock to strtok
This commit is contained in:
parent
5ab34eb11b
commit
3806d53237
4 changed files with 40 additions and 1 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <kernel/lock.h>
|
||||
|
||||
void *memcpy(void *dest, const void *src, size_t num);
|
||||
int memcmp(const void *aa, const void *bb, size_t num);
|
||||
void *memset(void *str, int c, size_t n);
|
||||
|
|
@ -16,5 +18,7 @@ char **strsplit(const char *str, char delim, int *num);
|
|||
size_t strlen(const char *c);
|
||||
int atoi(const char *a);
|
||||
|
||||
extern spinlock_t strtok_lock;
|
||||
|
||||
#endif /* __ASM__ */
|
||||
#endif /* _STRING_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue