mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 09:25:17 +08:00
Move strdup() define to <sys/libkern.h>
This commit is contained in:
@@ -116,6 +116,10 @@ char *strcat(char * __restrict, const char * __restrict);
|
||||
int strcmp(const char *, const char *);
|
||||
char *strcpy(char * __restrict, const char * __restrict);
|
||||
size_t strcspn(const char * __restrict, const char * __restrict) __pure;
|
||||
#ifdef __rtems__
|
||||
#include <string.h>
|
||||
#define strdup _bsd_strdup
|
||||
#endif /* __rtems__ */
|
||||
char *strdup(const char *__restrict, struct malloc_type *);
|
||||
size_t strlcat(char *, const char *, size_t);
|
||||
size_t strlcpy(char *, const char *, size_t);
|
||||
|
Reference in New Issue
Block a user