Skip to content

Commit

Permalink
Change pthread_create stub to report a failure to create
Browse files Browse the repository at this point in the history
  • Loading branch information
shym committed Apr 16, 2024
1 parent 1a1aa88 commit e40c2f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nolibc/include/errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

extern int errno;
#define EBADF 9 /* Bad file number */
#define EAGAIN 11 /* Resource temporarily unavailable */
#define ENOENT 2 /* No such file or directory */
#define ENOMEM 12 /* Out of memory */
#define EBUSY 16 /* Device or resource busy */
Expand Down
2 changes: 1 addition & 1 deletion nolibc/stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ STUB_ABORT(mkdir);

/* pthread.h */
STUB_IGNORE(int, pthread_join, 0);
STUB_IGNORE(int, pthread_create, 0);
STUB_IGNORE(int, pthread_create, EAGAIN);
STUB_IGNORE(int, pthread_attr_init, 0);
STUB_ABORT(pthread_cleanup_push);
STUB_ABORT(pthread_cleanup_pop);
Expand Down

0 comments on commit e40c2f8

Please sign in to comment.