Skip to content

Commit 9d40a9e

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#2365 from diffblue/solaris_errno
add model for ___errno for Solaris 11
2 parents 8cc1848 + 9efd705 commit 9d40a9e

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)