Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/include/errlst.h
Show All 25 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef __ERRLST_H__ | #ifndef __ERRLST_H__ | ||||
#define __ERRLST_H__ | #define __ERRLST_H__ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#ifdef PIC | #ifdef __PIC__ | ||||
/* If the main executable imports these, do not use its copy from libc.so. */ | /* If the main executable imports these, do not use its copy from libc.so. */ | ||||
extern const char *const __hidden_sys_errlist[] __hidden; | extern const char *const __hidden_sys_errlist[] __hidden; | ||||
extern const int __hidden_sys_nerr __hidden; | extern const int __hidden_sys_nerr __hidden; | ||||
#else | #else | ||||
#define __hidden_sys_errlist sys_errlist | #define __hidden_sys_errlist sys_errlist | ||||
#define __hidden_sys_nerr sys_nerr | #define __hidden_sys_nerr sys_nerr | ||||
#endif | #endif | ||||
#endif /* __ERRLST_H__ */ | #endif /* __ERRLST_H__ */ |