summaryrefslogtreecommitdiff
path: root/lib/libc/gen/_sys_errlist.c
blob: 491fd6be9f23aa669399c2d6ce9f46cbe384c3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*	$OpenBSD: _sys_errlist.c,v 1.3 2005/08/08 08:05:33 espie Exp $ */
/*
 * Written by J.T. Conklin, December 12, 1994
 * Public domain.
 */

#include <sys/cdefs.h>

#ifdef __indr_reference
__indr_reference(_sys_errlist, sys_errlist);
__indr_reference(_sys_errlist, __sys_errlist); /* Backwards compat with v.12 */
#else

#undef _sys_errlist
#undef _sys_nerr
#define	_sys_errlist	sys_errlist
#define	_sys_nerr	sys_nerr
#include "errlist.c"

#undef _sys_errlist
#undef _sys_nerr
#define	_sys_errlist	__sys_errlist
#define	_sys_nerr	__sys_nerr
#include "errlist.c"

#endif