Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / compat / gen / compat__sys_errlist.c
blob40bb0015953c2e50553521f993c0df1f7bde8315
1 /* $NetBSD: _sys_errlist.c,v 1.9 2005/07/30 15:21:20 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: _sys_errlist.c,v 1.9 2005/07/30 15:21:20 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