VM: simplify slab allocator
[minix.git] / lib / libc / compat / gen / compat__sys_errlist.c
blobb4b34324ba5eb729bf9aec24114f00c66f3b1782
1 /* $NetBSD: compat__sys_errlist.c,v 1.1 2005/09/13 01:44:09 christos Exp $ */
3 /*
4 * Written by J.T. Conklin, December 12, 1994
5 * Public domain.
6 */
8 #include <sys/cdefs.h>
9 #if defined(LIBC_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: compat__sys_errlist.c,v 1.1 2005/09/13 01:44:09 christos Exp $");
11 #endif /* LIBC_SCCS and not lint */
13 __warn_references(sys_errlist,
14 "warning: reference to compatibility sys_errlist[]; include <errno.h> for correct reference")
15 __warn_references(__sys_errlist,
16 "warning: reference to deprecated __sys_errlist[]; include <errno.h> and use sys_errlist")
18 __warn_references(sys_nerr,
19 "warning: reference to compatibility sys_nerr; include <errno.h> for correct reference")
20 __warn_references(__sys_nerr,
21 "warning: reference to deprecated __sys_nerr; include <errno.h> and use sys_nerr")
24 #if defined(__indr_reference)
25 __indr_reference(_sys_errlist, sys_errlist)
26 __indr_reference(_sys_errlist, __sys_errlist) /* Backwards compat with v.12 */
27 #else
29 #undef _sys_errlist
30 #undef _sys_nerr
31 #undef rcsid
32 #define _sys_errlist sys_errlist
33 #define _sys_nerr sys_nerr
34 #define rcsid _rcsid
35 #include "__errlist.c"
37 #undef _sys_errlist
38 #undef _sys_nerr
39 #undef rcsid
40 #define _sys_errlist __sys_errlist
41 #define _sys_nerr __sys_nerr
42 #define rcsid __rcsid
43 #include "__errlist.c"
45 #endif