blob: 62c0978c6aab890697fbd6190688ad8fc94d8e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* $OpenBSD: errno.c,v 1.5 2005/08/08 08:05:34 espie Exp $ */
/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */
#include <errno.h>
#undef errno
/*
* global errno for unthreaded programs.
*/
int errno;
/*
* weak version of function used by unthreaded programs.
*/
int *
___errno(void)
{
return &errno;
}
__weak_alias(__errno, ___errno);
|