Skip to content

Commit 9efd705

Browse files
author
Daniel Kroening
committed
add model for ___errno for Solaris 11
1 parent 8cc1848 commit 9efd705

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ansi-c/library/errno.c

+11
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,14 @@ extern int *__errno(void)
4444
{
4545
return &__CPROVER_errno;
4646
}
47+
48+
/* FUNCTION: ___errno */
49+
50+
// This has been spotted on Solaris
51+
52+
__CPROVER_thread_local int __CPROVER_errno;
53+
54+
extern int *___errno(void)
55+
{
56+
return &__CPROVER_errno;
57+
}

0 commit comments

Comments
 (0)