URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
#include <stdio.h>
|
#include <stdio.h>
|
#include <errno.h>
|
#include <errno.h>
|
|
|
#include "c99ppe.h"
|
#include "c99ppe.h"
|
|
|
#ifndef _REENT_ONLY
|
#ifndef _REENT_ONLY
|
|
|
typedef struct
|
typedef struct
|
{
|
{
|
_CONST char* str;
|
_CONST char* str;
|
unsigned int pad0[ 3 ];
|
unsigned int pad0[ 3 ];
|
int arg_errno;
|
int arg_errno;
|
unsigned int pad1[ 3 ];
|
unsigned int pad1[ 3 ];
|
} c99_perror_t;
|
} c99_perror_t;
|
|
|
void
|
void
|
_DEFUN (perror, (s),
|
_DEFUN (perror, (s),
|
_CONST char *s)
|
_CONST char *s)
|
|
|
{
|
{
|
c99_perror_t arg;
|
c99_perror_t arg;
|
|
|
CHECK_STD_INIT(_REENT);
|
CHECK_STD_INIT(_REENT);
|
|
|
arg.str = s;
|
arg.str = s;
|
arg.arg_errno = errno;
|
arg.arg_errno = errno;
|
__send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);
|
__send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);
|
|
|
return;
|
return;
|
}
|
}
|
#endif /* ! _REENT_ONLY */
|
#endif /* ! _REENT_ONLY */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.