Skip to content

Commit 26e5014

Browse files
authored
Merge pull request #376 from andreagilardoni/libc-exports
llext: libc: Added missing lib exports
2 parents 97832e8 + ff7807e commit 26e5014

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

cores/arduino/llext_wrappers.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ W3(int, strncmp, const char *, const char *, size_t)
7575
W2(int, strcasecmp, const char *, const char *)
7676
W3(char *, strncpy, char *, const char *, size_t)
7777
W2(char *, strcat, char *, const char *)
78+
W2(char *, strcpy, char *, const char *)
79+
W3(int, memcmp, const void *, const void *, int)
80+
W2(void *, memset, void *, int)
7881

7982
/* stdlib.h - conversion */
8083
W2(double, strtod, const char *, char **)

loader/llext_exports.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ EXPORT_LIBC_SYM(strlen);
3939
EXPORT_LIBC_SYM(strnlen);
4040
EXPORT_LIBC_SYM(strchr);
4141
EXPORT_LIBC_SYM(strcat);
42+
EXPORT_LIBC_SYM(strcpy);
43+
EXPORT_LIBC_SYM(memcmp);
44+
EXPORT_LIBC_SYM(memset);
4245

4346
// stdlib.h
4447
EXPORT_LIBC_SYM(malloc);

0 commit comments

Comments
 (0)