Skip to content

Commit

Permalink
Make perror from minimal canonical, finishing stdio
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed May 21, 2024
1 parent 9894c1d commit 2e9f558
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions mos-platform/common/c/stdio-full.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,5 +880,3 @@ void clearerr(FILE *stream) { stream->status &= ~(ERRORFLAG | EOFFLAG); }
int feof(FILE *stream) { return stream->status & EOFFLAG; }

int ferror(FILE *stream) { return stream->status & ERRORFLAG; }

void perror(const char *s) { __stdio_not_yet_implemented(); }
2 changes: 1 addition & 1 deletion mos-platform/common/c/stdio-minimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ __attribute__((weak)) int feof(FILE *stream) { return 0; }

__attribute__((weak)) int ferror(FILE *stream) { return 0; }

__attribute__((weak)) void perror(const char *s) {
void perror(const char *s) {
if (s && *s) {
fputs(s, stderr);
putc(':', stderr);
Expand Down

0 comments on commit 2e9f558

Please sign in to comment.