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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [linux/] [sys/] [errno.h] - Diff between revs 1010 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1010 Rev 1765
/* libc/sys/linux/sys/errno.h - Errno variable and codes */
/* libc/sys/linux/sys/errno.h - Errno variable and codes */
 
 
/* Written 2000 by Werner Almesberger */
/* Written 2000 by Werner Almesberger */
 
 
 
 
#ifndef _SYS_ERRNO_H
#ifndef _SYS_ERRNO_H
#define _SYS_ERRNO_H
#define _SYS_ERRNO_H
 
 
/* --- from newlin's sys/errno.h --- */
/* --- from newlin's sys/errno.h --- */
 
 
#include <sys/reent.h>
#include <sys/reent.h>
 
 
#ifndef _REENT_ONLY
#ifndef _REENT_ONLY
#define errno (*__errno())
#define errno (*__errno())
extern int *__errno _PARAMS ((void));
extern int *__errno _PARAMS ((void));
#endif
#endif
 
 
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT _CONST char * _CONST _sys_errlist[];
extern __IMPORT int _sys_nerr;
extern __IMPORT int _sys_nerr;
 
 
#define __errno_r(ptr) ((ptr)->_errno)
#define __errno_r(ptr) ((ptr)->_errno)
 
 
/* --- end of slight redundancy (the use of struct _reent->_errno is
/* --- end of slight redundancy (the use of struct _reent->_errno is
       hard-coded in perror.c so why pretend anything else could work too ? */
       hard-coded in perror.c so why pretend anything else could work too ? */
 
 
#include <asm/errno.h>
#include <asm/errno.h>
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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