OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [misc/] [internals/] [errno.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#include <features.h>
2
#undef errno
3
 
4
extern int errno;
5
extern int h_errno;
6
 
7
#if 0
8
/* Unfortunately, this doesn't work... */
9
int h_errno __attribute__ ((section  (".bss"))) = 0;
10
int errno __attribute__ ((section  (".bss"))) = 0;
11
#else
12
int _errno = 0;
13
int _h_errno = 0;
14
#endif
15
 
16
weak_alias (_errno, errno)
17
weak_alias(_h_errno, h_errno);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.