Skip to content

Commit 7d96cf4

Browse files
authored
Adds some more missing POSIX API definitions (#1581)
* Adds missing POSIX API definition for `strchrnul` * `__stack_chk_fail`
1 parent 48235c0 commit 7d96cf4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

plugins/api/api/c/gnu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
int __libc_start_main(int (*main) (int, char **, char **), int, char **, void *auxv);
2+
void __stack_chk_fail(void) __attribute__((noreturn));

plugins/api/api/c/posix.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ char *strcat(char * restrict dst, const char * restrict src)
205205
char *strchr(const char *s, int c)
206206
__attribute__((pure,nonnull(1),storage(1)));
207207

208+
char *strchrnul(const char *s, int c)
209+
__attribute__((pure,nonnull(1),storage(1)));
210+
208211
int strcmp(const char *s1, const char *s2)
209212
__attribute__((pure, nonnull(1,2), storage(1), storage(2)));
210213

0 commit comments

Comments
 (0)