Skip to content

Commit

Permalink
options/posix: Add bzero
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Feb 3, 2024
1 parent 548e6f7 commit ff04dfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions options/posix/generic/strings-stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ int strncasecmp(const char *a, const char *b, size_t size) {
return mlibc::strncasecmp(a, b, size);
}

// Marked as obsolete in posix 2008 but used by at least tracker
void bzero(void *s, size_t n) {
memset(s, 0, n);
}

3 changes: 3 additions & 0 deletions options/posix/include/strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ int ffs(int word);
int strcasecmp(const char *a, const char *b);
int strncasecmp(const char *a, const char *b, size_t size);

// Marked as obsolete in posix 2008 but used by at least tracker
void bzero(void *s, size_t n);

#endif /* !__MLIBC_ABI_ONLY */

#ifdef __cplusplus
Expand Down

0 comments on commit ff04dfe

Please sign in to comment.