[BACK]Return to _err.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

File: [cvs.NetBSD.org] / src / lib / libc / gen / Attic / _err.c (download)

Revision 1.6, Thu Jul 17 21:33:14 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.5: +1 -0 lines

"Fix" the non-__indr_reference verions of the user-callable versions
of these functions.  This is somewhat of a kludge, but there is not
much else we can do for this case.

Because of how the callable versions are created, by CPP trickery
and inclusion of another .c file, we cannot allow the included .c
file to pull in "namespace.h", since it undoes the CPP trickery we
have performed.  Introduce a CPP macro that prevents the included .c
file from pulling in "namespace.h".

/*
 * J.T. Conklin, December 12, 1994
 * Public Domain
 */

#include <sys/cdefs.h>

#ifdef __indr_reference
__indr_reference(_err, err);
#else

#define	__NO_NAMESPACE_H	/* XXX */
#define	_err	err
#define	_verr	verr
#define	rcsid	_rcsid
#include "err.c"

#endif